Skip to content

Commit

Permalink
ci: exclude default arm of Rune.Repeat from coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverbooth committed Apr 2, 2023
1 parent 95cd3e8 commit 58c333a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
12 changes: 11 additions & 1 deletion X10D/X10D.csproj
Expand Up @@ -89,7 +89,17 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\X10D.SourceGenerator\X10D.SourceGenerator.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false"/>
<ProjectReference Include="..\X10D.SourceGenerator\X10D.SourceGenerator.csproj">
<OutputItemType>Analyzer</OutputItemType>
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
</ProjectReference>
</ItemGroup>

<ItemGroup>
<PackageReference Include="JetBrains.dotCover.MSBuild" Version="1.0.5-alpha">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>

</Project>
4 changes: 4 additions & 0 deletions X10D/src/Text/RuneExtensions.cs
Expand Up @@ -98,8 +98,12 @@ public static string Repeat(this Rune value, int count)
});
}

// dotcover disable
//NOSONAR
default:
return Default();
//NOSONAR
// dotcover enable
}

[ExcludeFromCodeCoverage, DoesNotReturn]
Expand Down

0 comments on commit 58c333a

Please sign in to comment.