interception-mock 0.0.2

dll providing the same interface as the interception library for mocking it in tests
Documentation
use std::ffi::{c_ushort, c_void};

// InterceptionContext INTERCEPTION_API interception_create_context(void);
#[no_mangle]
pub extern "C" fn interception_create_context() -> *mut c_void {
    unimplemented!("interception_create_context")
}

// void INTERCEPTION_API interception_destroy_context(InterceptionContext context);
#[no_mangle]
pub extern "C" fn interception_destroy_context(_ctx_ptr: *mut c_void) {
    unimplemented!("interception_destroy_context")
}

// void INTERCEPTION_API interception_set_filter(InterceptionContext context, InterceptionPredicate predicate, InterceptionFilter filter);
#[no_mangle]
pub extern "C" fn interception_set_filter(
    _ctx_ptr: *mut c_void,
    _predicate_ptr: *const extern "C" fn(i32) -> i32,
    _filter: c_ushort,
) {
    unimplemented!("interception_set_filter")
}

#[cfg(test)]
mod tests {
    use super::*;

    #[test]
    #[should_panic(expected = "not implemented: interception_create_context")]
    fn e2e() {
        let _ = interception_create_context();
    }
}