< Summary

Class:ReorderableList.ReorderableAttribute
Assembly:Utils
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Helpers/Utils/ReorderableArray/Attributes/ReorderableAttribute.cs
Covered lines:0
Uncovered lines:14
Coverable lines:14
Total lines:51
Line coverage:0% (0 of 14)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
ReorderableAttribute()0%2100%
ReorderableAttribute(...)0%2100%
ReorderableAttribute(...)0%2100%
ReorderableAttribute(...)0%2100%
ReorderableAttribute(...)0%2100%
ReorderableAttribute(...)0%2100%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Helpers/Utils/ReorderableArray/Attributes/ReorderableAttribute.cs

#LineLine coverage
 1using UnityEngine;
 2using System;
 3
 4namespace ReorderableList
 5{
 6
 7    public class ReorderableAttribute : PropertyAttribute
 8    {
 9
 10        public bool add;
 11        public bool remove;
 12        public bool draggable;
 13        public bool singleLine;
 14        public bool paginate;
 15        public bool sortable;
 16        public int pageSize;
 17        public string elementNameProperty;
 18        public string elementNameOverride;
 19        public string elementIconPath;
 20        public Type surrogateType;
 21        public string surrogateProperty;
 22
 23        public ReorderableAttribute()
 024            : this(null) { }
 25
 26        public ReorderableAttribute(string elementNameProperty)
 027            : this(true, true, true, elementNameProperty, null, null) { }
 28
 29        public ReorderableAttribute(string elementNameProperty, string elementIconPath)
 030            : this(true, true, true, elementNameProperty, null, elementIconPath) { }
 31
 32        public ReorderableAttribute(string elementNameProperty, string elementNameOverride, string elementIconPath)
 033            : this(true, true, true, elementNameProperty, elementNameOverride, elementIconPath) { }
 34
 35        public ReorderableAttribute(bool add, bool remove, bool draggable, string elementNameProperty = null, string ele
 036            : this(add, remove, draggable, elementNameProperty, null, elementIconPath) { }
 37
 038        public ReorderableAttribute(bool add, bool remove, bool draggable, string elementNameProperty = null, string ele
 39        {
 40
 041            this.add = add;
 042            this.remove = remove;
 043            this.draggable = draggable;
 044            this.elementNameProperty = elementNameProperty;
 045            this.elementNameOverride = elementNameOverride;
 046            this.elementIconPath = elementIconPath;
 47
 048            sortable = true;
 049        }
 50    }
 51}