< Summary

Class:DCL.Components.OnPointerHoverExit
Assembly:MainScripts
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Components/UUIDComponent/OnPointerHoverExit.cs
Covered lines:6
Uncovered lines:1
Coverable lines:7
Total lines:27
Line coverage:85.7% (6 of 7)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
OnPointerHoverExit()0%110100%
SetHoverState(...)0%330100%
GetClassId()0%2100%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Components/UUIDComponent/OnPointerHoverExit.cs

#LineLine coverage
 1using DCL.Interface;
 2using DCL.Models;
 3
 4namespace DCL.Components
 5{
 6    public class OnPointerHoverExit : OnPointerHoverEvent
 7    {
 8        public const string NAME = "pointerHoverExit";
 9
 610        private bool isHovering = true;
 11
 12        public override void SetHoverState(bool hoverState)
 13        {
 214            if (!hoverState && isHovering)
 15            {
 116                Model model = this.model as Model;
 117                WebInterface.ReportOnPointerHoverExitEvent(scene.sceneData.id, model.uuid);
 18            }
 219            isHovering = hoverState;
 220        }
 21
 22        public override int GetClassId()
 23        {
 024            return (int)CLASS_ID_COMPONENT.UUID_ON_HOVER_EXIT;
 25        }
 26    }
 27}