Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
testing module with mock redis connection and command
- Loading branch information
Tom Dyas
committed
Jul 4, 2022
1 parent
ff4a550
commit 6ef6d2f
Showing
3 changed files
with
424 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
[workspace] | ||
members = ["redis"] | ||
members = ["redis", "redis-test"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
[package] | ||
name = "redis-test" | ||
version = "0.1.0" | ||
edition = "2018" | ||
description = "Testing helpers for the `redis` crate" | ||
homepage = "https://github.com/redis-rs/redis-rs" | ||
repository = "https://github.com/redis-rs/redis-rs" | ||
documentation = "https://docs.rs/redis-test" | ||
license = "BSD-3-Clause" | ||
|
||
[dependencies] | ||
redis = { version = "0.21.5", path = "../redis" } | ||
|
||
bytes = { version = "1", optional = true } | ||
futures = { version = "0.3", optional = true } | ||
|
||
[features] | ||
aio = ["futures", "redis/aio"] | ||
|
||
[dev-dependencies] | ||
redis = { version = "0.21.5", path = "../redis", features = ["aio", "tokio-comp"] } | ||
tokio = { version = "1", features = ["rt", "macros", "rt-multi-thread"] } | ||
|
Oops, something went wrong.