< Summary

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

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
PBUiBackground_Defaults()0%2100%
GetColor(...)0%6200%
GetBorder(...)0%6200%

File(s)

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

#LineLine coverage
 1using Decentraland.Common;
 2
 3namespace DCL.ECSComponents
 4{
 5    public static class PBUiBackground_Defaults
 6    {
 07        private static readonly BorderRect DEFAULT_SLICES = new ()
 8            { Left = 1 / 3f, Bottom = 1 / 3f, Right = 1 / 3f, Top = 1 / 3f };
 9
 10        public static Color4 GetColor(this PBUiBackground self) =>
 011            self.Color ?? Color_Defaults.color4White;
 12
 13        public static BorderRect GetBorder(this PBUiBackground self) =>
 014            self.TextureSlices ?? DEFAULT_SLICES;
 15    }
 16}