Skip to content

Commit

Permalink
Fix failing data-prepper-expression code coverage verfication (#5265)
Browse files Browse the repository at this point in the history
Signed-off-by: Krishna Kondaka <[email protected]>
  • Loading branch information
kkondaka authored Dec 14, 2024
1 parent a12471c commit 956a89a
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ void testShouldEvaluate() {
assertThat(objectUnderTest.shouldEvaluate(ctx), is(true));
when(ctx.getRuleIndex()).thenReturn(-1);
assertThat(objectUnderTest.shouldEvaluate(ctx), is(false));
assertThat(objectUnderTest.isBooleanOperator(), is(true));
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ void testShouldEvaluate() {
assertThat(objectUnderTest.shouldEvaluate(ctx), is(true));
when(ctx.getRuleIndex()).thenReturn(-1);
assertThat(objectUnderTest.shouldEvaluate(ctx), is(false));
assertThat(objectUnderTest.isBooleanOperator(), is(true));
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ void testGivenMatchingRuleThenReturnTrue() {
.getRuleIndex();

assertThat(genericNotOperator.shouldEvaluate(context), is(true));
assertThat(genericNotOperator.isBooleanOperator(), is(true));
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ void testShouldEvaluate() {
assertThat(objectUnderTest.shouldEvaluate(ctx), is(true));
when(ctx.getRuleIndex()).thenReturn(-1);
assertThat(objectUnderTest.shouldEvaluate(ctx), is(false));
assertThat(objectUnderTest.isBooleanOperator(), is(true));
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ void testShouldEvaluate() {
assertThat(objectUnderTest.shouldEvaluate(ctx), is(true));
when(ctx.getRuleIndex()).thenReturn(-1);
assertThat(objectUnderTest.shouldEvaluate(ctx), is(false));
assertThat(objectUnderTest.isBooleanOperator(), is(true));
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ void testShouldEvaluate() {
assertThat(objectUnderTest.shouldEvaluate(ctx), is(true));
when(ctx.getRuleIndex()).thenReturn(-1);
assertThat(objectUnderTest.shouldEvaluate(ctx), is(false));
assertThat(objectUnderTest.isBooleanOperator(), is(true));
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ void testShouldEvaluate() {
assertThat(objectUnderTest.shouldEvaluate(ctx), is(true));
when(ctx.getRuleIndex()).thenReturn(-1);
assertThat(objectUnderTest.shouldEvaluate(ctx), is(false));
assertThat(objectUnderTest.isBooleanOperator(), is(true));
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ void testShouldEvaluate() {
assertThat(objectUnderTest.shouldEvaluate(ctx), is(true));
when(ctx.getRuleIndex()).thenReturn(-1);
assertThat(objectUnderTest.shouldEvaluate(ctx), is(false));
assertThat(objectUnderTest.isBooleanOperator(), is(true));
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ void testShouldEvaluate() {
assertThat(objectUnderTest.shouldEvaluate(ctx), is(true));
when(ctx.getRuleIndex()).thenReturn(-1);
assertThat(objectUnderTest.shouldEvaluate(ctx), is(false));
assertThat(objectUnderTest.isBooleanOperator(), is(true));
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ void testShouldEvaluate() {
assertThat(objectUnderTest.shouldEvaluate(ctx), is(true));
when(ctx.getRuleIndex()).thenReturn(-1);
assertThat(objectUnderTest.shouldEvaluate(ctx), is(false));
assertThat(objectUnderTest.isBooleanOperator(), is(true));
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ void testShouldEvaluate() {
assertThat(objectUnderTest.shouldEvaluate(ctx), is(true));
when(ctx.getRuleIndex()).thenReturn(-1);
assertThat(objectUnderTest.shouldEvaluate(ctx), is(false));
assertThat(objectUnderTest.isBooleanOperator(), is(true));
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ void testShouldEvaluate() {
assertThat(objectUnderTest.shouldEvaluate(ctx), is(true));
when(ctx.getRuleIndex()).thenReturn(-1);
assertThat(objectUnderTest.shouldEvaluate(ctx), is(false));
assertThat(objectUnderTest.isBooleanOperator(), is(true));
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ void testShouldEvaluate() {
assertThat(objectUnderTest.shouldEvaluate(ctx), is(true));
when(ctx.getRuleIndex()).thenReturn(-1);
assertThat(objectUnderTest.shouldEvaluate(ctx), is(false));
assertThat(objectUnderTest.isBooleanOperator(), is(true));
}

@Test
Expand Down

0 comments on commit 956a89a

Please sign in to comment.