kotest-assertions-core / io.kotest.matchers.maps / kotlin.collections.Map

Extensions for kotlin.collections.Map

shouldBeEmpty

fun <K, V> Map<K, V>.shouldBeEmpty(): Unit

shouldContain

fun <K, V> Map<K, V>.shouldContain(key: K, value: V): Unit
infix fun <K, V> Map<K, V>.shouldContain(entry: Pair<K, V>): Unit

shouldContainAll

infix fun <K, V> Map<K, V>.shouldContainAll(expected: Map<K, V>): Unit

shouldContainExactly

infix fun <K, V> Map<K, V>.shouldContainExactly(expected: Map<K, V>): Unit

shouldContainKey

infix fun <K, V : Any> Map<K, V>.shouldContainKey(key: K): Unit

shouldContainKeys

fun <K, V> Map<K, V>.shouldContainKeys(vararg keys: K): Unit

shouldContainValue

infix fun <K, V> Map<K, V>.shouldContainValue(value: V): Unit

shouldContainValues

fun <K, V> Map<K, V>.shouldContainValues(vararg values: V): Unit

shouldHaveKey

infix fun <K, V : Any> Map<K, V>.shouldHaveKey(key: K): Unit

shouldHaveKeys

fun <K, V> Map<K, V>.shouldHaveKeys(vararg keys: K): Unit

shouldHaveSize

infix fun <K, V> Map<K, V>.shouldHaveSize(size: Int): Unit

shouldHaveValues

fun <K, V> Map<K, V>.shouldHaveValues(vararg values: V): Unit

shouldNotBeEmpty

fun <K, V> Map<K, V>.shouldNotBeEmpty(): Unit

shouldNotContain

fun <K, V> Map<K, V>.shouldNotContain(key: K, value: V): Unit
infix fun <K, V> Map<K, V>.shouldNotContain(entry: Pair<K, V>): Unit

shouldNotContainAll

infix fun <K, V> Map<K, V>.shouldNotContainAll(expected: Map<K, V>): Unit

shouldNotContainExactly

infix fun <K, V> Map<K, V>.shouldNotContainExactly(expected: Map<K, V>): Unit

shouldNotContainKey

infix fun <K, V : Any> Map<K, V>.shouldNotContainKey(key: K): Unit

shouldNotContainKeys

fun <K, V> Map<K, V>.shouldNotContainKeys(vararg keys: K): Unit

shouldNotContainValue

infix fun <K, V> Map<K, V>.shouldNotContainValue(value: V): Unit

shouldNotContainValues

fun <K, V> Map<K, V>.shouldNotContainValues(vararg values: V): Unit

shouldNotHaveKey

infix fun <K, V : Any> Map<K, V>.shouldNotHaveKey(key: K): Unit

shouldNotHaveKeys

fun <K, V> Map<K, V>.shouldNotHaveKeys(vararg keys: K): Unit

shouldNotHaveValues

fun <K, V> Map<K, V>.shouldNotHaveValues(vararg values: V): Unit