< Summary

Information
Class: EHonda.KicktippAi.Core.KpiDocument
Assembly: EHonda.KicktippAi.Core
File(s): /home/runner/work/KicktippAi/KicktippAi/src/Core/KpiDocument.cs
Line coverage
90%
Covered lines: 10
Uncovered lines: 1
Coverable lines: 11
Total lines: 32
Line coverage: 90.9%
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%210%
.ctor(...)100%11100%

File(s)

/home/runner/work/KicktippAi/KicktippAi/src/Core/KpiDocument.cs

#LineLine coverage
 1namespace EHonda.KicktippAi.Core;
 2
 3/// <summary>
 4/// Represents a KPI context document.
 5/// </summary>
 6public class KpiDocument
 7{
 18    public string DocumentName { get; set; } = string.Empty;
 19    public string Content { get; set; } = string.Empty;
 110    public string Description { get; set; } = string.Empty;
 11
 12    /// <summary>
 13    /// Version number for this document (starts at 0).
 14    /// </summary>
 15    public int Version { get; set; }
 16
 17    /// <summary>
 18    /// When the document was created (UTC timestamp).
 19    /// </summary>
 20    public DateTimeOffset CreatedAt { get; set; }
 21
 022    public KpiDocument() { }
 23
 124    public KpiDocument(string documentName, string content, string description, int version = 0, DateTimeOffset createdA
 25    {
 126        DocumentName = documentName;
 127        Content = content;
 128        Description = description;
 129        Version = version;
 130        CreatedAt = createdAt == default ? DateTimeOffset.UtcNow : createdAt;
 131    }
 32}