< 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:0
Uncovered lines:3
Coverable lines:3
Total lines:20
Line coverage:0% (0 of 3)
Covered branches:0
Total branches:0

Metrics

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

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        {
 07            return self.HasWeight ? self.Weight : 1.0f;
 8        }
 9
 10        public static float GetSpeed(this PBAnimationState self)
 11        {
 012            return self.HasSpeed ? self.Speed : 1.0f;
 13        }
 14
 15        public static bool GetLoop(this PBAnimationState self)
 16        {
 017            return !self.HasLoop || self.Loop;
 18        }
 19    }
 20}