File tree 2 files changed +3
-31
lines changed
src/test/kotlin/eu/ibagroup/formainframe/editor
2 files changed +3
-31
lines changed Original file line number Diff line number Diff line change 17
17
run : >
18
18
./gradlew --info sonar
19
19
-Dorg.gradle.jvmargs="-XX:MaxMetaspaceSize=512m"
20
- -Dresults="build/reports/tests/test,build/test-results/test,build/reports/jacoco/test /html"
21
- -Psonar.host.url=$SONAR_HOST_URL -Dsonar.login =$SONAR_TOKEN
22
- -Dsonar.coverage.jacoco.xmlReportPaths="build/reports/jacoco .xml"
20
+ -Dresults="build/reports/tests/test,build/test-results/test,build/reports/kover /html"
21
+ -Psonar.host.url=$SONAR_HOST_URL -Dsonar.token =$SONAR_TOKEN
22
+ -Dsonar.coverage.jacoco.xmlReportPaths="build/reports/kover/xml/report .xml"
Original file line number Diff line number Diff line change @@ -511,34 +511,6 @@ class EditorTestSpec : WithApplicationShouldSpec({
511
511
512
512
assertSoftly { descriptors?.isEmpty() shouldBe true }
513
513
}
514
- should("check file when getting decoder error") {
515
-
516
- text = " qwe��rty"
517
-
518
- var decoderResultIsError = false
519
- var pointer = 0
520
- every { decoderMock.decode(any(), any(), any()) } answers {
521
- val back = secondArg<CharBuffer >()
522
- val str = text.substring(pointer)
523
- val pos = str.indexOfFirst { it !in ' A' ..' z' }
524
- if (pos != -1) {
525
- decoderResultIsError = true
526
- pointer += pos
527
- back.position(pointer)
528
- pointer++
529
- } else {
530
- decoderResultIsError = false
531
- back.put(str)
532
- }
533
- decoderResultMock
534
- }
535
- every { decoderResultMock.isError } answers { decoderResultIsError }
536
-
537
- val descriptors = lossyEncodingInspection.checkFile(psiFileMock, inspectionManagerMock, isOnTheFly)
538
-
539
- assertSoftly { descriptors?.size shouldBe 1 }
540
- assertSoftly { descriptors?.get(0)?.textRangeInElement shouldBe TextRange (3, 5) }
541
- }
542
514
should("check file where not all characters are decoded back") {
543
515
544
516
text = " qwerty."
You can’t perform that action at this time.
0 commit comments