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

samsmithnz / RepoGovernance / 6936720039

20 Nov 2023 10:48PM UTC coverage: 69.793% (+0.9%) from 68.894%
6936720039

push

github

web-flow
Package updates (#674)

* Added new project

* Updated packages

223 of 360 branches covered (0.0%)

Branch coverage included in aggregate %.

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

5 existing lines in 2 files now uncovered.

655 of 898 relevant lines covered (72.94%)

27.93 hits per line

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

41.94
/src/RepoGovernance.Core/Helpers/DotNetRepoScanner.cs
1
namespace RepoGovernance.Core.Helpers
2
{
3
    public class DotNetRepoScanner
4
    {        
5
        public static string? GetColorFromStatus(string? framework)
6
        {
9✔
7
            if (framework == "unknown")
9!
8
            {
×
9
                //Unknown/gray
10
                return "bg-secondary";
×
11
            }
12
            else if (framework == "deprecated")
9!
13
            {
×
14
                //Unsupported/End of life/red  
15
                return "bg-danger";
×
16
            }
17
            else if (framework?.StartsWith("EOL") == true)
9!
UNCOV
18
            {
×
19
                //Supported, but old/orange
UNCOV
20
                return "bg-warning";
×
21
            }
22
            else if (framework == "supported")
9!
23
            {
9✔
24
                //Supported/Ok/blue
25
                return "bg-primary";
9✔
26
            }
27
            else if (framework == "in preview")
×
28
            {
×
29
                //Usable, but new - light blue
30
                return "bg-info";
×
31
            }
32
            else
33
            {
×
34
                //Unknown/gray
35
                return "bg-secondary";
×
36
            }
37
        }
9✔
38
    }
39
}
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