diff options
| author | a14m <[email protected]> | 2021-04-02 00:33:06 +0200 |
|---|---|---|
| committer | a14m <[email protected]> | 2021-04-02 00:33:06 +0200 |
| commit | 3f4cc21ab80f633ae6fc63e10a6216114d235a38 (patch) | |
| tree | d791608c75a9f42a446df0a04b69e987cc4ecb17 | |
| parent | b7788a4480db02d7fb326626bca531bbe178b89e (diff) | |
Add mocktopus for mocking in tests
| -rw-r--r-- | CLI/rust/Cargo.lock | 21 | ||||
| -rw-r--r-- | CLI/rust/Cargo.toml | 3 |
2 files changed, 24 insertions, 0 deletions
diff --git a/CLI/rust/Cargo.lock b/CLI/rust/Cargo.lock index 5c97dd6..ac9723b 100644 --- a/CLI/rust/Cargo.lock +++ b/CLI/rust/Cargo.lock @@ -61,6 +61,7 @@ name = "game-of-life" version = "0.1.0" dependencies = [ "clap", + "mocktopus", "terminal_size", ] @@ -111,6 +112,26 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1482821306169ec4d07f6aca392a4681f66c75c9918aa49641a2595db64053cb" [[package]] +name = "mocktopus" +version = "0.7.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aacdb26c24b2faec2c9f7e8e9609dcc62024cf4408b886a4439a961b922d4cab" +dependencies = [ + "mocktopus_macros", +] + +[[package]] +name = "mocktopus_macros" +version = "0.7.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2c7a37573ee3c6277b249627b6f1fc5698ffb4cf45c3cb077384e085c803b535" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] name = "os_str_bytes" version = "2.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" diff --git a/CLI/rust/Cargo.toml b/CLI/rust/Cargo.toml index a1a824c..faac33f 100644 --- a/CLI/rust/Cargo.toml +++ b/CLI/rust/Cargo.toml @@ -7,3 +7,6 @@ edition = "2018" [dependencies] clap = { version = "3.0.0-beta.2", features = ["wrap_help"] } terminal_size = "0.1.16" + +[dev-dependencies] +mocktopus = "^0.7.0" |
