1
0
mirror of https://github.com/oliverbooth/X10D synced 2024-11-22 19:18:46 +00:00

test: exclude "packing magic" properties from coverage

This commit is contained in:
Oliver Booth 2023-03-31 20:17:27 +01:00
parent 4152c289e3
commit 09d3c311d9
No known key found for this signature in database
GPG Key ID: 20BEB9DC87961025

View File

@ -1,3 +1,4 @@
using System.Diagnostics.CodeAnalysis;
using System.Diagnostics.Contracts;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
@ -23,16 +24,19 @@ public static class SpanExtensions
#if NETCOREAPP3_0_OR_GREATER
private const ulong IntegerPackingMagic = 0x0102040810204080;
[ExcludeFromCodeCoverage]
private static Vector64<ulong> IntegerPackingMagicV64
{
get => Vector64.Create(IntegerPackingMagic);
}
[ExcludeFromCodeCoverage]
private static Vector128<ulong> IntegerPackingMagicV128
{
get => Vector128.Create(IntegerPackingMagic);
}
[ExcludeFromCodeCoverage]
private static Vector256<ulong> IntegerPackingMagicV256
{
get => Vector256.Create(IntegerPackingMagic);