< Summary

Line coverage
100%
Covered lines: 48
Uncovered lines: 0
Coverable lines: 48
Total lines: 148
Line coverage: 100%
Branch coverage
100%
Covered branches: 8
Total branches: 8
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%66100%
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: 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: get_W()100%11100%
File 2: set_W(...)100%11100%
File 2: op_Implicit(...)100%11100%
File 2: Deconstruct(...)100%11100%
File 2: ToVector4()100%11100%

File(s)

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

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

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

#LineLine coverage
 1// <copyright file="ObjVector4.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} {W}")]
 13    [Equatable]
 14    public partial struct ObjVector4
 15    {
 16        private float x;
 17
 18        private float y;
 19
 20        private float z;
 21
 22        private float w;
 23
 24        public ObjVector4(System.Numerics.Vector4 v)
 25        {
 426            this.x = v.X;
 427            this.y = v.Y;
 428            this.z = v.Z;
 429            this.w = v.W;
 430        }
 31
 32        public ObjVector4(System.Numerics.Vector3 v, float w = 1.0f)
 33        {
 434            this.x = v.X;
 435            this.y = v.Y;
 436            this.z = v.Z;
 437            this.w = w;
 438        }
 39
 40        public ObjVector4(float x, float y, float z, float w)
 41        {
 88042            this.x = x;
 88043            this.y = y;
 88044            this.z = z;
 88045            this.w = w;
 88046        }
 47
 48        public ObjVector4(float x, float y, float z)
 49        {
 450            this.x = x;
 451            this.y = y;
 452            this.z = z;
 453            this.w = 1.0f;
 454        }
 55
 56        public float X
 57        {
 66858            readonly get { return this.x; }
 859            set { this.x = value; }
 60        }
 61
 62        public float Y
 63        {
 49264            readonly get { return this.y; }
 865            set { this.y = value; }
 66        }
 67
 68        public float Z
 69        {
 49270            readonly get { return this.z; }
 871            set { this.z = value; }
 72        }
 73
 74        public float W
 75        {
 49276            readonly get { return this.w; }
 877            set { this.w = value; }
 78        }
 79
 80        public static implicit operator ObjVector4(System.Numerics.Vector4 v)
 81        {
 482            return new ObjVector4(v);
 83        }
 84
 85        public readonly void Deconstruct(out float @x, out float @y, out float @z, out float @w)
 86        {
 487            @x = this.x;
 488            @y = this.y;
 489            @z = this.z;
 490            @w = this.w;
 491        }
 92
 93        public readonly System.Numerics.Vector4 ToVector4()
 94        {
 495            return new System.Numerics.Vector4(x, y, z, w);
 96        }
 97    }
 98}
 99