Skip to content

Commit

Permalink
Do not check external methods in Assertions4.assertDoesNotCall (#53)
Browse files Browse the repository at this point in the history
* bump: 0.6.3-SNAPSHOT

* do not check if executable is null
  • Loading branch information
dst97 committed Dec 4, 2022
1 parent d21cb64 commit 2ebf69a
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@ private static void assertDoesNotCall(
Context context,
PreCommentSupplier<? super ResultOfFail> comment
) {
if (executable == null) {
return;
}
executable.getElements(new TypeFilter<>(CtInvocation.class)).forEach(i -> {
var e = i.getExecutable().getDeclaration();
if (visited.contains(e)) {
Expand Down

0 comments on commit 2ebf69a

Please sign in to comment.