< Summary

Information
Class: RaidLoop.Client.Services.GameSave
Assembly: RaidLoop.Client
File(s): /home/runner/work/RaidLoop/RaidLoop/src/RaidLoop.Client/Services/ClientProfileState.cs
Line coverage
100%
Covered lines: 6
Uncovered lines: 0
Coverable lines: 6
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_MainStash()100%11100%
get_RandomCharacterAvailableAt()100%11100%
get_RandomCharacter()100%11100%
get_Money()100%11100%
get_OnPersonItems()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{
 7    public RandomCharacterState(string Name, List<Item> Inventory, PlayerStats Stats)
 8    {
 9        ArgumentNullException.ThrowIfNull(Stats);
 10        this.Name = Name;
 11        this.Inventory = Inventory;
 12        this.Stats = Stats;
 13    }
 14
 15    public string Name { get; init; }
 16    public List<Item> Inventory { get; init; }
 17    public PlayerStats Stats { get; init; }
 18}
 19
 720public sealed record GameSave(
 2121    List<Item> MainStash,
 122    DateTimeOffset RandomCharacterAvailableAt,
 1723    RandomCharacterState? RandomCharacter,
 1524    int Money,
 3725    List<OnPersonEntry> OnPersonItems);
 26
 27public sealed record OnPersonEntry(Item Item, bool IsEquipped);