< Summary

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

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
RaiseOnIndicatorLabelChange(...)0%220100%
RaiseSliderValueChanged(...)0%6200%

File(s)

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

#LineLine coverage
 1using System;
 2
 3namespace DCL.SettingsCommon.SettingsControllers.BaseControllers
 4{
 5    /// <summary>
 6    /// This controller is in charge of manage all the base logic related to a SLIDER CONTROL.
 7    /// </summary>
 8    public class SliderSettingsControlController : SettingsControlController
 9    {
 10        public event Action<string> OnIndicatorLabelChange;
 11        public event Action<float> SliderValueChanged;
 12
 13        protected void RaiseOnIndicatorLabelChange(string newIndicatorLabel) =>
 814            OnIndicatorLabelChange?.Invoke(newIndicatorLabel);
 15
 16        protected void RaiseSliderValueChanged(float newValue) =>
 017            SliderValueChanged?.Invoke(newValue);
 18    }
 19}