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

Information
Line coverage
66%
Covered lines: 2
Uncovered lines: 1
Coverable lines: 3
Total lines: 27
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
get_PropertyName()100%11100%
get_IsNullable()100%11100%
ToString()100%210%

File(s)

/home/runner/work/ZhEaIsNsAaBn.Libraries.V1/ZhEaIsNsAaBn.Libraries.V1/src/DataBasePackages/ZhEaIsNsAaBn.DbSeeder/Entities/SeedColumn.cs

#LineLine coverage
 1namespace ZhEaIsNsAaBn.DbSeeder;
 2
 3/// <summary>One column a seed migration writes or matches on, from the EF model.</summary>
 4public sealed class SeedColumn
 5{
 6    /// <summary>The EF property (shadow properties included); providers read their own annotations from it.</summary>
 7    public required IProperty Property { get; init; }
 8
 9    /// <summary>The EF property name, as used in the data files.</summary>
 2509010    public string PropertyName => Property.Name;
 11
 12    /// <summary>The column name in the table.</summary>
 13    public required string ColumnName { get; init; }
 14
 15    /// <summary>The CLR type of the stored value, after the EF value converter (e.g. <see cref="string"/> for a convert
 16    public required Type ProviderClrType { get; init; }
 17
 18    /// <summary>The store type, e.g. <c>nvarchar(50)</c>.</summary>
 19    public required string StoreType { get; init; }
 20
 21    /// <summary>Whether the column accepts <c>NULL</c>.</summary>
 47522    public bool IsNullable => Property.IsColumnNullable();
 23
 24
 25    /// <inheritdoc />
 026    public override string ToString() => ColumnName;
 27}