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

samsmithnz / RepoGovernance / 6871646540

15 Nov 2023 01:19AM UTC coverage: 69.053% (+0.6%) from 68.496%
6871646540

Pull #660

github

web-flow
Merge f76d366d2 into 52b914122
Pull Request #660: Update to .NET 8

217 of 360 branches covered (0.0%)

Branch coverage included in aggregate %.

651 of 897 relevant lines covered (72.58%)

23.15 hits per line

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

51.61
/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
        {
8✔
7
            if (framework == "unknown")
8!
8
            {
×
9
                //Unknown/gray
10
                return "bg-secondary";
×
11
            }
12
            else if (framework == "deprecated")
8!
13
            {
×
14
                //Unsupported/End of life/red  
15
                return "bg-danger";
×
16
            }
17
            else if (framework?.StartsWith("EOL") == true)
8!
18
            {
5✔
19
                //Supported, but old/orange
20
                return "bg-warning";
5✔
21
            }
22
            else if (framework == "supported")
3!
23
            {
3✔
24
                //Supported/Ok/blue
25
                return "bg-primary";
3✔
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
        }
8✔
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