Skip to content

Commit

Permalink
Update MeasuresTest.java
Browse files Browse the repository at this point in the history
  • Loading branch information
leveretka authored Jan 6, 2025
1 parent 72371d9 commit c2ff29f
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,6 @@ public void kotlin_measures() {
assertThat(getMeasureAsInt(file1, "cognitive_complexity")).isEqualTo(0);
assertThat(getMeasureAsInt(file2, "cognitive_complexity")).isEqualTo(2);

/*
assertThat(getMeasure(emptyFile, "ncloc_data")).isNull();
assertThat(getMeasure(file1, "ncloc_data").getValue()).isEqualTo("1=1;3=1;4=1;7=1;8=1;13=1;14=1");
assertThat(getMeasure(file2, "ncloc_data").getValue()).isEqualTo("1=1;2=1;3=1;4=1;5=1;7=1;10=1;11=1");
assertThat(getMeasure(file1, "executable_lines_data").getValue()).isEqualTo("4=1;8=1;13=1");
*/

List<Issues.Issue> issuesForRule = getIssuesForRule(projectKey, "kotlin:S100");
assertThat(issuesForRule).extracting(Issues.Issue::getLine).containsExactly(2, 7);
assertThat(issuesForRule).extracting(Issues.Issue::getComponent).containsExactly(file2, file2);
Expand Down

0 comments on commit c2ff29f

Please sign in to comment.