withData

suspend fun <T> ContainerScope.withData(nameIndFn: (Int, T) -> String, first: T, second: T, vararg rest: T, test: suspend ContainerScope.(T) -> Unit)

Registers tests inside the given test context for each element.

The test name will be generated from the stable properties of the elements. See Identifiers.


suspend fun <T> ContainerScope.withData(nameIndFn: (Int, T) -> String, ts: Iterable<T>, test: suspend ContainerScope.(T) -> Unit)

Registers tests inside the given test context for each element of ts.

The test name will be generated from the stable properties of the elements. See Identifiers.