< Summary

Class:DCL.SettingsCommon.SettingsControllers.SpecificControllers.FOVControlController
Assembly:SettingsControllers
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/Settings/SettingsControllers/SpecificControllers/FOVControlController.cs
Covered lines:4
Uncovered lines:0
Coverable lines:4
Total lines:18
Line coverage:100% (4 of 4)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
GetStoredValue()0%110100%
UpdateSetting(...)0%110100%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/Settings/SettingsControllers/SpecificControllers/FOVControlController.cs

#LineLine coverage
 1using DCL.SettingsCommon.SettingsControllers.BaseControllers;
 2using UnityEngine;
 3
 4namespace DCL.SettingsCommon.SettingsControllers.SpecificControllers
 5{
 6    [CreateAssetMenu(menuName = "Settings/Controllers/Controls/FOV", fileName = "FOVControlController")]
 7    public class FOVControlController : SliderSettingsControlController
 8    {
 29        public override object GetStoredValue() { return currentGeneralSettings.firstPersonCameraFOV; }
 10
 11        public override void UpdateSetting(object newValue)
 12        {
 213            currentGeneralSettings.firstPersonCameraFOV = (float)newValue;
 14
 215            SceneReferences.i.firstPersonCamera.m_Lens.FieldOfView = currentGeneralSettings.firstPersonCameraFOV;
 216        }
 17    }
 18}