successCallMatcher

fun <T> successCallMatcher(description: String? = null, call: (T?) -> Unit): Matcher<T?>(source)

Creates a matcher that tests whether the specified function call can execute successfully without throwing an exception when invoked with a given input value.

Return

A Matcher that evaluates if the call function can successfully execute when invoked with an input value of type T?.

Parameters

T

The type of the input value being tested.

description

description of the call matcher

call

A function that performs an operation using the input value of type T?. The matcher tests whether this function can execute successfully without errors.