Skip to content

Commit

Permalink
SONAR-22876 Remove from integration tests assertions for `executable_…
Browse files Browse the repository at this point in the history
…lines_data` and `ncloc_data`
  • Loading branch information
leveretka authored Jan 8, 2025
1 parent 9ae0f9a commit d06588c
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +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 d06588c

Please sign in to comment.