< Summary

Class:AvatarAnimationsVariable
Assembly:AvatarShape
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Components/Avatar/Animations/AvatarAnimationsVariable.cs
Covered lines:0
Uncovered lines:6
Coverable lines:6
Total lines:25
Line coverage:0% (0 of 6)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
Equals(...)0%20400%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Components/Avatar/Animations/AvatarAnimationsVariable.cs

#LineLine coverage
 1using UnityEngine;
 2
 3[CreateAssetMenu(fileName = "AvatarAnimationsVariable", menuName = "AvatarAnimationsVariable")]
 4public class AvatarAnimationsVariable : BaseVariableAsset<AvatarAnimation[]>
 5{
 6    public override bool Equals(AvatarAnimation[] other)
 7    {
 08        if (value.Length != other.Length)
 09            return false;
 010        for (var i = 0; i < value.Length; i++)
 11        {
 012            if (value[i] != other[i])
 013                return false;
 14        }
 15
 016        return true;
 17    }
 18}
 19
 20[System.Serializable]
 21public class AvatarAnimation
 22{
 23    public AnimationClip clip;
 24    public string id;
 25}

Methods/Properties

Equals(AvatarAnimation[])