Mocker.mock

Creates a mock object for a given type.

Calls matching expectations with passThrough enabled will call equivalent methods of T object constructed with args.

Type returned is binarily compatibile with given type All virtual calls made to the object will be mocked Final and template calls will not be mocked

Use this type of mock to substitute interface/class objects

class Mocker
T
mock
(
T
CONSTRUCTOR_ARGS...
)
(
CONSTRUCTOR_ARGS args
)

Meta