MockMode

Determines behaviour for a mock when user-configured answer is missing.

Entries

Link copied to clipboard

Fails on missing answer.

Link copied to clipboard

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

Link copied to clipboard

Returns Unit for functions that return Unit, otherwise fails.

Link copied to clipboard

Calls original implementation if present, otherwise fails.

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun valueOf(value: String): MockMode

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.