### Question:
FunctionCognitiveComplexityCheck extends Check { public void setMaxComplexity(int maxComplexity) { this.maxComplexity = maxComplexity; } FunctionCognitiveComplexityCheck(); @Override void enterFile(InputFile inputFile); void setMaxComplexity(int maxComplexity); @Override void visitNode(UastNode node); @Override void leaveNode(UastNode node);  }### Answer:
@Test void test_java() throws Exception { FunctionCognitiveComplexityCheck check = new FunctionCognitiveComplexityCheck(); check.setMaxComplexity(0); TestUtils.checkRuleOnJava(check); }
@Test void test_go() throws Exception { FunctionCognitiveComplexityCheck check = new FunctionCognitiveComplexityCheck(); check.setMaxComplexity(0); TestUtils.checkRuleOnGo(check); }