We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b271f1f commit 1abb8adCopy full SHA for 1abb8ad
java/ql/src/Likely Bugs/Frameworks/JUnit/ExcessivePublicMethodMocking.ql
@@ -68,7 +68,7 @@ where
68
mockCall.getParent+() = testMethod.getBody().getAStmt() and
69
mockedClassOrInterface = mockCall.getMockedType() and
70
// Only flag classes with multiple public methods (2 or more)
71
- count(Method m | m = mockedClassOrInterface.getAMethod() and m.isPublic()) > 1 and
+ strictcount(Method m | m = mockedClassOrInterface.getAMethod() and m.isPublic()) > 1 and
72
forex(Method method | method = mockedClassOrInterface.getAMethod() and method.isPublic() |
73
exists(MockitoMockingMethodCall mockedMethod |
74
mockedMethod.getMockitoMockCall() = mockCall and
0 commit comments