< Summary

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

Metrics

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

File(s)

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

#LineLine coverage
 1using UnityEngine;
 2using UnityEngine.EventSystems;
 3using System;
 4
 5public class UIHoverCallback : MonoBehaviour, IPointerEnterHandler, IPointerExitHandler, IPointerDownHandler
 6{
 7    public event Action OnPointerDown;
 8    public event Action OnPointerEnter;
 9    public event Action OnPointerExit;
 10
 011    void IPointerDownHandler.OnPointerDown(PointerEventData eventData) { OnPointerDown?.Invoke(); }
 12
 013    void IPointerEnterHandler.OnPointerEnter(PointerEventData eventData) { OnPointerEnter?.Invoke(); }
 14
 015    void IPointerExitHandler.OnPointerExit(PointerEventData eventData) { OnPointerExit?.Invoke(); }
 16}