doc / ch.tutteli.atrium.logic / MapLikeAssertions

MapLikeAssertions

interface MapLikeAssertions (source)

Collection of assertion functions and builders which are applicable to subjects which can be transformed to a Map - intended for types which are Map like such as IterableLike with an element type Pair.

Functions

builderContainsInMapLike

abstract fun <T, K, V> builderContainsInMapLike(container: AssertionContainer<T>, converter: (T) -> Map<out K, V>): MapLikeContains.EntryPointStep<K, V, T, NoOpSearchBehaviour>

containsKey

abstract fun <K, T> containsKey(container: AssertionContainer<T>, converter: (T) -> Map<out K, *>, key: K): Assertion

containsNotKey

abstract fun <K, T> containsNotKey(container: AssertionContainer<T>, converter: (T) -> Map<out K, *>, key: K): Assertion

getExisting

abstract fun <K, V, T> getExisting(container: AssertionContainer<T>, converter: (T) -> Map<out K, V>, key: K): FeatureExtractorBuilder.ExecutionStep<T, V>

Inheritors

DefaultMapLikeAssertions

class DefaultMapLikeAssertions : MapLikeAssertions