< Summary

Class:DCL.Components.OnPointerHoverExit
Assembly:DCL.Components.Events
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/UUIDEventComponentsPlugin/UUIDComponent/OnPointerHoverExit.cs
Covered lines:7
Uncovered lines:1
Coverable lines:8
Total lines:30
Line coverage:87.5% (7 of 8)
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/DCLPlugins/UUIDEventComponentsPlugin/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
 710        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            }
 19
 220            isHovering = hoverState;
 221        }
 22
 23        public override int GetClassId()
 24        {
 025            return (int) CLASS_ID_COMPONENT.UUID_ON_HOVER_EXIT;
 26        }
 27
 428        protected override string uuidComponentName => "pointerHoverExit";
 29    }
 30}