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