Adjust testData to isEmpty/key/value transformations
This commit is contained in:
@@ -18,13 +18,13 @@ class M : Map<String, String> by HashMap<String, String>()
|
||||
class MM : MutableMap<String, String> by HashMap<String, String>()
|
||||
|
||||
class ME : Map.Entry<String, String> {
|
||||
override fun getKey(): String = throw UnsupportedOperationException()
|
||||
override fun getValue(): String = throw UnsupportedOperationException()
|
||||
override val key: String get() = throw UnsupportedOperationException()
|
||||
override val value: String get() = throw UnsupportedOperationException()
|
||||
}
|
||||
|
||||
class MME : MutableMap.MutableEntry<String, String> {
|
||||
override fun getKey(): String = throw UnsupportedOperationException()
|
||||
override fun getValue(): String = throw UnsupportedOperationException()
|
||||
override val key: String get() = throw UnsupportedOperationException()
|
||||
override val value: String get() = throw UnsupportedOperationException()
|
||||
override fun setValue(value: String): String = throw UnsupportedOperationException()
|
||||
}
|
||||
|
||||
|
||||
@@ -18,13 +18,13 @@ class M : Map<String, String> by HashMap<String, String>()
|
||||
class MM : MutableMap<String, String> by HashMap<String, String>()
|
||||
|
||||
class ME : Map.Entry<String, String> {
|
||||
override fun getKey(): String = throw UnsupportedOperationException()
|
||||
override fun getValue(): String = throw UnsupportedOperationException()
|
||||
override val key: String get() = throw UnsupportedOperationException()
|
||||
override val value: String get() = throw UnsupportedOperationException()
|
||||
}
|
||||
|
||||
class MME : MutableMap.MutableEntry<String, String> {
|
||||
override fun getKey(): String = throw UnsupportedOperationException()
|
||||
override fun getValue(): String = throw UnsupportedOperationException()
|
||||
override val key: String get() = throw UnsupportedOperationException()
|
||||
override val value: String get() = throw UnsupportedOperationException()
|
||||
override fun setValue(value: String): String = throw UnsupportedOperationException()
|
||||
}
|
||||
|
||||
|
||||
@@ -18,13 +18,13 @@ class M : Map<String, String> by HashMap<String, String>()
|
||||
class MM : MutableMap<String, String> by HashMap<String, String>()
|
||||
|
||||
class ME : Map.Entry<String, String> {
|
||||
override fun getKey(): String = throw UnsupportedOperationException()
|
||||
override fun getValue(): String = throw UnsupportedOperationException()
|
||||
override val key: String get() = throw UnsupportedOperationException()
|
||||
override val value: String get() = throw UnsupportedOperationException()
|
||||
}
|
||||
|
||||
class MME : MutableMap.MutableEntry<String, String> {
|
||||
override fun getKey(): String = throw UnsupportedOperationException()
|
||||
override fun getValue(): String = throw UnsupportedOperationException()
|
||||
override val key: String get() = throw UnsupportedOperationException()
|
||||
override val value: String get() = throw UnsupportedOperationException()
|
||||
override fun setValue(value: String): String = throw UnsupportedOperationException()
|
||||
}
|
||||
|
||||
|
||||
@@ -18,13 +18,13 @@ class M : Map<String, String> by HashMap<String, String>()
|
||||
class MM : MutableMap<String, String> by HashMap<String, String>()
|
||||
|
||||
class ME : Map.Entry<String, String> {
|
||||
override fun getKey(): String = throw UnsupportedOperationException()
|
||||
override fun getValue(): String = throw UnsupportedOperationException()
|
||||
override val key: String get() = throw UnsupportedOperationException()
|
||||
override val value: String get() = throw UnsupportedOperationException()
|
||||
}
|
||||
|
||||
class MME : MutableMap.MutableEntry<String, String> {
|
||||
override fun getKey(): String = throw UnsupportedOperationException()
|
||||
override fun getValue(): String = throw UnsupportedOperationException()
|
||||
override val key: String get() = throw UnsupportedOperationException()
|
||||
override val value: String get() = throw UnsupportedOperationException()
|
||||
override fun setValue(value: String): String = throw UnsupportedOperationException()
|
||||
}
|
||||
|
||||
|
||||
@@ -18,13 +18,13 @@ class M : Map<String, String> by HashMap<String, String>()
|
||||
class MM : MutableMap<String, String> by HashMap<String, String>()
|
||||
|
||||
class ME : Map.Entry<String, String> {
|
||||
override fun getKey(): String = throw UnsupportedOperationException()
|
||||
override fun getValue(): String = throw UnsupportedOperationException()
|
||||
override val key: String get() = throw UnsupportedOperationException()
|
||||
override val value: String get() = throw UnsupportedOperationException()
|
||||
}
|
||||
|
||||
class MME : MutableMap.MutableEntry<String, String> {
|
||||
override fun getKey(): String = throw UnsupportedOperationException()
|
||||
override fun getValue(): String = throw UnsupportedOperationException()
|
||||
override val key: String get() = throw UnsupportedOperationException()
|
||||
override val value: String get() = throw UnsupportedOperationException()
|
||||
override fun setValue(value: String): String = throw UnsupportedOperationException()
|
||||
}
|
||||
|
||||
|
||||
@@ -18,13 +18,13 @@ class M : Map<String, String> by HashMap<String, String>()
|
||||
class MM : MutableMap<String, String> by HashMap<String, String>()
|
||||
|
||||
class ME : Map.Entry<String, String> {
|
||||
override fun getKey(): String = throw UnsupportedOperationException()
|
||||
override fun getValue(): String = throw UnsupportedOperationException()
|
||||
override val key: String get() = throw UnsupportedOperationException()
|
||||
override val value: String get() = throw UnsupportedOperationException()
|
||||
}
|
||||
|
||||
class MME : MutableMap.MutableEntry<String, String> {
|
||||
override fun getKey(): String = throw UnsupportedOperationException()
|
||||
override fun getValue(): String = throw UnsupportedOperationException()
|
||||
override val key: String get() = throw UnsupportedOperationException()
|
||||
override val value: String get() = throw UnsupportedOperationException()
|
||||
override fun setValue(value: String): String = throw UnsupportedOperationException()
|
||||
}
|
||||
|
||||
|
||||
@@ -3,8 +3,8 @@ fun unsupported(): Nothing = throw UnsupportedOperationException()
|
||||
class Weird : Iterator<String>, MutableIterable<String>, MutableMap.MutableEntry<String, String> {
|
||||
override fun next(): String = unsupported()
|
||||
override fun hasNext(): Boolean = unsupported()
|
||||
override fun getKey(): String = unsupported()
|
||||
override fun getValue(): String = unsupported()
|
||||
override val key: String get() = unsupported()
|
||||
override val value: String get() = unsupported()
|
||||
override fun setValue(value: String): String = unsupported()
|
||||
override fun iterator(): MutableIterator<String> = unsupported()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user