24
24
import org .junit .jupiter .api .BeforeAll ;
25
25
import org .junit .jupiter .api .Test ;
26
26
import org .junit .jupiter .api .extension .RegisterExtension ;
27
- import org .sonarqube .ws .Measures .Measure ;
28
27
29
- import static com .sonar .python .it .plugin .TestsUtils .getMeasure ;
30
28
import static com .sonar .python .it .plugin .TestsUtils .getMeasureAsDouble ;
31
29
import static com .sonar .python .it .plugin .TestsUtils .getMeasureAsInt ;
32
30
import static org .assertj .core .api .Assertions .assertThat ;
@@ -45,12 +43,10 @@ class MetricsTest {
45
43
private static final String DUPLICATED_FILES = "duplicated_files" ;
46
44
private static final String DUPLICATED_LINES = "duplicated_lines" ;
47
45
private static final String DUPLICATED_LINES_DENSITY = "duplicated_lines_density" ;
48
- private static final String EXECUTABLE_LINES_DATA = "executable_lines_data" ;
49
46
private static final String FILES = "files" ;
50
47
private static final String FUNCTIONS = "functions" ;
51
48
private static final String LINES = "lines" ;
52
49
private static final String NCLOC = "ncloc" ;
53
- private static final String NCLOC_DATA = "ncloc_data" ;
54
50
private static final String STATEMENTS = "statements" ;
55
51
private static final String TESTS = "tests" ;
56
52
private static final String VIOLATIONS = "violations" ;
@@ -155,10 +151,6 @@ void file_level() {
155
151
156
152
/* Helper methods */
157
153
158
- private Measure getProjectMeasure (String metricKey ) {
159
- return getMeasure (PROJECT_KEY , metricKey );
160
- }
161
-
162
154
private Integer getProjectMeasureAsInt (String metricKey ) {
163
155
return getMeasureAsInt (PROJECT_KEY , metricKey );
164
156
}
@@ -167,10 +159,6 @@ private Double getProjectMeasureAsDouble(String metricKey) {
167
159
return getMeasureAsDouble (PROJECT_KEY , metricKey );
168
160
}
169
161
170
- private Measure getDirectoryMeasure (String metricKey ) {
171
- return getMeasure (keyFor ("dir" ), metricKey );
172
- }
173
-
174
162
private Integer getDirectoryMeasureAsInt (String metricKey ) {
175
163
return getMeasureAsInt (keyFor ("dir" ), metricKey );
176
164
}
@@ -179,10 +167,6 @@ private Double getDirectoryMeasureAsDouble(String metricKey) {
179
167
return getMeasureAsDouble (keyFor ("dir" ), metricKey );
180
168
}
181
169
182
- private Measure getFileMeasure (String metricKey ) {
183
- return getMeasure (keyFor (HELLO_WORLD_PY ), metricKey );
184
- }
185
-
186
170
private Integer getFileMeasureAsInt (String metricKey ) {
187
171
return getMeasureAsInt (keyFor (HELLO_WORLD_PY ), metricKey );
188
172
}
0 commit comments