Function mock_builder::register

source ·
pub fn register<Locator, F, I, O, Insert>(
    locator: Locator,
    f: F,
    insert: Insert
)
where Locator: Fn(), F: Fn(I) -> O + 'static, Insert: Fn(String, CallId),
Expand description

Register a mock function into the mock function storage. This function should be called with a locator used as a function identification.