Skip to content

Commit

Permalink
.indented() usage for the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kozaxinan committed Aug 3, 2023
1 parent 5e0df5a commit 6061e71
Show file tree
Hide file tree
Showing 4 changed files with 380 additions and 381 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,16 @@ internal class ImmutableDataClassDetectorTest : LintDetectorTest() {
.files(
kotlin(
"""
package foo
data class Dto(
val totalResults: Int,
var totalNewResults: Int,
var name: String,
val bool: Boolean
)
""".trimIndent()
)
package foo
data class Dto(
val totalResults: Int,
var totalNewResults: Int,
var name: String,
val bool: Boolean
)
"""
).indented()
)
.issues(ISSUE_IMMUTABLE_DATA_CLASS_RULE)
.run()
Expand All @@ -68,7 +68,7 @@ internal class ImmutableDataClassDetectorTest : LintDetectorTest() {
data class Dto(
~~~
0 errors, 1 warnings
""".trimIndent()
"""
)
}

Expand All @@ -84,8 +84,8 @@ internal class ImmutableDataClassDetectorTest : LintDetectorTest() {
val totalResults: Int,
val list: MutableList<String>
)
""".trimIndent()
)
"""
).indented()
)
.issues(ISSUE_IMMUTABLE_DATA_CLASS_RULE)
.run()
Expand All @@ -95,7 +95,7 @@ internal class ImmutableDataClassDetectorTest : LintDetectorTest() {
data class Dto(
~~~
0 errors, 1 warnings
""".trimIndent()
"""
)
}

Expand All @@ -111,7 +111,7 @@ internal class ImmutableDataClassDetectorTest : LintDetectorTest() {
val totalResults: Int,
val list: List<String>
)
""".trimIndent()
"""
)
)
.issues(ISSUE_IMMUTABLE_DATA_CLASS_RULE)
Expand All @@ -131,8 +131,8 @@ internal class ImmutableDataClassDetectorTest : LintDetectorTest() {
val totalResults: Int,
val map: MutableMap<String, String>
)
""".trimIndent()
)
"""
).indented()
)
.issues(ISSUE_IMMUTABLE_DATA_CLASS_RULE)
.run()
Expand All @@ -142,7 +142,7 @@ internal class ImmutableDataClassDetectorTest : LintDetectorTest() {
data class Dto(
~~~
0 errors, 1 warnings
""".trimIndent()
"""
)
}

Expand All @@ -158,7 +158,7 @@ internal class ImmutableDataClassDetectorTest : LintDetectorTest() {
val totalResults: Int,
val map: Map<String, String>
)
""".trimIndent()
"""
)
)
.issues(ISSUE_IMMUTABLE_DATA_CLASS_RULE)
Expand All @@ -177,7 +177,7 @@ internal class ImmutableDataClassDetectorTest : LintDetectorTest() {
class Dto(
var totalResults: Int
)
""".trimIndent()
"""
)
)
.issues(ISSUE_IMMUTABLE_DATA_CLASS_RULE)
Expand All @@ -196,7 +196,7 @@ internal class ImmutableDataClassDetectorTest : LintDetectorTest() {
class Dto {
public int totalResults;
}
""".trimIndent()
"""
)
)
.issues(ISSUE_IMMUTABLE_DATA_CLASS_RULE)
Expand All @@ -222,8 +222,8 @@ internal class ImmutableDataClassDetectorTest : LintDetectorTest() {
return false
}
}
""".trimIndent()
)
"""
).indented()
)
.issues(ISSUE_IMMUTABLE_DATA_CLASS_RULE)
.run()
Expand All @@ -233,7 +233,7 @@ internal class ImmutableDataClassDetectorTest : LintDetectorTest() {
class Dto(var totalResults: Int) {
~~~
0 errors, 1 warnings
""".trimIndent()
"""
)
}

Expand Down

0 comments on commit 6061e71

Please sign in to comment.