Skip to content

Commit f90a670

Browse files
committed
exclude ALC src from coverage...
1 parent 38ef5c2 commit f90a670

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

src/PSCompression.Shared/LoadContext.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1+
using System.Diagnostics.CodeAnalysis;
12
using System.IO;
23
using System.Reflection;
34
using System.Runtime.Loader;
45

56
namespace PSCompression.Shared;
67

8+
[ExcludeFromCodeCoverage]
79
public sealed class LoadContext : AssemblyLoadContext
810
{
911
private static LoadContext? _instance;
@@ -65,8 +67,7 @@ public static Assembly Initialize()
6567
Path.GetDirectoryName(assemblyPath)!,
6668
$"{moduleName}.dll");
6769

68-
_instance = new LoadContext(modulePath);
69-
return _instance._moduleAssembly;
70+
return new LoadContext(modulePath)._moduleAssembly;
7071
}
7172
}
7273
}

src/PSCompression.Shared/SharedUtil.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
using System;
22
using System.Collections.Generic;
3+
using System.Diagnostics.CodeAnalysis;
34
using System.Reflection;
45
using System.Runtime.Loader;
56

6-
namespace PowerShellKusto.Shared;
7+
namespace PSCompression.Shared;
78

9+
[ExcludeFromCodeCoverage]
810
internal sealed class SharedUtil
911
{
1012
public static void AddAssemblyInfo(Type type, Dictionary<string, object> data)

0 commit comments

Comments
 (0)