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

Information
Class: ZhEaIsNsAaBn.DbSeeder.Design.ExportedTable
Assembly: ZhEaIsNsAaBn.DbSeeder.Design
File(s): /home/runner/work/ZhEaIsNsAaBn.Libraries.V1/ZhEaIsNsAaBn.Libraries.V1/src/DataBasePackages/ZhEaIsNsAaBn.DbSeeder.Design/Export/ExportedTable.cs
Line coverage
100%
Covered lines: 3
Uncovered lines: 0
Coverable lines: 3
Total lines: 21
Line coverage: 100%
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
get_File()100%11100%
get_MatchNames()100%11100%
FileName(...)100%11100%

File(s)

/home/runner/work/ZhEaIsNsAaBn.Libraries.V1/ZhEaIsNsAaBn.Libraries.V1/src/DataBasePackages/ZhEaIsNsAaBn.DbSeeder.Design/Export/ExportedTable.cs

#LineLine coverage
 1namespace ZhEaIsNsAaBn.DbSeeder.Design;
 2
 3/// The seed rows of one table as they are now: data rows (provider values, canonical JSON) and the keys of soft-deleted
 4internal sealed class ExportedTable
 5{
 6    public required SeedEntityShape Shape { get; init; }
 7
 8    public required IReadOnlyList<DesignRow> Rows { get; init; }
 9
 10    /// Keys of rows whose soft-delete flag is set.
 11    public required IReadOnlySet<string> SoftDeleted { get; init; }
 12
 13
 14    /// The file name for the table in a migration folder and in <c>.snapshot/</c>.
 102615    public string File => FileName( Shape );
 16
 44117    public IReadOnlyList<string> MatchNames => Shape.Table.MatchColumns.Select( c => c.PropertyName ).ToList();
 18
 19
 102620    public static string FileName( SeedEntityShape shape ) => shape.EntityType.ClrType.Name + ".json";
 21}