< Summary

Class:NFTShapePlugin
Assembly:DCL.Plugins.NFTShapeComponent
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/NFTShapeComponentPlugin/NFTShapePlugin.cs
Covered lines:0
Uncovered lines:7
Coverable lines:7
Total lines:27
Line coverage:0% (0 of 7)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
NFTShapePlugin()0%2100%
BuildComponent()0%2100%
Dispose()0%2100%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/NFTShapeComponentPlugin/NFTShapePlugin.cs

#LineLine coverage
 1using System.Collections;
 2using System.Collections.Generic;
 3using DCL;
 4using DCL.Components;
 5using DCL.Models;
 6using UnityEngine;
 7
 8public class NFTShapePlugin : IPlugin
 9{
 010    private IRuntimeComponentFactory factory => DCL.Environment.i.world.componentFactory;
 11
 012    public NFTShapePlugin()
 13    {
 14        // TODO(Brian): Move all the NFTShape files to the plugin's directory.
 015        factory.RegisterBuilder((int) CLASS_ID.NFT_SHAPE, BuildComponent);
 016    }
 17
 18    NFTShape BuildComponent()
 19    {
 020        return new NFTShape(new NFTInfoRetriever(), new NFTAssetRetriever());
 21    }
 22
 23    public void Dispose()
 24    {
 025        factory.UnregisterBuilder((int) CLASS_ID.NFT_SHAPE);
 026    }
 27}