├── .github └── workflows │ ├── publish.yml │ └── test.yml ├── .gitignore ├── Cargo.toml ├── LICENSE ├── README.md ├── assets └── mock-it.svg ├── ci └── publish.sh ├── coverage.sh ├── examples ├── README.md ├── factory.rs ├── pokemon.rs └── tokio.rs ├── mock-it_codegen ├── Cargo.toml ├── README.md └── src │ ├── generics │ ├── gen.rs │ ├── gen_trait.rs │ └── mod.rs │ ├── lib.rs │ ├── mock_fn.rs │ └── trait_method.rs ├── src ├── lib.rs ├── matcher.rs ├── mock.rs ├── rule.rs ├── validator.rs └── when.rs └── tests ├── codegen_async_trait.rs ├── codegen_default.rs ├── codegen_generic_trait.rs ├── codegen_no_return.rs ├── codegen_panic_message.rs ├── codegen_reference_not_sized.rs └── codegen_reference_sized.rs /.github/workflows/publish.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathanielsimard/mock-it/HEAD/.github/workflows/publish.yml -------------------------------------------------------------------------------- /.github/workflows/test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathanielsimard/mock-it/HEAD/.github/workflows/test.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathanielsimard/mock-it/HEAD/.gitignore -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathanielsimard/mock-it/HEAD/Cargo.toml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathanielsimard/mock-it/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathanielsimard/mock-it/HEAD/README.md -------------------------------------------------------------------------------- /assets/mock-it.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathanielsimard/mock-it/HEAD/assets/mock-it.svg -------------------------------------------------------------------------------- /ci/publish.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathanielsimard/mock-it/HEAD/ci/publish.sh -------------------------------------------------------------------------------- /coverage.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathanielsimard/mock-it/HEAD/coverage.sh -------------------------------------------------------------------------------- /examples/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathanielsimard/mock-it/HEAD/examples/README.md -------------------------------------------------------------------------------- /examples/factory.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathanielsimard/mock-it/HEAD/examples/factory.rs -------------------------------------------------------------------------------- /examples/pokemon.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathanielsimard/mock-it/HEAD/examples/pokemon.rs -------------------------------------------------------------------------------- /examples/tokio.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathanielsimard/mock-it/HEAD/examples/tokio.rs -------------------------------------------------------------------------------- /mock-it_codegen/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathanielsimard/mock-it/HEAD/mock-it_codegen/Cargo.toml -------------------------------------------------------------------------------- /mock-it_codegen/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathanielsimard/mock-it/HEAD/mock-it_codegen/README.md -------------------------------------------------------------------------------- /mock-it_codegen/src/generics/gen.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathanielsimard/mock-it/HEAD/mock-it_codegen/src/generics/gen.rs -------------------------------------------------------------------------------- /mock-it_codegen/src/generics/gen_trait.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathanielsimard/mock-it/HEAD/mock-it_codegen/src/generics/gen_trait.rs -------------------------------------------------------------------------------- /mock-it_codegen/src/generics/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathanielsimard/mock-it/HEAD/mock-it_codegen/src/generics/mod.rs -------------------------------------------------------------------------------- /mock-it_codegen/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathanielsimard/mock-it/HEAD/mock-it_codegen/src/lib.rs -------------------------------------------------------------------------------- /mock-it_codegen/src/mock_fn.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathanielsimard/mock-it/HEAD/mock-it_codegen/src/mock_fn.rs -------------------------------------------------------------------------------- /mock-it_codegen/src/trait_method.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathanielsimard/mock-it/HEAD/mock-it_codegen/src/trait_method.rs -------------------------------------------------------------------------------- /src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathanielsimard/mock-it/HEAD/src/lib.rs -------------------------------------------------------------------------------- /src/matcher.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathanielsimard/mock-it/HEAD/src/matcher.rs -------------------------------------------------------------------------------- /src/mock.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathanielsimard/mock-it/HEAD/src/mock.rs -------------------------------------------------------------------------------- /src/rule.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathanielsimard/mock-it/HEAD/src/rule.rs -------------------------------------------------------------------------------- /src/validator.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathanielsimard/mock-it/HEAD/src/validator.rs -------------------------------------------------------------------------------- /src/when.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathanielsimard/mock-it/HEAD/src/when.rs -------------------------------------------------------------------------------- /tests/codegen_async_trait.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathanielsimard/mock-it/HEAD/tests/codegen_async_trait.rs -------------------------------------------------------------------------------- /tests/codegen_default.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathanielsimard/mock-it/HEAD/tests/codegen_default.rs -------------------------------------------------------------------------------- /tests/codegen_generic_trait.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathanielsimard/mock-it/HEAD/tests/codegen_generic_trait.rs -------------------------------------------------------------------------------- /tests/codegen_no_return.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathanielsimard/mock-it/HEAD/tests/codegen_no_return.rs -------------------------------------------------------------------------------- /tests/codegen_panic_message.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathanielsimard/mock-it/HEAD/tests/codegen_panic_message.rs -------------------------------------------------------------------------------- /tests/codegen_reference_not_sized.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathanielsimard/mock-it/HEAD/tests/codegen_reference_not_sized.rs -------------------------------------------------------------------------------- /tests/codegen_reference_sized.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathanielsimard/mock-it/HEAD/tests/codegen_reference_sized.rs --------------------------------------------------------------------------------