kotest-assertions-core / io.kotest.matchers.maps

Package io.kotest.matchers.maps

Types

MapContainsMatcher

class MapContainsMatcher<K, V> : Matcher<Map<K, V>>

Extensions for External Classes

kotlin.collections.Map

Functions

beEmpty

fun beEmpty(): Matcher<Map<*, *>>

contain

fun <K, V> contain(key: K, v: V): Matcher<Map<K, V>>

containAll

fun <K, V> containAll(expected: Map<K, V>): Matcher<Map<K, V>>

containExactly

fun <K, V> containExactly(expected: Map<K, V>): Matcher<Map<K, V>>

haveKey

fun <K> haveKey(key: K): Matcher<Map<K, Any?>>

haveKeys

fun <K> haveKeys(vararg keys: K): Matcher<Map<K, Any?>>

haveSize

fun <K, V> haveSize(size: Int): Matcher<Map<K, V>>

haveValue

fun <V> haveValue(v: V): Matcher<Map<*, V>>

haveValues

fun <V> haveValues(vararg values: V): Matcher<Map<*, V>>

mapcontain

fun <K, V> mapcontain(key: K, v: V): Matcher<Map<K, V>>