doc / ch.tutteli.atrium.logic / IterableLikeAssertions

IterableLikeAssertions

interface IterableLikeAssertions (source)

Collection of assertion functions and builders which are applicable to subjects which can be transformed to an Iterable - intended for types which are Iterable like such as Array or Sequence.

Functions

all

abstract fun <T, E> all(container: AssertionContainer<T>, converter: (T) -> Iterable<E?>, assertionCreatorOrNull: (Expect<E>.() -> Unit)?): Assertion

builderContainsInIterableLike

abstract fun <T, E> builderContainsInIterableLike(container: AssertionContainer<T>, converter: (T) -> Iterable<E>): IterableLikeContains.EntryPointStep<E, T, NoOpSearchBehaviour>

builderContainsNotInIterableLike

abstract fun <T, E> builderContainsNotInIterableLike(container: AssertionContainer<T>, converter: (T) -> Iterable<E>): NotCheckerStep<E, T, NotSearchBehaviour>

containsNoDuplicates

abstract fun <T, E> containsNoDuplicates(container: AssertionContainer<T>, converter: (T) -> Iterable<E>): Assertion

hasNext

abstract fun <T, E> hasNext(container: AssertionContainer<T>, converter: (T) -> Iterable<E>): Assertion

hasNotNext

abstract fun <T, E> hasNotNext(container: AssertionContainer<T>, converter: (T) -> Iterable<E>): Assertion

max

abstract fun <T, E : Comparable<E>> max(container: AssertionContainer<T>, converter: (T) -> Iterable<E>): FeatureExtractorBuilder.ExecutionStep<T, E>

min

abstract fun <T, E : Comparable<E>> min(container: AssertionContainer<T>, converter: (T) -> Iterable<E>): FeatureExtractorBuilder.ExecutionStep<T, E>

Inheritors

DefaultIterableLikeAssertions

class DefaultIterableLikeAssertions : IterableLikeAssertions