< Summary

Line coverage
100%
Covered lines: 43
Uncovered lines: 0
Coverable lines: 43
Total lines: 140
Line coverage: 100%
Branch coverage
100%
Covered branches: 6
Total branches: 6
Branch coverage: 100%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
File 1: Equals(...)100%44100%
File 1: Equals(...)100%22100%
File 1: op_Equality(...)100%11100%
File 1: op_Inequality(...)100%11100%
File 1: GetHashCode()100%11100%
File 2: .ctor(...)100%11100%
File 2: .ctor(...)100%11100%
File 2: .ctor(...)100%11100%
File 2: .ctor(...)100%11100%
File 2: .ctor(...)100%11100%
File 2: get_X()100%11100%
File 2: set_X(...)100%11100%
File 2: get_Y()100%11100%
File 2: set_Y(...)100%11100%
File 2: get_Z()100%11100%
File 2: set_Z(...)100%11100%
File 2: op_Implicit(...)100%11100%
File 2: Deconstruct(...)100%11100%
File 2: ToVector3()100%11100%

File(s)

\_\JeremyAnsel.Media.WavefrontObj\JeremyAnsel.Media.WavefrontObj\obj\Release\net48\Equatable.SourceGenerator\Equatable.SourceGenerator.EquatableGenerator\JeremyAnsel.Media.WavefrontObj.ObjVector3.Equatable.g.cs

File '\_\JeremyAnsel.Media.WavefrontObj\JeremyAnsel.Media.WavefrontObj\obj\Release\net48\Equatable.SourceGenerator\Equatable.SourceGenerator.EquatableGenerator\JeremyAnsel.Media.WavefrontObj.ObjVector3.Equatable.g.cs' does not exist (any more).

https://raw.githubusercontent.com/JeremyAnsel/JeremyAnsel.Media.WavefrontObj/636b700b450d7d3262bf9218a7cc67966be4ced8/JeremyAnsel.Media.WavefrontObj/JeremyAnsel.Media.WavefrontObj/ObjVector3.cs

#LineLine coverage
 1// <copyright file="ObjVector3.cs" company="Jérémy Ansel">
 2// Copyright (c) 2017, 2019 Jérémy Ansel
 3// </copyright>
 4// <license>
 5// Licensed under the MIT license. See LICENSE.txt
 6// </license>
 7
 8using Equatable.Attributes;
 9
 10namespace JeremyAnsel.Media.WavefrontObj
 11{
 12    [System.Diagnostics.DebuggerDisplay("{X} {Y} {Z}")]
 13    [Equatable]
 14    public partial struct ObjVector3
 15    {
 16        private float x;
 17
 18        private float y;
 19
 20        private float z;
 21
 22        public ObjVector3(System.Numerics.Vector3 v)
 23        {
 424            this.x = v.X;
 425            this.y = v.Y;
 426            this.z = v.Z;
 427        }
 28
 29        public ObjVector3(System.Numerics.Vector2 v, float z = 1.0f)
 30        {
 431            this.x = v.X;
 432            this.y = v.Y;
 433            this.z = z;
 434        }
 35
 36        public ObjVector3(float x, float y, float z)
 37        {
 247038            this.x = x;
 247039            this.y = y;
 247040            this.z = z;
 247041        }
 42
 43        public ObjVector3(float x, float y)
 44        {
 445            this.x = x;
 446            this.y = y;
 447            this.z = 1.0f;
 448        }
 49
 50        public ObjVector3(float x)
 51        {
 452            this.x = x;
 453            this.y = 0.0f;
 454            this.z = 1.0f;
 455        }
 56
 57        public float X
 58        {
 102859            readonly get { return this.x; }
 100060            set { this.x = value; }
 61        }
 62
 63        public float Y
 64        {
 85265            readonly get { return this.y; }
 85666            set { this.y = value; }
 67        }
 68
 69        public float Z
 70        {
 86871            readonly get { return this.z; }
 83272            set { this.z = value; }
 73        }
 74
 75        public static implicit operator ObjVector3(System.Numerics.Vector3 v)
 76        {
 477            return new ObjVector3(v);
 78        }
 79
 80        public readonly void Deconstruct(out float @x, out float @y, out float @z)
 81        {
 482            @x = this.x;
 483            @y = this.y;
 484            @z = this.z;
 485        }
 86
 87        public readonly System.Numerics.Vector3 ToVector3()
 88        {
 489            return new System.Numerics.Vector3(x, y, z);
 90        }
 91    }
 92}
 93