< Summary

Information
Class: EHonda.KicktippAi.Core.MatchWithHistory
Assembly: EHonda.KicktippAi.Core
File(s): /home/runner/work/KicktippAi/KicktippAi/src/Core/MatchWithHistory.cs
Line coverage
100%
Covered lines: 4
Uncovered lines: 0
Coverable lines: 4
Total lines: 33
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_Match()100%11100%
set_Match(...)100%210%
get_HomeTeamHistory()100%11100%
set_HomeTeamHistory(...)100%210%
get_AwayTeamHistory()100%11100%
set_AwayTeamHistory(...)100%210%

File(s)

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

#LineLine coverage
 1namespace EHonda.KicktippAi.Core;
 2
 3/// <summary>
 4/// Represents a match result from a team's recent history
 5/// </summary>
 6public record MatchResult(
 7    string Competition,      // e.g., "KL-WM", "1.BL", "DFB"
 8    string HomeTeam,
 9    string AwayTeam,
 10    int? HomeGoals,          // null if match hasn't been played yet
 11    int? AwayGoals,          // null if match hasn't been played yet
 12    MatchOutcome Outcome,    // Win, Draw, Loss from the perspective of the team we're tracking
 13    string? Annotation = null // e.g., "nach Elfmeterschießen", "nach Verlängerung"
 14);
 15
 16/// <summary>
 17/// Represents the outcome of a match from a specific team's perspective
 18/// </summary>
 19public enum MatchOutcome
 20{
 21    Win,
 22    Draw,
 23    Loss,
 24    Pending  // For future matches
 25}
 26
 27/// <summary>
 28/// Represents a match with its recent history context for both teams
 29/// </summary>
 130public record MatchWithHistory(
 131    Match Match,
 132    List<MatchResult> HomeTeamHistory,
 133    List<MatchResult> AwayTeamHistory);