├── .gitignore ├── .travis.yml ├── CHANGELOG.md ├── Cargo.toml ├── LICENSE ├── README.md ├── crates_io_readme.md ├── logo.png ├── logo.svg ├── macros ├── Cargo.toml ├── crates_io_readme.md └── src │ ├── display_delegate.rs │ ├── header_builder.rs │ ├── item_injector.rs │ └── lib.rs ├── rust-toolchain ├── src ├── lib.rs ├── mock_store.rs ├── mocking.rs └── mocking_utils.rs └── tests ├── injecting.rs ├── injecting_no_std.rs ├── mocking.rs ├── mocking_fns ├── mod.rs ├── when_fn_generic.rs ├── when_fn_generic_async.rs ├── when_fn_regular.rs └── when_fn_regular_async.rs ├── mocking_methods ├── mod.rs ├── when_struct_generic_method_generic.rs ├── when_struct_generic_method_regular.rs ├── when_struct_regular_method_generic.rs └── when_struct_regular_method_regular.rs ├── mocking_methods_async ├── mod.rs ├── when_struct_complex_method_regular_async.rs ├── when_struct_generic_method_generic_async.rs ├── when_struct_generic_method_regular_async.rs ├── when_struct_regular_method_generic_async.rs └── when_struct_regular_method_regular_async.rs ├── mocking_trait_defaults ├── mod.rs ├── when_trait_generic_struct_generic_method_generic.rs ├── when_trait_generic_struct_generic_method_regular.rs ├── when_trait_generic_struct_regular_method_generic.rs ├── when_trait_generic_struct_regular_method_regular.rs ├── when_trait_regular_struct_generic_method_generic.rs ├── when_trait_regular_struct_generic_method_regular.rs ├── when_trait_regular_struct_regular_method_generic.rs └── when_trait_regular_struct_regular_method_regular.rs ├── mocking_traits ├── mod.rs ├── when_trait_generic_struct_generic_method_generic.rs ├── when_trait_generic_struct_generic_method_regular.rs ├── when_trait_generic_struct_regular_method_generic.rs ├── when_trait_generic_struct_regular_method_regular.rs ├── when_trait_regular_struct_generic_method_generic.rs ├── when_trait_regular_struct_generic_method_regular.rs ├── when_trait_regular_struct_regular_method_generic.rs └── when_trait_regular_struct_regular_method_regular.rs └── module_annotated_declaration └── mod.rs /.gitignore: -------------------------------------------------------------------------------- 1 | target/ 2 | **/*.rs.bk 3 | Cargo.lock 4 | 5 | .idea 6 | *.iml 7 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeSandwich/Mocktopus/HEAD/.travis.yml -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeSandwich/Mocktopus/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeSandwich/Mocktopus/HEAD/Cargo.toml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeSandwich/Mocktopus/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeSandwich/Mocktopus/HEAD/README.md -------------------------------------------------------------------------------- /crates_io_readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeSandwich/Mocktopus/HEAD/crates_io_readme.md -------------------------------------------------------------------------------- /logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeSandwich/Mocktopus/HEAD/logo.png -------------------------------------------------------------------------------- /logo.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeSandwich/Mocktopus/HEAD/logo.svg -------------------------------------------------------------------------------- /macros/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeSandwich/Mocktopus/HEAD/macros/Cargo.toml -------------------------------------------------------------------------------- /macros/crates_io_readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeSandwich/Mocktopus/HEAD/macros/crates_io_readme.md -------------------------------------------------------------------------------- /macros/src/display_delegate.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeSandwich/Mocktopus/HEAD/macros/src/display_delegate.rs -------------------------------------------------------------------------------- /macros/src/header_builder.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeSandwich/Mocktopus/HEAD/macros/src/header_builder.rs -------------------------------------------------------------------------------- /macros/src/item_injector.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeSandwich/Mocktopus/HEAD/macros/src/item_injector.rs -------------------------------------------------------------------------------- /macros/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeSandwich/Mocktopus/HEAD/macros/src/lib.rs -------------------------------------------------------------------------------- /rust-toolchain: -------------------------------------------------------------------------------- 1 | nightly 2 | -------------------------------------------------------------------------------- /src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeSandwich/Mocktopus/HEAD/src/lib.rs -------------------------------------------------------------------------------- /src/mock_store.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeSandwich/Mocktopus/HEAD/src/mock_store.rs -------------------------------------------------------------------------------- /src/mocking.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeSandwich/Mocktopus/HEAD/src/mocking.rs -------------------------------------------------------------------------------- /src/mocking_utils.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeSandwich/Mocktopus/HEAD/src/mocking_utils.rs -------------------------------------------------------------------------------- /tests/injecting.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeSandwich/Mocktopus/HEAD/tests/injecting.rs -------------------------------------------------------------------------------- /tests/injecting_no_std.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeSandwich/Mocktopus/HEAD/tests/injecting_no_std.rs -------------------------------------------------------------------------------- /tests/mocking.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeSandwich/Mocktopus/HEAD/tests/mocking.rs -------------------------------------------------------------------------------- /tests/mocking_fns/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeSandwich/Mocktopus/HEAD/tests/mocking_fns/mod.rs -------------------------------------------------------------------------------- /tests/mocking_fns/when_fn_generic.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeSandwich/Mocktopus/HEAD/tests/mocking_fns/when_fn_generic.rs -------------------------------------------------------------------------------- /tests/mocking_fns/when_fn_generic_async.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeSandwich/Mocktopus/HEAD/tests/mocking_fns/when_fn_generic_async.rs -------------------------------------------------------------------------------- /tests/mocking_fns/when_fn_regular.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeSandwich/Mocktopus/HEAD/tests/mocking_fns/when_fn_regular.rs -------------------------------------------------------------------------------- /tests/mocking_fns/when_fn_regular_async.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeSandwich/Mocktopus/HEAD/tests/mocking_fns/when_fn_regular_async.rs -------------------------------------------------------------------------------- /tests/mocking_methods/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeSandwich/Mocktopus/HEAD/tests/mocking_methods/mod.rs -------------------------------------------------------------------------------- /tests/mocking_methods/when_struct_generic_method_generic.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeSandwich/Mocktopus/HEAD/tests/mocking_methods/when_struct_generic_method_generic.rs -------------------------------------------------------------------------------- /tests/mocking_methods/when_struct_generic_method_regular.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeSandwich/Mocktopus/HEAD/tests/mocking_methods/when_struct_generic_method_regular.rs -------------------------------------------------------------------------------- /tests/mocking_methods/when_struct_regular_method_generic.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeSandwich/Mocktopus/HEAD/tests/mocking_methods/when_struct_regular_method_generic.rs -------------------------------------------------------------------------------- /tests/mocking_methods/when_struct_regular_method_regular.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeSandwich/Mocktopus/HEAD/tests/mocking_methods/when_struct_regular_method_regular.rs -------------------------------------------------------------------------------- /tests/mocking_methods_async/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeSandwich/Mocktopus/HEAD/tests/mocking_methods_async/mod.rs -------------------------------------------------------------------------------- /tests/mocking_methods_async/when_struct_complex_method_regular_async.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeSandwich/Mocktopus/HEAD/tests/mocking_methods_async/when_struct_complex_method_regular_async.rs -------------------------------------------------------------------------------- /tests/mocking_methods_async/when_struct_generic_method_generic_async.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeSandwich/Mocktopus/HEAD/tests/mocking_methods_async/when_struct_generic_method_generic_async.rs -------------------------------------------------------------------------------- /tests/mocking_methods_async/when_struct_generic_method_regular_async.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeSandwich/Mocktopus/HEAD/tests/mocking_methods_async/when_struct_generic_method_regular_async.rs -------------------------------------------------------------------------------- /tests/mocking_methods_async/when_struct_regular_method_generic_async.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeSandwich/Mocktopus/HEAD/tests/mocking_methods_async/when_struct_regular_method_generic_async.rs -------------------------------------------------------------------------------- /tests/mocking_methods_async/when_struct_regular_method_regular_async.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeSandwich/Mocktopus/HEAD/tests/mocking_methods_async/when_struct_regular_method_regular_async.rs -------------------------------------------------------------------------------- /tests/mocking_trait_defaults/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeSandwich/Mocktopus/HEAD/tests/mocking_trait_defaults/mod.rs -------------------------------------------------------------------------------- /tests/mocking_trait_defaults/when_trait_generic_struct_generic_method_generic.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeSandwich/Mocktopus/HEAD/tests/mocking_trait_defaults/when_trait_generic_struct_generic_method_generic.rs -------------------------------------------------------------------------------- /tests/mocking_trait_defaults/when_trait_generic_struct_generic_method_regular.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeSandwich/Mocktopus/HEAD/tests/mocking_trait_defaults/when_trait_generic_struct_generic_method_regular.rs -------------------------------------------------------------------------------- /tests/mocking_trait_defaults/when_trait_generic_struct_regular_method_generic.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeSandwich/Mocktopus/HEAD/tests/mocking_trait_defaults/when_trait_generic_struct_regular_method_generic.rs -------------------------------------------------------------------------------- /tests/mocking_trait_defaults/when_trait_generic_struct_regular_method_regular.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeSandwich/Mocktopus/HEAD/tests/mocking_trait_defaults/when_trait_generic_struct_regular_method_regular.rs -------------------------------------------------------------------------------- /tests/mocking_trait_defaults/when_trait_regular_struct_generic_method_generic.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeSandwich/Mocktopus/HEAD/tests/mocking_trait_defaults/when_trait_regular_struct_generic_method_generic.rs -------------------------------------------------------------------------------- /tests/mocking_trait_defaults/when_trait_regular_struct_generic_method_regular.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeSandwich/Mocktopus/HEAD/tests/mocking_trait_defaults/when_trait_regular_struct_generic_method_regular.rs -------------------------------------------------------------------------------- /tests/mocking_trait_defaults/when_trait_regular_struct_regular_method_generic.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeSandwich/Mocktopus/HEAD/tests/mocking_trait_defaults/when_trait_regular_struct_regular_method_generic.rs -------------------------------------------------------------------------------- /tests/mocking_trait_defaults/when_trait_regular_struct_regular_method_regular.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeSandwich/Mocktopus/HEAD/tests/mocking_trait_defaults/when_trait_regular_struct_regular_method_regular.rs -------------------------------------------------------------------------------- /tests/mocking_traits/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeSandwich/Mocktopus/HEAD/tests/mocking_traits/mod.rs -------------------------------------------------------------------------------- /tests/mocking_traits/when_trait_generic_struct_generic_method_generic.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeSandwich/Mocktopus/HEAD/tests/mocking_traits/when_trait_generic_struct_generic_method_generic.rs -------------------------------------------------------------------------------- /tests/mocking_traits/when_trait_generic_struct_generic_method_regular.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeSandwich/Mocktopus/HEAD/tests/mocking_traits/when_trait_generic_struct_generic_method_regular.rs -------------------------------------------------------------------------------- /tests/mocking_traits/when_trait_generic_struct_regular_method_generic.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeSandwich/Mocktopus/HEAD/tests/mocking_traits/when_trait_generic_struct_regular_method_generic.rs -------------------------------------------------------------------------------- /tests/mocking_traits/when_trait_generic_struct_regular_method_regular.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeSandwich/Mocktopus/HEAD/tests/mocking_traits/when_trait_generic_struct_regular_method_regular.rs -------------------------------------------------------------------------------- /tests/mocking_traits/when_trait_regular_struct_generic_method_generic.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeSandwich/Mocktopus/HEAD/tests/mocking_traits/when_trait_regular_struct_generic_method_generic.rs -------------------------------------------------------------------------------- /tests/mocking_traits/when_trait_regular_struct_generic_method_regular.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeSandwich/Mocktopus/HEAD/tests/mocking_traits/when_trait_regular_struct_generic_method_regular.rs -------------------------------------------------------------------------------- /tests/mocking_traits/when_trait_regular_struct_regular_method_generic.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeSandwich/Mocktopus/HEAD/tests/mocking_traits/when_trait_regular_struct_regular_method_generic.rs -------------------------------------------------------------------------------- /tests/mocking_traits/when_trait_regular_struct_regular_method_regular.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeSandwich/Mocktopus/HEAD/tests/mocking_traits/when_trait_regular_struct_regular_method_regular.rs -------------------------------------------------------------------------------- /tests/module_annotated_declaration/mod.rs: -------------------------------------------------------------------------------- 1 | pub fn function() -> &'static str { 2 | "not mocked" 3 | } 4 | --------------------------------------------------------------------------------