< Summary - ZhEaIsNsAaBn.Libraries coverage (affected: 23 packages)

Information
Class: ZhEaIsNsAaBn.DbSeeder.Registrations.SeedContextRegistration
Assembly: ZhEaIsNsAaBn.DbSeeder
File(s): /home/runner/work/ZhEaIsNsAaBn.Libraries.V1/ZhEaIsNsAaBn.Libraries.V1/src/DataBasePackages/ZhEaIsNsAaBn.DbSeeder/Registrations/SeedContextRegistration.cs
Line coverage
66%
Covered lines: 2
Uncovered lines: 1
Coverable lines: 3
Total lines: 17
Line coverage: 66.6%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.ctor(...)100%11100%
get_ContextType()100%11100%
get_Warnings()100%210%

File(s)

/home/runner/work/ZhEaIsNsAaBn.Libraries.V1/ZhEaIsNsAaBn.Libraries.V1/src/DataBasePackages/ZhEaIsNsAaBn.DbSeeder/Registrations/SeedContextRegistration.cs

#LineLine coverage
 1namespace ZhEaIsNsAaBn.DbSeeder.Registrations;
 2
 3/// <summary>One context's seed configuration in DI, found by context type from <c>UseDbSeeder( serviceProvider )</c>.</
 4public sealed class SeedContextRegistration
 5{
 5816    internal SeedContextRegistration( SeedConfiguration configuration ) => Configuration = configuration;
 7
 8
 9    /// <summary>The context the seed migrations belong to.</summary>
 43810    public Type ContextType => Configuration.ContextType;
 11
 12    /// <summary>Configuration warnings: the same seed setting set twice (the last one wins). Shown by the CLI.</summary
 013    public IReadOnlyList<string> Warnings => Configuration.Warnings;
 14
 15
 16    internal SeedConfiguration Configuration { get; }
 17}