From d7760683c428c973c33de100e666f3f6b0d0f2cd Mon Sep 17 00:00:00 2001
From: Bart Koelman <104792814+bart-vmware@users.noreply.github.com>
Date: Mon, 13 Apr 2026 11:12:53 +0200
Subject: [PATCH] Verify Coverlet fix for
https://github.com/coverlet-coverage/coverlet/issues/1762
---
nuget.config | 6 +-----
.../FileSystem/NetworkShareWrapper.cs | 2 --
src/Management/src/Endpoint/Calculator.cs | 18 ++++++++++++++++++
.../test/Endpoint.Test/CalculatorTest.cs | 16 ++++++++++++++++
versions.props | 2 +-
5 files changed, 36 insertions(+), 8 deletions(-)
create mode 100644 src/Management/src/Endpoint/Calculator.cs
create mode 100644 src/Management/test/Endpoint.Test/CalculatorTest.cs
diff --git a/nuget.config b/nuget.config
index 128d95e590..708c634e3c 100644
--- a/nuget.config
+++ b/nuget.config
@@ -3,10 +3,6 @@
+
-
-
-
-
-
diff --git a/src/Management/src/Endpoint/Actuators/Health/Contributors/FileSystem/NetworkShareWrapper.cs b/src/Management/src/Endpoint/Actuators/Health/Contributors/FileSystem/NetworkShareWrapper.cs
index a62227d27d..c39452957d 100644
--- a/src/Management/src/Endpoint/Actuators/Health/Contributors/FileSystem/NetworkShareWrapper.cs
+++ b/src/Management/src/Endpoint/Actuators/Health/Contributors/FileSystem/NetworkShareWrapper.cs
@@ -2,7 +2,6 @@
// The .NET Foundation licenses this file to you under the Apache 2.0 License.
// See the LICENSE file in the project root for more information.
-using System.Diagnostics.CodeAnalysis;
using System.Runtime.InteropServices;
namespace Steeltoe.Management.Endpoint.Actuators.Health.Contributors.FileSystem;
@@ -27,7 +26,6 @@ private NetworkShareWrapper(ulong freeBytesAvailable, ulong totalNumberOfBytes)
: null;
}
- [ExcludeFromCodeCoverage(Justification = "Workaround for https://github.com/coverlet-coverage/coverlet/issues/1762")]
private static partial class NativeMethods
{
[LibraryImport("kernel32.dll", EntryPoint = "GetDiskFreeSpaceExW", StringMarshalling = StringMarshalling.Utf16, SetLastError = true)]
diff --git a/src/Management/src/Endpoint/Calculator.cs b/src/Management/src/Endpoint/Calculator.cs
new file mode 100644
index 0000000000..5d4f6b39b1
--- /dev/null
+++ b/src/Management/src/Endpoint/Calculator.cs
@@ -0,0 +1,18 @@
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the Apache 2.0 License.
+// See the LICENSE file in the project root for more information.
+
+namespace Steeltoe.Management.Endpoint;
+
+internal sealed class Calculator
+{
+ public int Add(int first, int second)
+ {
+ return first + second;
+ }
+
+ public int Subtract(int first, int second)
+ {
+ return first - second;
+ }
+}
diff --git a/src/Management/test/Endpoint.Test/CalculatorTest.cs b/src/Management/test/Endpoint.Test/CalculatorTest.cs
new file mode 100644
index 0000000000..173dd9e179
--- /dev/null
+++ b/src/Management/test/Endpoint.Test/CalculatorTest.cs
@@ -0,0 +1,16 @@
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the Apache 2.0 License.
+// See the LICENSE file in the project root for more information.
+
+namespace Steeltoe.Management.Endpoint.Test;
+
+public sealed class CalculatorTest
+{
+ [Fact]
+ public void Can_add()
+ {
+ var calculator = new Calculator();
+ int result = calculator.Add(3, 5);
+ result.Should().Be(8);
+ }
+}
diff --git a/versions.props b/versions.props
index bd806b1215..1dc250ad8c 100644
--- a/versions.props
+++ b/versions.props
@@ -6,7 +6,7 @@
-->
9.0.*
- 8.0.*
+ 8.1.0-preview-0018-g64b99d2d05
7.2.*
3.58.*
5.0.*