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

Information
Class: ZhEaIsNsAaBn.DbSeeder.Design.DesignTable
Assembly: ZhEaIsNsAaBn.DbSeeder.Design
File(s): /home/runner/work/ZhEaIsNsAaBn.Libraries.V1/ZhEaIsNsAaBn.Libraries.V1/src/DataBasePackages/ZhEaIsNsAaBn.DbSeeder.Design/Files/DesignTable.cs
Line coverage
100%
Covered lines: 1
Uncovered lines: 0
Coverable lines: 1
Total lines: 23
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_IsEmpty()100%11100%

File(s)

/home/runner/work/ZhEaIsNsAaBn.Libraries.V1/ZhEaIsNsAaBn.Libraries.V1/src/DataBasePackages/ZhEaIsNsAaBn.DbSeeder.Design/Files/DesignTable.cs

#LineLine coverage
 1namespace ZhEaIsNsAaBn.DbSeeder.Design;
 2
 3/// The content of one table file (migration or snapshot), ready to write.
 4internal sealed class DesignTable
 5{
 6    public required string Entity { get; init; }
 7
 8    /// Written only for a business key; empty for the primary key.
 9    public IReadOnlyList<string> MatchBy { get; init; } = [];
 10
 11    public List<DesignRow> Upsert { get; } = [];
 12
 13    public List<DesignRow> Delete { get; } = [];
 14
 15    public List<DesignRow> SoftDelete { get; } = [];
 16
 17    public List<DesignRow> Restore { get; } = [];
 18
 19    public List<DesignRow> Before { get; } = [];
 20
 21
 21022    public bool IsEmpty => Upsert.Count + Delete.Count + SoftDelete.Count + Restore.Count == 0;
 23}

Methods/Properties

get_IsEmpty()