< Summary

Information
Class: RaidLoop.Client.Services.RandomCharacterState
Assembly: RaidLoop.Client
File(s): /home/runner/work/RaidLoop/RaidLoop/src/RaidLoop.Client/Services/ClientProfileState.cs
Line coverage
100%
Covered lines: 9
Uncovered lines: 0
Coverable lines: 9
Total lines: 27
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%
get_Name()100%11100%
get_Inventory()100%11100%
get_Stats()100%11100%

File(s)

/home/runner/work/RaidLoop/RaidLoop/src/RaidLoop.Client/Services/ClientProfileState.cs

#LineLine coverage
 1using RaidLoop.Core;
 2
 3namespace RaidLoop.Client.Services;
 4
 5public sealed record RandomCharacterState
 6{
 117    public RandomCharacterState(string Name, List<Item> Inventory, PlayerStats Stats)
 8    {
 119        ArgumentNullException.ThrowIfNull(Stats);
 1110        this.Name = Name;
 1111        this.Inventory = Inventory;
 1112        this.Stats = Stats;
 1113    }
 14
 1715    public string Name { get; init; }
 2316    public List<Item> Inventory { get; init; }
 1817    public PlayerStats Stats { get; init; }
 18}
 19
 20public sealed record GameSave(
 21    List<Item> MainStash,
 22    DateTimeOffset RandomCharacterAvailableAt,
 23    RandomCharacterState? RandomCharacter,
 24    int Money,
 25    List<OnPersonEntry> OnPersonItems);
 26
 27public sealed record OnPersonEntry(Item Item, bool IsEquipped);