mockall::examples::mock_ffi

Function ffi_func_context

Source
pub fn ffi_func_context() -> Context
šŸ‘ŽDeprecated since 0.9.0: Using automock directly on an extern block is deprecated. Instead, wrap the extern block in a module, and automock that, like #[automoock] mod ffi { extern ā€œCā€ { fn foo ā€¦ } }
Expand description

Create a Context for mocking the ffi_func method