< Summary

Information
Class: EHonda.KicktippAi.Core.KpiDocument
Assembly: EHonda.KicktippAi.Core
File(s): /home/runner/work/KicktippAi/KicktippAi/src/Core/KpiDocument.cs
Line coverage
92%
Covered lines: 12
Uncovered lines: 1
Coverable lines: 13
Total lines: 32
Line coverage: 92.3%
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_DocumentName()100%11100%
set_DocumentName(...)100%11100%
.ctor()100%210%
.ctor(...)100%11100%
get_Content()100%11100%
set_Content(...)100%11100%
get_Description()100%11100%
set_Description(...)100%11100%
get_Version()100%11100%
set_Version(...)100%11100%
get_CreatedAt()100%210%
set_CreatedAt(...)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>
 115    public int Version { get; set; }
 16
 17    /// <summary>
 18    /// When the document was created (UTC timestamp).
 19    /// </summary>
 120    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}