< 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:0
Uncovered lines:9
Coverable lines:9
Total lines:32
Line coverage:0% (0 of 9)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
DCLUVs()0%2100%
DCLUVs(...)0%2100%
Equals(...)0%20400%
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    {
 08        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        {
 017            this.BottomLeft = bottomLeft;
 018            this.TopLeft = topLeft;
 019            this.TopRight = topRight;
 020            this.BottomRight = bottomRight;
 021        }
 22
 23        public bool Equals(DCLUVs other) =>
 024            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}