< Summary

Class:DCL.ECSComponents.PBNFTShape_Defaults
Assembly:DCL.ECSComponents.Defaults
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/ECS7/ECSComponents/Defaults/PBNFTShape_Defaults.cs
Covered lines:3
Uncovered lines:0
Coverable lines:3
Total lines:24
Line coverage:100% (3 of 3)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
PBNFTShape_Defaults()0%110100%
GetStyle(...)0%220100%
GetColor(...)0%220100%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/ECS7/ECSComponents/Defaults/PBNFTShape_Defaults.cs

#LineLine coverage
 1using Decentraland.Common;
 2
 3namespace DCL.ECSComponents
 4{
 5    public static class PBNFTShape_Defaults
 6    {
 17        private static readonly Color3 defaultColor = new Color3()
 8        {
 9            R = 0.6404918f,
 10            G = 0.611472f,
 11            B = 0.8584906f
 12        };
 13
 14        public static DCL.ECSComponents.NftFrameType GetStyle(this PBNftShape self)
 15        {
 1316            return self.HasStyle ? self.Style : DCL.ECSComponents.NftFrameType.NftClassic;
 17        }
 18
 19        public static Color3 GetColor(this PBNftShape self)
 20        {
 1221            return self.Color ?? defaultColor;
 22        }
 23    }
 24}