< Summary

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

Metrics

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

File(s)

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

#LineLine coverage
 1using DCL.Interface;
 2using DCL.Models;
 3
 4namespace DCL.Components
 5{
 6    public class OnPointerHoverEnter : OnPointerHoverEvent
 7    {
 8        public const string NAME = "pointerHoverEnter";
 9
 10        private bool isHovering = false;
 11
 12        public override void SetHoverState(bool hoverState)
 13        {
 1114            if (hoverState && !isHovering)
 15            {
 416                Model model = this.model as Model;
 417                WebInterface.ReportOnPointerHoverEnterEvent(scene.sceneData.id, model.uuid);
 18            }
 1119            isHovering = hoverState;
 1120        }
 21
 22        public override int GetClassId()
 23        {
 024            return (int)CLASS_ID_COMPONENT.UUID_ON_HOVER_ENTER;
 25        }
 26    }
 27}