mutableCollectionFixture

inline fun <T> PublicApi.Fixture.mutableCollectionFixture(qualifier: PublicApi.Qualifier? = null, size: Int? = null): MutableCollection<T>

Creates a MutableCollection of values for a given type.

Parameters

T

the type which is supposed to be created.

qualifier

a optional qualifier for a special flavour of a type.

size

the size of the Collection.

Throws

kotlin.IllegalStateException

if the no matching Generator was found for the given type.