Skip to content

Commit 86580da

Browse files
committed
method ToDebugString removed from code coverage
1 parent baa60e2 commit 86580da

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/PolylineAlgorithm/Polyline.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ namespace PolylineAlgorithm;
88
using PolylineAlgorithm.Properties;
99
using System;
1010
using System.Diagnostics;
11+
using System.Diagnostics.CodeAnalysis;
1112
using System.Runtime.InteropServices;
1213

1314
/// <summary>
@@ -96,6 +97,11 @@ public override string ToString() {
9697
/// <returns>
9798
/// A string that includes the polyline value, truncated if necessary, for debugging purposes.
9899
/// </returns>
100+
[ExcludeFromCodeCoverage(
101+
#if NET5_0_OR_GREATER
102+
Justification = "Only used during debugging."
103+
#endif
104+
)]
99105
private string ToDebugString() {
100106
if (IsEmpty) {
101107
return string.Empty;

0 commit comments

Comments
 (0)