Module mockall::examples::mock_ffi

source Ā·
šŸ‘Ž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 #[automock] mod ffi { extern ā€œCā€ { fn foo … } }

Modules§

Functions§

  • checkpointDeprecated
    Verify that all current expectations for every function in this module are satisfied and clear them.
  • ffi_func⚠Deprecated
    A foreign ā€œCā€ function.
  • Create a Context for mocking the ffi_func method