• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

luttje / Key2Joy / 6604155389

22 Oct 2023 01:33PM UTC coverage: 43.896% (-0.2%) from 44.094%
6604155389

push

github

web-flow
Feature/rework override default (#54)

* Resolves #43

* allow better blocking mouse buttons and moves (#43)

* Remove now unused wndproc handling to simplify code

765 of 2403 branches covered (0.0%)

Branch coverage included in aggregate %.

97 of 97 new or added lines in 10 files covered. (100.0%)

3902 of 8229 relevant lines covered (47.42%)

19555.67 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

87.5
/Core/Key2Joy.Core/Config/ConfigControlAttribute.cs
1
using System;
2
using System.Collections.Generic;
3
using System.Linq;
4
using System.Reflection;
5

6
namespace Key2Joy.Config;
7

8
/// <summary>
9
/// Only applied to <see cref="ConfigState"/>
10
/// </summary>
11
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false)]
12
public abstract class ConfigControlAttribute : Attribute
13
{
14
    public string Text { get; set; }
1✔
15
    public string Hint { get; set; } = null;
×
16

17
    /// <summary>
18
    /// Gets all configs and their property
19
    /// </summary>
20
    /// <returns></returns>
21
    public static Dictionary<PropertyInfo, ConfigControlAttribute> GetAllProperties(Type configType, IAttributeProvider attributeProvider)
22
        => attributeProvider.GetProperties(configType)
1✔
23
            .Where(p => attributeProvider.GetCustomConfigControlAttribute(p) != null)
3✔
24
            .ToDictionary(
1✔
25
                p => p,
3✔
26
                attributeProvider.GetCustomConfigControlAttribute
1✔
27
            );
1✔
28
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc