< Summary

Class:AnimationHandler
Assembly:ExploreHUD
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/HUD/ExploreHUD/Scripts/Handlers/AnimationHandler.cs
Covered lines:3
Uncovered lines:3
Coverable lines:6
Total lines:17
Line coverage:50% (3 of 6)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
AnimationHandler()0%110100%
AnimationHandler(...)0%110100%
SetLoaded()0%6200%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/HUD/ExploreHUD/Scripts/Handlers/AnimationHandler.cs

#LineLine coverage
 1using UnityEngine;
 2
 3internal class AnimationHandler
 4{
 15    private static readonly int paramLoadingComplete = Animator.StringToHash("LoadingComplete");
 16    private static readonly int paramInitialize = Animator.StringToHash("Initialize");
 7
 8    private readonly Animator animator;
 9
 2410    public AnimationHandler(Animator animator) { this.animator = animator; }
 11
 12    public void SetLoaded()
 13    {
 014        if (animator.gameObject.activeInHierarchy)
 015            animator.SetTrigger(paramLoadingComplete);
 016    }
 17}