Module examples

Source
Expand description

Examples of Mockall’s generated code

Modules§

__mock_MockBoo
__mock_MockBoo_Bah
__mock_MockFoo
__mock_MockFoo_Foo
ffi
A module full of foreign C functions.
mock_ffi
Mock version of the ffi module
mock_my_module
Mock version of the my_module module
my_module
Mock this entire module

Structs§

MockBoo
Mock of a struct
MockFoo
Mock of a basic trait with several kinds of method.

Traits§

Bah
A trait implemented by a Struct we want to mock
Foo
Mock of a basic trait with several kinds of method.