< 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:14
Uncovered lines:2
Coverable lines:16
Total lines:27
Line coverage:87.5% (14 of 16)
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{
 130898    public WearableItem Item { get; }
 09    public string CollectionName { get; }
 365410    public int Amount { get; }
 11
 502212    public bool isLoading { get; set; }
 365413    public Func<WearableItem, bool> HideOtherWearablesToastStrategy { get; }
 365414    public Func<WearableItem, bool> ReplaceOtherWearablesToastStrategy { get; }
 365415    public Func<WearableItem, bool> IncompatibleWearableToastStrategy { get; }
 365416    public WearableSettings(WearableItem item, string collectionName, int amount, Func<WearableItem, bool> hideOtherWear
 17    {
 365418        Item = item;
 365419        CollectionName = collectionName;
 365420        Amount = amount;
 365421        HideOtherWearablesToastStrategy = hideOtherWearablesToastStrategy;
 365422        ReplaceOtherWearablesToastStrategy = replaceOtherWearablesToastStrategy;
 365423        IncompatibleWearableToastStrategy = incompatibleWearableToastStrategy;
 365424    }
 25
 026    public override string ToString() { return Item.id; }
 27}