< Summary

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

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
GetWeight(...)0%220100%
GetSpeed(...)0%220100%
GetLoop(...)0%220100%
GetShouldReset(...)0%220100%

File(s)

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

#LineLine coverage
 1namespace DCL.ECSComponents
 2{
 3    public static class PBAnimator_Defaults
 4    {
 5        public static float GetWeight(this PBAnimationState self)
 6        {
 47            return self.HasWeight ? self.Weight : 1.0f;
 8        }
 9
 10        public static float GetSpeed(this PBAnimationState self)
 11        {
 412            return self.HasSpeed ? self.Speed : 1.0f;
 13        }
 14
 15        public static bool GetLoop(this PBAnimationState self)
 16        {
 417            return !self.HasLoop || self.Loop;
 18        }
 19
 20        public static bool GetShouldReset(this PBAnimationState self)
 21        {
 422            return self.HasShouldReset && self.ShouldReset;
 23        }
 24    }
 25}