Call.passThrough

Instead of returning or throwing a given value, pass the call through to the mocked type object.

This is useful for example for enabling use of mock object in hashmaps by enabling toHash and opEquals of your class.

mixintemplate Call(alias F)
ref
typeof(this)
passThrough
()

Return Value

Type: typeof(this)

$(D_KEYWORD this).

Meta