doc / ch.tutteli.atrium.logic.creating.transformers.impl / DefaultFeatureExtractor

DefaultFeatureExtractor

class DefaultFeatureExtractor : FeatureExtractor

Constructors

<init>

DefaultFeatureExtractor()

Functions

extract

fun <T, R> extract(container: AssertionContainer<T>, description: Translatable, representationForFailure: Any, featureExtraction: (T) -> Option<R>, maybeSubAssertions: Option<Expect<R>.() -> Unit>, featureExpectOptions: FeatureExpectOptions<R>): FeatureExpect<T, R>

Extracts a feature according to the given featureExtraction, creates an Expect for the new subject and applies maybeSubAssertions in case they are specified.