CognitiveComplexityFunctionCheck extends PythonSubscriptionCheck { public void setThreshold(int threshold) { this.threshold = threshold; }  @Override void initialize(Context context); void setThreshold(int threshold); static final String CHECK_KEY; }
@Test public void test() { check.setThreshold(0); PythonCheckVerifier.verify("src/test/resources/checks/cognitiveComplexityFunction.py", check); }