< Summary

Class:SliderHandleAudioHandler
Assembly:HUDCommon
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/HUD/Common/Audio/HUDElements/SliderHandleAudioHandler.cs
Covered lines:0
Uncovered lines:4
Coverable lines:4
Total lines:20
Line coverage:0% (0 of 4)
Covered branches:0
Total branches:0

Metrics

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

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/HUD/Common/Audio/HUDElements/SliderHandleAudioHandler.cs

#LineLine coverage
 1using UnityEngine;
 2using UnityEngine.EventSystems;
 3using UnityEngine.UI;
 4
 5public class SliderHandleAudioHandler : MonoBehaviour, IPointerEnterHandler
 6{
 7    [SerializeField]
 8    Slider slider;
 9
 10    public void OnPointerEnter(PointerEventData eventData)
 11    {
 012        if (slider != null && !Input.GetMouseButton(0))
 13        {
 014            if (slider.interactable)
 15            {
 016                AudioScriptableObjects.buttonHover.Play(true);
 17            }
 18        }
 019    }
 20}