< Summary - Code Coverage

Information
Class: LittleTown.Core.Building
Assembly: LittleTown.Core
File(s): /workspace/mcmuzzle/LittleTown/src/LittleTown.Core/ValueTypes/Building.cs
Tag: 220_1454
Line coverage
100%
Covered lines: 3
Uncovered lines: 0
Coverable lines: 3
Total lines: 16
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
get_Name()100%11100%
get_Price()100%11100%
get_BeginnerBuilding()100%11100%

File(s)

/workspace/mcmuzzle/LittleTown/src/LittleTown.Core/ValueTypes/Building.cs

#LineLine coverage
 1using LittleTown.Core.Enums;
 2
 3namespace LittleTown.Core;
 4
 5/// <summary> Represente une batiment qui peut etre placé sur le plateau </summary>
 6public class Building
 7{
 8    /// <summary> le nom du batiment (attention, c'est une clé de conversion) </summary>
 4569    public required string Name { get; init; }
 10
 11    /// <summary> Le cout a payer pour construire ce batiment </summary>
 90612    public IReadOnlyDictionary<ResourceType, int> Price { get; init; } = new Dictionary<ResourceType, int>();
 13
 14    /// <summary> Indique si ce batiment fait parti du jeu de batiment pour joueur débutant </summary>
 50015    public bool BeginnerBuilding { get; init; }
 16}