injectorpp 0.5.1

Injectorpp is a powerful tool designed to facilitate the writing of unit tests without the need to introduce traits solely for testing purposes. It streamlines the testing process by providing a seamless and efficient way to abstract dependencies, ensuring that your code remains clean and maintainable.
Documentation
1
2
3
4
5
6
7
8
9
10
11
use crate::injector_core::common::*;

#[allow(dead_code)]
pub(crate) trait PatchTrait {
    fn replace_function_with_other_function(
        src: FuncPtrInternal,
        target: FuncPtrInternal,
    ) -> PatchGuard;

    fn replace_function_return_boolean(src: FuncPtrInternal, value: bool) -> PatchGuard;
}