< Summary

Class:WearablesCatalogControllerBridge
Assembly:CatalogController
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/CatalogController/WearablesCatalogControllerBridge.cs
Covered lines:0
Uncovered lines:6
Coverable lines:6
Total lines:22
Line coverage:0% (0 of 6)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
RequestOwnedWearables(...)0%2100%
IsValidWearable(...)0%6200%
RemoveWearablesInUse(...)0%2100%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/CatalogController/WearablesCatalogControllerBridge.cs

#LineLine coverage
 1using System.Collections.Generic;
 2using DCL.Helpers;
 3
 4public class WearablesCatalogControllerBridge : IWearableCatalogBridge
 5{
 6    public Promise<WearableItem[]> RequestOwnedWearables(string userId)
 7    {
 08        return CatalogController.RequestOwnedWearables(userId);
 9    }
 10
 11    public bool IsValidWearable(string wearableId)
 12    {
 013        if (!CatalogController.wearableCatalog.TryGetValue(wearableId, out var wearable))
 014            return false;
 015        return wearable != null;
 16    }
 17
 18    public void RemoveWearablesInUse(List<string> loadedWearables)
 19    {
 020        CatalogController.RemoveWearablesInUse(loadedWearables);
 021    }
 22}