assertk / assertk / returnedValue

returnedValue

(common, jvm) fun <T> Assert<Result<T>>.returnedValue(f: Assert<T>.() -> Unit): Unit
Deprecated: Use isSuccess().all(f) instead

Runs the given lambda if the block returns a value, otherwise fails.