Skip to content

Commit

Permalink
Fixed test failure caused by Code Coverage reporter
Browse files Browse the repository at this point in the history
  • Loading branch information
sakno committed Jan 13, 2024
1 parent 93b5c0f commit 6211e4a
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 11 deletions.
1 change: 0 additions & 1 deletion src/Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,5 @@
<PackageVersion Include="FastMember.Signed" Version="1.5.0" />
<PackageVersion Include="xunit" Version="2.6.5" />
<PackageVersion Include="xunit.runner.visualstudio" Version="2.5.6"/>
<PackageVersion Include="coverlet.collector" Version="3.2.0"/>
</ItemGroup>
</Project>
7 changes: 1 addition & 6 deletions src/DotNext.Tests/.runsettings
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<RunSettings>
<RunConfiguration>
<TestSessionTimeout>300000</TestSessionTimeout>
<TargetFrameworkVersion>net8.0</TargetFrameworkVersion>
</RunConfiguration>
<DataCollectionRunSettings>
<DataCollectors>
Expand All @@ -16,12 +17,6 @@
</CodeCoverage>
</Configuration>
</DataCollector>
<DataCollector friendlyName="XPlat Code Coverage">
<Configuration>
<Format>lcov</Format>
<ExcludeByAttribute>GeneratedCodeAttribute,CompilerGeneratedAttribute,ExcludeFromCodeCoverageAttribute</ExcludeByAttribute>
</Configuration>
</DataCollector>
</DataCollectors>
</DataCollectionRunSettings>
</RunSettings>
4 changes: 0 additions & 4 deletions src/DotNext.Tests/DotNext.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,6 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
<PackageReference Include="coverlet.collector">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="System.Resources.Extensions"/>
</ItemGroup>

Expand Down
1 change: 1 addition & 0 deletions src/DotNext/Buffers/Text/Hex.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ public static partial class Hex
{
private const byte NibbleMaxValue = 0B1111;

[ExcludeFromCodeCoverage]
private static ReadOnlySpan<char> NibbleToUtf16CharLookupTable => ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F'];

private static ReadOnlySpan<byte> CharToNibbleLookupTable =>
Expand Down

0 comments on commit 6211e4a

Please sign in to comment.