Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
Signed-off-by: see-quick <maros.orsak159@gmail.com>
  • Loading branch information
see-quick committed Nov 9, 2024
1 parent d19cd6b commit bbb2a20
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,10 @@ public void shouldNotFilterMutationsInNestedLambdaWithinUnannotatedOverloadedMet

// Should include mutations from the unannotated method and its nested lambdas
assertThat(actual).anyMatch(mutation -> mutation.getId().getLocation().getMethodName().equals("baz"));
assertThat(actual).anyMatch(mutation -> mutation.getId().getLocation().getMethodName().startsWith("lambda$baz$"));
assertThat(actual).anyMatch(mutation -> {
String methodName = mutation.getId().getLocation().getMethodName();
return methodName.startsWith("lambda$baz$") || methodName.startsWith("lambda$null$");
});
}

@Test
Expand Down

0 comments on commit bbb2a20

Please sign in to comment.