kotest-property / io.kotest.property.internal / shrinkfn

shrinkfn

fun <A> shrinkfn(a: Sample<A>, property: suspend PropertyContext.(A) -> Unit, shrinkingMode: ShrinkingMode): ShrinkFn
fun <A, B> shrinkfn(a: Sample<A>, b: Sample<B>, property: suspend PropertyContext.(A, B) -> Unit, shrinkingMode: ShrinkingMode): ShrinkFn
fun <A, B, C> shrinkfn(a: Sample<A>, b: Sample<B>, c: Sample<C>, property: suspend PropertyContext.(A, B, C) -> Unit, shrinkingMode: ShrinkingMode): ShrinkFn

Returns a shrink function, which, when invoked, will shrink the inputs and attempt to reutrn the smallest failing case.