Skip to content

Commit

Permalink
Fix UTs
Browse files Browse the repository at this point in the history
  • Loading branch information
antonioaversa committed Feb 5, 2025
1 parent fe5ca33 commit 2b3529e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ internal class KotlinSensorTest : AbstractSensorTest() {
assertThat(context.measure(inputFile.key(), CoreMetrics.FUNCTIONS).value()).isEqualTo(1)
assertThat(context.measure(inputFile.key(), CoreMetrics.CLASSES).value()).isEqualTo(1)
assertThat(context.cpdTokens(inputFile.key())!![1].value)
.isEqualTo("print(1==1);print(\"LITERAL\");}")
.isEqualTo("print(1==1);print(LITERAL);}")
assertThat(context.measure(inputFile.key(), CoreMetrics.COMPLEXITY).value()).isEqualTo(1)
assertThat(context.measure(inputFile.key(), CoreMetrics.STATEMENTS).value()).isEqualTo(2)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ class CopyPasteDetectorTest {
.hasEndUnit(8)

assertThat(cpdTokenLines[2])
.hasValue("""println("LITERAL")""")
.hasValue("""println(LITERAL)""")
.hasStartLine(10)
.hasStartUnit(9)
.hasEndUnit(14)
Expand Down Expand Up @@ -151,7 +151,7 @@ class CopyPasteDetectorTest {

Assertions.assertThat(logs)
.hasSize(1)
.containsExactly("Caching 16 CPD tokens for next analysis of input file moduleKey:dummy.kt.")
.containsExactly("Caching 14 CPD tokens for next analysis of input file moduleKey:dummy.kt.")
}

@Test
Expand Down

0 comments on commit 2b3529e

Please sign in to comment.