< Summary

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

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
GetWithCollisions(...)0%6200%
GetIsPointerBlocker(...)0%6200%
GetVisible(...)0%6200%
GetRadiusTop(...)0%220100%
GetRadiusBottom(...)0%220100%

File(s)

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

#LineLine coverage
 1namespace DCL.ECSComponents
 2{
 3    public static class PBCylinderShape_Defaults
 4    {
 5        public static bool GetWithCollisions(this PBCylinderShape self)
 6        {
 07            return !self.HasWithCollisions || self.WithCollisions;
 8        }
 9
 10        public static bool GetIsPointerBlocker(this PBCylinderShape self)
 11        {
 012            return !self.HasIsPointerBlocker || self.IsPointerBlocker;
 13        }
 14
 15        public static bool GetVisible(this PBCylinderShape self)
 16        {
 017            return !self.HasVisible || self.Visible;
 18        }
 19
 20        public static float GetRadiusTop(this PBCylinderShape self)
 21        {
 622            return self.HasRadiusTop ? self.RadiusTop : 1.0f;
 23        }
 24
 25        public static float GetRadiusBottom(this PBCylinderShape self)
 26        {
 627            return self.HasRadiusBottom ? self.RadiusBottom : 1.0f;
 28        }
 29    }
 30}