< Summary

Class:QuaternionVariable
Assembly:BaseVariable
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/DataStore/Variables/QuaternionVariable.cs
Covered lines:1
Uncovered lines:0
Coverable lines:1
Total lines:8
Line coverage:100% (1 of 1)
Covered branches:0
Total branches:0

Metrics

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

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/DataStore/Variables/QuaternionVariable.cs

#LineLine coverage
 1using UnityEngine;
 2
 3[CreateAssetMenu(fileName = "QuaternionVariable", menuName = "Variables/QuaternionVariable")]
 4public class QuaternionVariable : BaseVariableAsset<Quaternion>
 5{
 6    // Kinerius: euler angles comparison proved to be more reliable than comparing quaternion itself
 687    public override bool Equals(Quaternion other) { return value.eulerAngles == other.eulerAngles; }
 8}

Methods/Properties

Equals(UnityEngine.Quaternion)