< Summary - Code Coverage

Information
Class: LittleTown.Core.Actions.EmptyAction
Assembly: LittleTown.Core
File(s): /workspace/mcmuzzle/LittleTown/src/LittleTown.Core/UseCases/Actions/EmptyAction.cs
Tag: 223_1459
Line coverage
75%
Covered lines: 3
Uncovered lines: 1
Coverable lines: 4
Total lines: 21
Line coverage: 75%
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
Execute(...)100%11100%
CanExecute(...)100%210%

File(s)

/workspace/mcmuzzle/LittleTown/src/LittleTown.Core/UseCases/Actions/EmptyAction.cs

#LineLine coverage
 1namespace LittleTown.Core.Actions;
 2
 3/// <summary>
 4/// Un action de test qui permet de faire le déroulé d'une partie, cette action ne fait rien qu'utiliser un ouvrier du j
 5/// </summary>
 6public class EmptyAction : IAction
 7{
 8    /// <inheritdoc/>
 9    public void Execute(Match match)
 10    {
 1211        ArgumentNullException.ThrowIfNull(match);
 12
 1213        match.NextPlayer();
 1214    }
 15
 16    /// <inheritdoc/>
 17    public bool CanExecute(Match match)
 18    {
 019        return true;
 20    }
 21}