< Summary

Class:DCL.SettingsCommon.SettingsControllers.BaseControllers.SpinBoxSettingsControlController
Assembly:SettingsControllers
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/Settings/SettingsControllers/BaseControllers/SpinBoxSettingsControlController.cs
Covered lines:2
Uncovered lines:1
Coverable lines:3
Total lines:19
Line coverage:66.6% (2 of 3)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
RaiseOnOverrideIndicatorLabel(...)0%220100%
RaiseOnCurrentLabelChange(...)0%220100%
OnPointerClicked(...)0%2100%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/Settings/SettingsControllers/BaseControllers/SpinBoxSettingsControlController.cs

#LineLine coverage
 1using System;
 2using UnityEngine.EventSystems;
 3
 4namespace DCL.SettingsCommon.SettingsControllers.BaseControllers
 5{
 6    /// <summary>
 7    /// This controller is in charge of manage all the base logic related to a SPIN-BOX CONTROL.
 8    /// </summary>
 9    public class SpinBoxSettingsControlController : SettingsControlController
 10    {
 11        public event Action<string[]> OnSetLabels;
 412        protected void RaiseOnOverrideIndicatorLabel(string[] labels) { OnSetLabels?.Invoke(labels); }
 13
 14        public event Action<string> OnCurrentLabelChange;
 215        protected void RaiseOnCurrentLabelChange(string newCurrentLabel) { OnCurrentLabelChange?.Invoke(newCurrentLabel)
 16
 017        public virtual void OnPointerClicked(PointerEventData eventData) { }
 18    }
 19}