MockMethodOptions

sealed external interface MockMethodOptions : MockFunctionOptions(source)

Properties

Link copied to clipboard
abstract var getter: Boolean?

If true, object[methodName] is treated as a getter. This option cannot be used with the setter option.

Link copied to clipboard
abstract var setter: Boolean?

If true, object[methodName] is treated as a setter. This option cannot be used with the getter option.

Link copied to clipboard
abstract var times: Double?

The number of times that the mock will use the behavior of implementation. Once the mock function has been called times times, it will automatically restore the behavior of original. This value must be an integer greater than zero.