autofill

Provides default empty value (e.g. 0 for numbers, "" for string, null for complex types).

For generic types, defaults match the specified type argument (e.g., mock<List<String>>(autofill).get(0) returns "" instead of null). Mokkery achieves this by preserving type arguments at runtime.

This mock mode can be enhanced by registering custom providers to AutofillProvider.forMockMode.

Properties

Link copied to clipboard
Link copied to clipboard