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

MeindertN / RoboClerk / 20514466406

26 Dec 2025 02:27AM UTC coverage: 68.657% (-0.8%) from 69.504%
20514466406

push

github

MeindertN
WIP: fixed broken tests and fixed some bugs in the text tag parsing code.

2320 of 3371 branches covered (68.82%)

Branch coverage included in aggregate %.

6 of 6 new or added lines in 1 file covered. (100.0%)

723 existing lines in 26 files now uncovered.

7443 of 10849 relevant lines covered (68.61%)

84.69 hits per line

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

80.0
/RoboClerk.Core/Configuration/ConfigurationValues.cs
1
using Tomlyn.Model;
2

3
namespace RoboClerk.Core.Configuration
4
{
5
    public class ConfigurationValues
6
    {
7
        private Dictionary<string, string> keyValues = new Dictionary<string, string>();
6✔
8
        public ConfigurationValues()
6✔
9
        {
6✔
10

11
        }
6✔
12

13
        public void FromToml(TomlTable toml)
14
        {
6✔
15
            if (!toml.ContainsKey("ConfigValues"))
6✔
16
            {
1✔
17
                throw new Exception("Required configuration element \"ConfigValues\" is missing from project configuration file. Cannot continue.");
1✔
18
            }
19
            foreach (var val in (TomlTable)toml["ConfigValues"])
25✔
20
            {
5✔
21
                keyValues[val.Key] = (string)val.Value;
5✔
22
            }
5✔
23
        }
5✔
24

25
        public bool HasKey(string key)
26
        {
1✔
27
            return keyValues.ContainsKey(key);
1✔
28
        }
1✔
29

30
        public string GetValue(string key)
31
        {
3✔
32
            if (!keyValues.ContainsKey(key))
3✔
33
            {
1✔
34
                return "NOT FOUND";
1✔
35
            }
36
            return keyValues[key];
2✔
37
        }
3✔
38

39
        public void SetValue(string key, string value)
UNCOV
40
        {
×
UNCOV
41
            keyValues[key] = value;
×
UNCOV
42
        }
×
43

44
        public void Clear()
UNCOV
45
        {
×
UNCOV
46
            keyValues.Clear();
×
UNCOV
47
        }
×
48

UNCOV
49
        public IEnumerable<string> Keys => keyValues.Keys;
×
50
    }
51
}
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

© 2026 Coveralls, Inc