Expand description
Function mocking utilities
Provides runtime support for mocking global functions.
Note: Full function mocking requires unsafe code for runtime function replacement. This module provides a safe framework using function pointers.
Structs§
- Mock
Registry - Mock registry for tracking mocked functions
Functions§
- clear_
all_ mocks - Clear all mocks
- clear_
mock - Clear a specific mock
- get_
mock - Get a mocked function
- is_
mocked - Check if a function is mocked
- mock_
function - Mock a function with a closure
- with_
mock - Run a function with a temporary mock