FileMetrics { public List<Integer> functionComplexities() { return functionComplexities; } FileMetrics(PythonVisitorContext context); int numberOfStatements(); int numberOfFunctions(); int numberOfClasses(); int complexity(); int cognitiveComplexity(); List<Integer> functionComplexities(); FileLinesVisitor fileLinesVisitor();  }
@Test public void function_complexities() { assertThat(metrics("function-complexities.py").functionComplexities()).containsExactly(3, 1); }