< Summary

Class:WearableSettings
Assembly:AvatarEditorHUD
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/HUD/AvatarEditorHUD/Scripts/WearableSettings.cs
Covered lines:7
Uncovered lines:7
Coverable lines:14
Total lines:25
Line coverage:50% (7 of 14)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
WearableSettings(...)0%110100%
ToString()0%2100%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/HUD/AvatarEditorHUD/Scripts/WearableSettings.cs

#LineLine coverage
 1using System;
 2
 3/// <summary>
 4/// This Class is a container of data to be used for the sole purpose of loading new ItemToggles with their respective d
 5/// </summary>
 6public class WearableSettings
 7{
 08    public WearableItem Item { get; }
 09    public string CollectionName { get; }
 010    public int Amount { get; }
 11
 012    public bool isLoading { get; set; }
 013    public Func<WearableItem, bool> HideOtherWearablesToastStrategy { get; }
 014    public Func<WearableItem, bool> ReplaceOtherWearablesToastStrategy { get; }
 424215    public WearableSettings(WearableItem item, string collectionName, int amount, Func<WearableItem, bool> hideOtherWear
 16    {
 424217        Item = item;
 424218        CollectionName = collectionName;
 424219        Amount = amount;
 424220        HideOtherWearablesToastStrategy = hideOtherWearablesToastStrategy;
 424221        ReplaceOtherWearablesToastStrategy = replaceOtherWearablesToastStrategy;
 424222    }
 23
 024    public override string ToString() { return Item.id; }
 25}