< Summary

Class:DCL.UIElements.Structures.DCLUVs
Assembly:ECS7.UIElements.Structures
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/ECS7/UIElements/Structures/DCLUVs.cs
Covered lines:7
Uncovered lines:2
Coverable lines:9
Total lines:32
Line coverage:77.7% (7 of 9)
Covered branches:0
Total branches:0
Covered methods:3
Total methods:5
Method coverage:60% (3 of 5)

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
DCLUVs()0%110100%
DCLUVs(...)0%110100%
Equals(...)0%440100%
Equals(...)0%6200%
GetHashCode()0%2100%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/ECS7/UIElements/Structures/DCLUVs.cs

#LineLine coverage
 1using System;
 2using UnityEngine;
 3
 4namespace DCL.UIElements.Structures
 5{
 6    public struct DCLUVs : IEquatable<DCLUVs>
 7    {
 18        public static readonly DCLUVs Default = new (Vector2.zero, Vector2.up, Vector2.one, Vector2.right);
 9
 10        public Vector2 BottomLeft;
 11        public Vector2 TopLeft;
 12        public Vector2 TopRight;
 13        public Vector2 BottomRight;
 14
 15        public DCLUVs(Vector2 bottomLeft, Vector2 topLeft, Vector2 topRight, Vector2 bottomRight)
 16        {
 117            this.BottomLeft = bottomLeft;
 118            this.TopLeft = topLeft;
 119            this.TopRight = topRight;
 120            this.BottomRight = bottomRight;
 121        }
 22
 23        public bool Equals(DCLUVs other) =>
 124            BottomLeft.Equals(other.BottomLeft) && TopLeft.Equals(other.TopLeft) && TopRight.Equals(other.TopRight) && B
 25
 26        public override bool Equals(object obj) =>
 027            obj is DCLUVs other && Equals(other);
 28
 29        public override int GetHashCode() =>
 030            HashCode.Combine(BottomLeft, TopLeft, TopRight, BottomRight);
 31    }
 32}