Skip to content

Commit

Permalink
Added test case to improve code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
severn-everett committed Dec 12, 2021
1 parent 6b8a374 commit b9d6716
Showing 1 changed file with 10 additions and 0 deletions.
Expand Up @@ -52,6 +52,16 @@ class UnnecessaryAbstractClassSpec : Spek({
assertThat(subject.compileAndLintWithContext(env, code)).hasSize(2)
}

it("does not report a completely-empty abstract class that inherits from an interface") {
val code = """
interface A {
val i: Int
}
abstract class B : A
""".trimIndent()
assertThat(subject.compileAndLintWithContext(env, code)).isEmpty()
}

it("does not report an abstract class with concrete members derived from a base class") {
val code = """
abstract class A {
Expand Down

0 comments on commit b9d6716

Please sign in to comment.