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

loresoft / EntityFrameworkCore.Generator / 5813225722

09 Aug 2023 07:23PM UTC coverage: 45.399% (-0.4%) from 45.814%
5813225722

push

github

pwelter34
remove anything to do with SponsorLink

382 of 1007 branches covered (37.93%)

Branch coverage included in aggregate %.

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

1320 of 2742 relevant lines covered (48.14%)

32.72 hits per line

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

0.0
/src/EntityFrameworkCore.Generator.Core/AssemblyMetadata.cs
1
using System.Reflection;
2

3
namespace EntityFrameworkCore.Generator;
4

5
public static class AssemblyMetadata
6
{
7
    private static readonly Lazy<string> _fileVersion = new(() =>
×
8
    {
×
9
        var assembly = typeof(AssemblyMetadata).Assembly;
×
10
        var attribute = assembly.GetCustomAttribute<AssemblyFileVersionAttribute>();
×
11
        return attribute?.Version;
×
12
    });
×
13

14
    private static readonly Lazy<string> _assemblyVersion = new(() =>
×
15
    {
×
16
        var assembly = typeof(AssemblyMetadata).Assembly;
×
17
        var attribute = assembly.GetCustomAttribute<AssemblyVersionAttribute>();
×
18
        return attribute?.Version;
×
19
    });
×
20

21
    private static readonly Lazy<string> _informationVersion = new(() =>
×
22
    {
×
23
        var assembly = typeof(AssemblyMetadata).Assembly;
×
24
        var attribute = assembly.GetCustomAttribute<AssemblyInformationalVersionAttribute>();
×
25
        return attribute?.InformationalVersion;
×
26
    });
×
27

28
    private static readonly Lazy<string> _assemblyDescription = new(() =>
×
29
    {
×
30
        var assembly = typeof(AssemblyMetadata).Assembly;
×
31
        var attribute = assembly.GetCustomAttribute<AssemblyDescriptionAttribute>();
×
32
        return attribute?.Description;
×
33
    });
×
34

35
    private static readonly Lazy<string> _assemblyName = new(() =>
×
36
    {
×
37
        var assembly = typeof(AssemblyMetadata).Assembly;
×
38
        return assembly.GetName().Name;
×
39
    });
×
40

41
    public static string FileVersion => _fileVersion.Value;
×
42

43
    public static string AssemblyVersion => _assemblyVersion.Value;
×
44

45
    public static string AssemblyDescription => _assemblyDescription.Value;
×
46

47
    public static string AssemblyName => _assemblyName.Value;
×
48

49
    public static string InformationalVersion => _informationVersion.Value;
×
50
}
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