FileMetrics { public int numberOfFunctions() { return functionComplexities.size(); } FileMetrics(PythonVisitorContext context); int numberOfStatements(); int numberOfFunctions(); int numberOfClasses(); int complexity(); int cognitiveComplexity(); List<Integer> functionComplexities(); FileLinesVisitor fileLinesVisitor();  }
@Test public void functions() { assertThat(metrics("functions.py").numberOfFunctions()).isEqualTo(1); }