< Summary

Information
Class: Cff.Effect.Abstractions.Domain.AesKey
Assembly: Cff.Effect.Abstractions
File(s): /home/runner/work/Cff.Effect/Cff.Effect/src/Cff.Effect.Abstractions/Domain/AesKey.cs
Tag: 43_3213223096
Line coverage
80%
Covered lines: 4
Uncovered lines: 1
Coverable lines: 5
Total lines: 9
Line coverage: 80%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Method coverage is only available for sponsors.

Upgrade to PRO version

Coverage History

Metrics

MethodBranch coverage Cyclomatic complexity Line coverage
get_Value()100%1100%
.ctor(...)100%1100%
ToString()100%1100%
FromBase64String(...)100%10%

File(s)

/home/runner/work/Cff.Effect/Cff.Effect/src/Cff.Effect.Abstractions/Domain/AesKey.cs

#LineLine coverage
 1using System.ComponentModel.DataAnnotations;
 2
 3namespace Cff.Effect.Abstractions.Domain;
 4
 65public record AesKey([property: MinLength(32), MaxLength(32)] byte[] Value)
 16{
 17    public override string ToString() => Convert.ToBase64String(Value);
 08    public static AesKey FromBase64String(string v) => new(Convert.FromBase64String(v));
 19}