├── .github └── workflows │ ├── pages.yml │ └── test.yml ├── .gitignore ├── .rustfmt.toml ├── CHANGELOG.md ├── Cargo.toml ├── LICENSE ├── README.md ├── book ├── .gitignore ├── book.toml └── src │ ├── SUMMARY.md │ ├── blog │ ├── an-inside-look.md │ ├── introducing-faux.md │ └── landing-v-0-1.md │ ├── faux.md │ ├── guide │ ├── exporting-mocks.md │ ├── getting-started.md │ └── intro.md │ ├── motivation.md │ └── theme │ ├── book.js │ ├── css │ ├── chrome.css │ ├── general.css │ ├── print.css │ └── variables.css │ ├── favicon.png │ ├── highlight.css │ ├── highlight.js │ └── index.hbs ├── examples ├── .gitignore ├── Cargo.toml ├── testable-renderer │ ├── Cargo.toml │ └── src │ │ └── lib.rs └── world-renderer │ ├── Cargo.toml │ └── src │ └── main.rs ├── faux_macros ├── .gitignore ├── Cargo.toml ├── LICENSE └── src │ ├── create.rs │ ├── lib.rs │ ├── methods.rs │ ├── methods │ ├── morphed.rs │ └── receiver.rs │ └── self_type.rs ├── src ├── lib.rs ├── matcher.rs ├── matcher │ ├── any.rs │ ├── eq.rs │ ├── from_fn.rs │ └── invocation_matcher.rs ├── mock.rs ├── mock │ ├── store.rs │ ├── stub.rs │ └── unchecked.rs ├── readme_tests.rs ├── when.rs └── when │ └── once.rs └── tests ├── arbitrary_self.rs ├── asynchronous.rs ├── clone.rs ├── generic_method_return.rs ├── generic_methods.rs ├── generic_struct.rs ├── multi_mock.rs ├── paths.rs ├── return_self_method.rs ├── return_self_tuple.rs ├── simple.rs ├── threads.rs ├── trait_impl.rs ├── when_arguments.rs └── with_args.rs /.github/workflows/pages.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nrxus/faux/HEAD/.github/workflows/pages.yml -------------------------------------------------------------------------------- /.github/workflows/test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nrxus/faux/HEAD/.github/workflows/test.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /target 2 | **/*.rs.bk 3 | Cargo.lock -------------------------------------------------------------------------------- /.rustfmt.toml: -------------------------------------------------------------------------------- 1 | edition = "2021" 2 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nrxus/faux/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nrxus/faux/HEAD/Cargo.toml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nrxus/faux/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nrxus/faux/HEAD/README.md -------------------------------------------------------------------------------- /book/.gitignore: -------------------------------------------------------------------------------- 1 | book 2 | -------------------------------------------------------------------------------- /book/book.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nrxus/faux/HEAD/book/book.toml -------------------------------------------------------------------------------- /book/src/SUMMARY.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nrxus/faux/HEAD/book/src/SUMMARY.md -------------------------------------------------------------------------------- /book/src/blog/an-inside-look.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nrxus/faux/HEAD/book/src/blog/an-inside-look.md -------------------------------------------------------------------------------- /book/src/blog/introducing-faux.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nrxus/faux/HEAD/book/src/blog/introducing-faux.md -------------------------------------------------------------------------------- /book/src/blog/landing-v-0-1.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nrxus/faux/HEAD/book/src/blog/landing-v-0-1.md -------------------------------------------------------------------------------- /book/src/faux.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nrxus/faux/HEAD/book/src/faux.md -------------------------------------------------------------------------------- /book/src/guide/exporting-mocks.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nrxus/faux/HEAD/book/src/guide/exporting-mocks.md -------------------------------------------------------------------------------- /book/src/guide/getting-started.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nrxus/faux/HEAD/book/src/guide/getting-started.md -------------------------------------------------------------------------------- /book/src/guide/intro.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nrxus/faux/HEAD/book/src/guide/intro.md -------------------------------------------------------------------------------- /book/src/motivation.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nrxus/faux/HEAD/book/src/motivation.md -------------------------------------------------------------------------------- /book/src/theme/book.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nrxus/faux/HEAD/book/src/theme/book.js -------------------------------------------------------------------------------- /book/src/theme/css/chrome.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nrxus/faux/HEAD/book/src/theme/css/chrome.css -------------------------------------------------------------------------------- /book/src/theme/css/general.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nrxus/faux/HEAD/book/src/theme/css/general.css -------------------------------------------------------------------------------- /book/src/theme/css/print.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nrxus/faux/HEAD/book/src/theme/css/print.css -------------------------------------------------------------------------------- /book/src/theme/css/variables.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nrxus/faux/HEAD/book/src/theme/css/variables.css -------------------------------------------------------------------------------- /book/src/theme/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nrxus/faux/HEAD/book/src/theme/favicon.png -------------------------------------------------------------------------------- /book/src/theme/highlight.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nrxus/faux/HEAD/book/src/theme/highlight.css -------------------------------------------------------------------------------- /book/src/theme/highlight.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nrxus/faux/HEAD/book/src/theme/highlight.js -------------------------------------------------------------------------------- /book/src/theme/index.hbs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nrxus/faux/HEAD/book/src/theme/index.hbs -------------------------------------------------------------------------------- /examples/.gitignore: -------------------------------------------------------------------------------- 1 | /target 2 | Cargo.lock 3 | -------------------------------------------------------------------------------- /examples/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nrxus/faux/HEAD/examples/Cargo.toml -------------------------------------------------------------------------------- /examples/testable-renderer/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nrxus/faux/HEAD/examples/testable-renderer/Cargo.toml -------------------------------------------------------------------------------- /examples/testable-renderer/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nrxus/faux/HEAD/examples/testable-renderer/src/lib.rs -------------------------------------------------------------------------------- /examples/world-renderer/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nrxus/faux/HEAD/examples/world-renderer/Cargo.toml -------------------------------------------------------------------------------- /examples/world-renderer/src/main.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nrxus/faux/HEAD/examples/world-renderer/src/main.rs -------------------------------------------------------------------------------- /faux_macros/.gitignore: -------------------------------------------------------------------------------- 1 | /target 2 | **/*.rs.bk 3 | Cargo.lock -------------------------------------------------------------------------------- /faux_macros/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nrxus/faux/HEAD/faux_macros/Cargo.toml -------------------------------------------------------------------------------- /faux_macros/LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nrxus/faux/HEAD/faux_macros/LICENSE -------------------------------------------------------------------------------- /faux_macros/src/create.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nrxus/faux/HEAD/faux_macros/src/create.rs -------------------------------------------------------------------------------- /faux_macros/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nrxus/faux/HEAD/faux_macros/src/lib.rs -------------------------------------------------------------------------------- /faux_macros/src/methods.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nrxus/faux/HEAD/faux_macros/src/methods.rs -------------------------------------------------------------------------------- /faux_macros/src/methods/morphed.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nrxus/faux/HEAD/faux_macros/src/methods/morphed.rs -------------------------------------------------------------------------------- /faux_macros/src/methods/receiver.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nrxus/faux/HEAD/faux_macros/src/methods/receiver.rs -------------------------------------------------------------------------------- /faux_macros/src/self_type.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nrxus/faux/HEAD/faux_macros/src/self_type.rs -------------------------------------------------------------------------------- /src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nrxus/faux/HEAD/src/lib.rs -------------------------------------------------------------------------------- /src/matcher.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nrxus/faux/HEAD/src/matcher.rs -------------------------------------------------------------------------------- /src/matcher/any.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nrxus/faux/HEAD/src/matcher/any.rs -------------------------------------------------------------------------------- /src/matcher/eq.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nrxus/faux/HEAD/src/matcher/eq.rs -------------------------------------------------------------------------------- /src/matcher/from_fn.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nrxus/faux/HEAD/src/matcher/from_fn.rs -------------------------------------------------------------------------------- /src/matcher/invocation_matcher.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nrxus/faux/HEAD/src/matcher/invocation_matcher.rs -------------------------------------------------------------------------------- /src/mock.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nrxus/faux/HEAD/src/mock.rs -------------------------------------------------------------------------------- /src/mock/store.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nrxus/faux/HEAD/src/mock/store.rs -------------------------------------------------------------------------------- /src/mock/stub.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nrxus/faux/HEAD/src/mock/stub.rs -------------------------------------------------------------------------------- /src/mock/unchecked.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nrxus/faux/HEAD/src/mock/unchecked.rs -------------------------------------------------------------------------------- /src/readme_tests.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nrxus/faux/HEAD/src/readme_tests.rs -------------------------------------------------------------------------------- /src/when.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nrxus/faux/HEAD/src/when.rs -------------------------------------------------------------------------------- /src/when/once.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nrxus/faux/HEAD/src/when/once.rs -------------------------------------------------------------------------------- /tests/arbitrary_self.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nrxus/faux/HEAD/tests/arbitrary_self.rs -------------------------------------------------------------------------------- /tests/asynchronous.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nrxus/faux/HEAD/tests/asynchronous.rs -------------------------------------------------------------------------------- /tests/clone.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nrxus/faux/HEAD/tests/clone.rs -------------------------------------------------------------------------------- /tests/generic_method_return.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nrxus/faux/HEAD/tests/generic_method_return.rs -------------------------------------------------------------------------------- /tests/generic_methods.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nrxus/faux/HEAD/tests/generic_methods.rs -------------------------------------------------------------------------------- /tests/generic_struct.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nrxus/faux/HEAD/tests/generic_struct.rs -------------------------------------------------------------------------------- /tests/multi_mock.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nrxus/faux/HEAD/tests/multi_mock.rs -------------------------------------------------------------------------------- /tests/paths.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nrxus/faux/HEAD/tests/paths.rs -------------------------------------------------------------------------------- /tests/return_self_method.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nrxus/faux/HEAD/tests/return_self_method.rs -------------------------------------------------------------------------------- /tests/return_self_tuple.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nrxus/faux/HEAD/tests/return_self_tuple.rs -------------------------------------------------------------------------------- /tests/simple.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nrxus/faux/HEAD/tests/simple.rs -------------------------------------------------------------------------------- /tests/threads.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nrxus/faux/HEAD/tests/threads.rs -------------------------------------------------------------------------------- /tests/trait_impl.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nrxus/faux/HEAD/tests/trait_impl.rs -------------------------------------------------------------------------------- /tests/when_arguments.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nrxus/faux/HEAD/tests/when_arguments.rs -------------------------------------------------------------------------------- /tests/with_args.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nrxus/faux/HEAD/tests/with_args.rs --------------------------------------------------------------------------------