< Summary

Class:DCL.Components.DCLGizmos
Assembly:DCL.Components.Builder
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Components/BuilderInWorld/Gizmos/DCLGizmos.cs
Covered lines:0
Uncovered lines:9
Coverable lines:9
Total lines:37
Line coverage:0% (0 of 9)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
Model()0%2100%
GetDataFromJSON(...)0%2100%
Awake()0%2100%
ApplyChanges(...)0%2100%
GetClassId()0%2100%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Components/BuilderInWorld/Gizmos/DCLGizmos.cs

#LineLine coverage
 1using System.Collections;
 2using System.Collections.Generic;
 3using DCL.Helpers;
 4using DCL.Models;
 5
 6namespace DCL.Components
 7{
 8    public class DCLGizmos : BaseComponent
 9    {
 10        public static class Gizmo
 11        {
 12            public const string MOVE = "MOVE";
 13            public const string ROTATE = "ROTATE";
 14            public const string SCALE = "SCALE";
 15            public const string NONE = "NONE";
 16        }
 17
 18        [System.Serializable]
 19        public class Model : BaseModel
 20        {
 021            public bool position = true;
 022            public bool rotation = true;
 023            public bool scale = true;
 024            public bool cycle = true;
 025            public string selectedGizmo = Gizmo.NONE;
 26            public bool localReference = false;
 27
 028            public override BaseModel GetDataFromJSON(string json) { return Utils.SafeFromJson<Model>(json); }
 29        }
 30
 031        private void Awake() { model = new Model(); }
 32
 033        public override IEnumerator ApplyChanges(BaseModel baseModel) { return null; }
 34
 035        public override int GetClassId() { return (int) CLASS_ID_COMPONENT.GIZMOS; }
 36    }
 37}