< Summary

Class:MinimapZoom
Assembly:MinimapHUD
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/HUD/Minimap/MinimapZoom.cs
Covered lines:0
Uncovered lines:2
Coverable lines:2
Total lines:11
Line coverage:0% (0 of 2)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
MinimapZoom()0%2100%
OnScroll(...)0%6200%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/HUD/Minimap/MinimapZoom.cs

#LineLine coverage
 1using UnityEngine;
 2using UnityEngine.EventSystems;
 3
 4public class MinimapZoom : MonoBehaviour, IScrollHandler
 5{
 06    public float sensitivity = 1f;
 7
 8    public event System.Action<float> OnZoom;
 9
 010    public void OnScroll(PointerEventData eventData) { OnZoom?.Invoke(eventData.scrollDelta.y * sensitivity * Time.delta
 11}