< Summary

Information
Class: EHonda.KicktippAi.Core.Prediction
Assembly: EHonda.KicktippAi.Core
File(s): /home/runner/work/KicktippAi/KicktippAi/src/Core/Prediction.cs
Line coverage
100%
Covered lines: 4
Uncovered lines: 0
Coverable lines: 4
Total lines: 39
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
.ctor(...)100%11100%
.ctor(...)100%210%
get_HomeGoals()100%11100%
set_HomeGoals(...)100%210%
get_AwayGoals()100%11100%
set_AwayGoals(...)100%210%
get_Justification()100%11100%
set_Justification(...)100%210%

File(s)

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

#LineLine coverage
 1namespace EHonda.KicktippAi.Core;
 2
 13public record Prediction(
 14    int HomeGoals,
 15    int AwayGoals,
 16    PredictionJustification? Justification = null);
 7
 8public record PredictionJustification(
 9    string KeyReasoning,
 10    PredictionJustificationContextSources ContextSources,
 11    IReadOnlyList<string> Uncertainties);
 12
 13public record PredictionJustificationContextSources(
 14    IReadOnlyList<PredictionJustificationContextSource> MostValuable,
 15    IReadOnlyList<PredictionJustificationContextSource> LeastValuable);
 16
 17public record PredictionJustificationContextSource(
 18    string DocumentName,
 19    string Details);
 20
 21/// <summary>
 22/// Extended prediction result that includes metadata about how the prediction was generated.
 23/// </summary>
 24public record PredictionResult(
 25    Prediction Prediction,
 26    string Model,
 27    string TokenUsage,
 28    double Cost,
 29    string CommunityContext,
 30    List<string> ContextDocumentNames);
 31
 32/// <summary>
 33/// Prediction metadata for outdated checks and verification.
 34/// Includes context document names and creation timestamp.
 35/// </summary>
 36public record PredictionMetadata(
 37    Prediction Prediction,
 38    DateTimeOffset CreatedAt,
 39    List<string> ContextDocumentNames);