Skip to content

Commit

Permalink
Exclude OS-specific path replacements from test coverage (tests only …
Browse files Browse the repository at this point in the history
…run on Linux).
  • Loading branch information
highbyte committed Aug 7, 2024
1 parent e8502cd commit 03d035f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/libraries/Highbyte.DotNet6502/PathHelper.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
using System.Diagnostics.CodeAnalysis;
using System.Runtime.InteropServices;

namespace Highbyte.DotNet6502;
Expand All @@ -15,6 +16,7 @@ public static string ExpandOSEnvironmentVariables(string path)
return result;
}

[ExcludeFromCodeCoverage]
private static string ReplaceDirectorySeparator(string path)
{
if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux) || RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
Expand All @@ -26,6 +28,7 @@ private static string ReplaceDirectorySeparator(string path)
return path;
}

[ExcludeFromCodeCoverage]
private static string ReplaceOSSpecificVariablesForLinuxAndMac(string path)
{
if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux) || RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
Expand Down

0 comments on commit 03d035f

Please sign in to comment.