Adjust testData to isEmpty/key/value transformations
This commit is contained in:
@@ -5,7 +5,7 @@ interface A0 {
|
||||
}
|
||||
|
||||
class B0 : Collection<String>, A0 {
|
||||
override fun isEmpty() = throw UnsupportedOperationException()
|
||||
override val isEmpty: Boolean get() = throw UnsupportedOperationException()
|
||||
override fun contains(o: String) = throw UnsupportedOperationException()
|
||||
override fun iterator() = throw UnsupportedOperationException()
|
||||
override fun containsAll(c: Collection<String>) = throw UnsupportedOperationException()
|
||||
@@ -16,7 +16,7 @@ open class A1 {
|
||||
}
|
||||
|
||||
class B1 : Collection<String>, A1() {
|
||||
override fun isEmpty() = throw UnsupportedOperationException()
|
||||
override val isEmpty: Boolean get() = throw UnsupportedOperationException()
|
||||
override fun contains(o: String) = throw UnsupportedOperationException()
|
||||
override fun iterator() = throw UnsupportedOperationException()
|
||||
override fun containsAll(c: Collection<String>) = throw UnsupportedOperationException()
|
||||
@@ -41,7 +41,7 @@ interface I4<T> {
|
||||
}
|
||||
|
||||
class B4 : Collection<String>, I4<Int> {
|
||||
override fun isEmpty() = throw UnsupportedOperationException()
|
||||
override val isEmpty: Boolean get() = throw UnsupportedOperationException()
|
||||
override fun contains(o: String) = throw UnsupportedOperationException()
|
||||
override fun iterator() = throw UnsupportedOperationException()
|
||||
override fun containsAll(c: Collection<String>) = throw UnsupportedOperationException()
|
||||
@@ -52,7 +52,7 @@ interface I5 : Collection<String> {
|
||||
}
|
||||
|
||||
class B5 : I5 {
|
||||
override fun isEmpty() = throw UnsupportedOperationException()
|
||||
override val isEmpty: Boolean get() = throw UnsupportedOperationException()
|
||||
override fun contains(o: String) = throw UnsupportedOperationException()
|
||||
override fun iterator() = throw UnsupportedOperationException()
|
||||
override fun containsAll(c: Collection<String>) = throw UnsupportedOperationException()
|
||||
|
||||
@@ -2,7 +2,7 @@ class A1 : MutableCollection<String> {
|
||||
override val size: Int
|
||||
get() = 56
|
||||
|
||||
override fun isEmpty(): Boolean {
|
||||
override val isEmpty: Boolean get() {
|
||||
throw UnsupportedOperationException()
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
class A : Map<String, String> {
|
||||
override val size: Int get() = 56
|
||||
|
||||
override fun isEmpty(): Boolean {
|
||||
override val isEmpty: Boolean get() {
|
||||
throw UnsupportedOperationException()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user