Skip to content

Commit

Permalink
WIP Remove non-persistent metrics test
Browse files Browse the repository at this point in the history
  • Loading branch information
leveretka committed Dec 13, 2024
1 parent 28718ef commit 72371d9
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,13 @@ 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);
Expand Down

0 comments on commit 72371d9

Please sign in to comment.