2424import org .junit .jupiter .api .BeforeAll ;
2525import org .junit .jupiter .api .Test ;
2626import org .junit .jupiter .api .extension .RegisterExtension ;
27- import org .sonarqube .ws .Measures .Measure ;
2827
29- import static com .sonar .python .it .plugin .TestsUtils .getMeasure ;
3028import static com .sonar .python .it .plugin .TestsUtils .getMeasureAsDouble ;
3129import static com .sonar .python .it .plugin .TestsUtils .getMeasureAsInt ;
3230import static org .assertj .core .api .Assertions .assertThat ;
@@ -45,12 +43,10 @@ class MetricsTest {
4543 private static final String DUPLICATED_FILES = "duplicated_files" ;
4644 private static final String DUPLICATED_LINES = "duplicated_lines" ;
4745 private static final String DUPLICATED_LINES_DENSITY = "duplicated_lines_density" ;
48- private static final String EXECUTABLE_LINES_DATA = "executable_lines_data" ;
4946 private static final String FILES = "files" ;
5047 private static final String FUNCTIONS = "functions" ;
5148 private static final String LINES = "lines" ;
5249 private static final String NCLOC = "ncloc" ;
53- private static final String NCLOC_DATA = "ncloc_data" ;
5450 private static final String STATEMENTS = "statements" ;
5551 private static final String TESTS = "tests" ;
5652 private static final String VIOLATIONS = "violations" ;
@@ -155,10 +151,6 @@ void file_level() {
155151
156152 /* Helper methods */
157153
158- private Measure getProjectMeasure (String metricKey ) {
159- return getMeasure (PROJECT_KEY , metricKey );
160- }
161-
162154 private Integer getProjectMeasureAsInt (String metricKey ) {
163155 return getMeasureAsInt (PROJECT_KEY , metricKey );
164156 }
@@ -167,10 +159,6 @@ private Double getProjectMeasureAsDouble(String metricKey) {
167159 return getMeasureAsDouble (PROJECT_KEY , metricKey );
168160 }
169161
170- private Measure getDirectoryMeasure (String metricKey ) {
171- return getMeasure (keyFor ("dir" ), metricKey );
172- }
173-
174162 private Integer getDirectoryMeasureAsInt (String metricKey ) {
175163 return getMeasureAsInt (keyFor ("dir" ), metricKey );
176164 }
@@ -179,10 +167,6 @@ private Double getDirectoryMeasureAsDouble(String metricKey) {
179167 return getMeasureAsDouble (keyFor ("dir" ), metricKey );
180168 }
181169
182- private Measure getFileMeasure (String metricKey ) {
183- return getMeasure (keyFor (HELLO_WORLD_PY ), metricKey );
184- }
185-
186170 private Integer getFileMeasureAsInt (String metricKey ) {
187171 return getMeasureAsInt (keyFor (HELLO_WORLD_PY ), metricKey );
188172 }
0 commit comments