< 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{
 148958    public WearableItem Item { get; }
 09    public string CollectionName { get; }
 424210    public int Amount { get; }
 11
 579612    public bool isLoading { get; set; }
 424213    public Func<WearableItem, bool> HideOtherWearablesToastStrategy { get; }
 424214    public Func<WearableItem, bool> ReplaceOtherWearablesToastStrategy { get; }
 424215    public Func<WearableItem, bool> IncompatibleWearableToastStrategy { get; }
 424216    public WearableSettings(WearableItem item, string collectionName, int amount, Func<WearableItem, bool> hideOtherWear
 17    {
 424218        Item = item;
 424219        CollectionName = collectionName;
 424220        Amount = amount;
 424221        HideOtherWearablesToastStrategy = hideOtherWearablesToastStrategy;
 424222        ReplaceOtherWearablesToastStrategy = replaceOtherWearablesToastStrategy;
 424223        IncompatibleWearableToastStrategy = incompatibleWearableToastStrategy;
 424224    }
 25
 026    public override string ToString() { return Item.id; }
 27}