From 918b0b7612304e009fd4a5011401e7623f3998a5 Mon Sep 17 00:00:00 2001 From: Oliver Booth Date: Sun, 2 Apr 2023 03:44:35 +0100 Subject: [PATCH] ci: exclude cpu-arch support providers from coverage --- X10D/src/SystemAvx2SupportProvider.cs | 4 +++- X10D/src/SystemSse2SupportProvider.cs | 4 +++- X10D/src/SystemSsse3SupportProvider.cs | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/X10D/src/SystemAvx2SupportProvider.cs b/X10D/src/SystemAvx2SupportProvider.cs index 976336e..d15dbce 100644 --- a/X10D/src/SystemAvx2SupportProvider.cs +++ b/X10D/src/SystemAvx2SupportProvider.cs @@ -1,9 +1,11 @@ -#if NETCOREAPP3_0_OR_GREATER +using System.Diagnostics.CodeAnalysis; +#if NETCOREAPP3_0_OR_GREATER using System.Runtime.Intrinsics.X86; #endif namespace X10D; +[ExcludeFromCodeCoverage] internal struct SystemAvx2SupportProvider : IAvx2SupportProvider { /// diff --git a/X10D/src/SystemSse2SupportProvider.cs b/X10D/src/SystemSse2SupportProvider.cs index 20c0337..7b34642 100644 --- a/X10D/src/SystemSse2SupportProvider.cs +++ b/X10D/src/SystemSse2SupportProvider.cs @@ -1,9 +1,11 @@ -#if NETCOREAPP3_0_OR_GREATER +using System.Diagnostics.CodeAnalysis; +#if NETCOREAPP3_0_OR_GREATER using System.Runtime.Intrinsics.X86; #endif namespace X10D; +[ExcludeFromCodeCoverage] internal struct SystemSse2SupportProvider : ISse2SupportProvider { /// diff --git a/X10D/src/SystemSsse3SupportProvider.cs b/X10D/src/SystemSsse3SupportProvider.cs index 0369cf8..4d12728 100644 --- a/X10D/src/SystemSsse3SupportProvider.cs +++ b/X10D/src/SystemSsse3SupportProvider.cs @@ -1,9 +1,11 @@ -#if NETCOREAPP3_0_OR_GREATER +using System.Diagnostics.CodeAnalysis; +#if NETCOREAPP3_0_OR_GREATER using System.Runtime.Intrinsics.X86; #endif namespace X10D; +[ExcludeFromCodeCoverage] internal struct SystemSsse3SupportProvider : ISsse3SupportProvider { ///