< 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:8
Uncovered lines:8
Coverable lines:16
Total lines:27
Line coverage:50% (8 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{
 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; }
 015    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}