Skip to content

Commit cd381b9

Browse files
committed
Excluded Precedence Method form CodeCoverage
1 parent ff2fe79 commit cd381b9

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

Algorithms.Tests/Stack/InfixToPostfixTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public void InfixToPostfixConversion_MixedOperatorPrecedence_ReturnsCorrectPostf
6464
{
6565
// Arrange
6666
string infix = "A+B*C";
67-
67+
6868
// Act
6969
string result = InfixToPostfix.InfixToPostfixConversion(infix);
7070

Algorithms/Stack/InfixToPostfix.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using System;
2+
using System.Diagnostics.CodeAnalysis;
23

34
namespace Algorithms.Stack
45
{
@@ -197,6 +198,7 @@ private static void ValidatePostfix(string expr)
197198
/// <param name="operatorChar"> Operator character whose precedence is asked.</param>
198199
/// <returns>Precedence rank of parameter operator character.</returns>
199200
/// </summary>
201+
[ExcludeFromCodeCoverage]
200202
private static int Precedence(char operatorChar)
201203
{
202204
if (operatorChar == '^')

0 commit comments

Comments
 (0)