< Summary

Class:PointerOverDetector
Assembly:UIHelpers
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Helpers/UIHelpers/PointerOverDetector.cs
Covered lines:0
Uncovered lines:2
Coverable lines:2
Total lines:15
Line coverage:0% (0 of 2)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
OnPointerEnter(...)0%6200%
OnPointerExit(...)0%6200%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Helpers/UIHelpers/PointerOverDetector.cs

#LineLine coverage
 1using UnityEngine;
 2using UnityEngine.EventSystems;
 3
 4public class PointerOverDetector : MonoBehaviour, IPointerEnterHandler, IPointerExitHandler
 5{
 6    public delegate void Enter(PointerEventData eventData);
 7    public delegate void Exit(PointerEventData eventData);
 8
 9    public event Enter OnEnter;
 10    public event Exit OnExit;
 11
 012    public void OnPointerEnter(PointerEventData eventData) { OnEnter?.Invoke(eventData); }
 13
 014    public void OnPointerExit(PointerEventData eventData) { OnExit?.Invoke(eventData); }
 15}