Skip to content

Commit 4ff59f6

Browse files
authored
rstest parametrizing for threading test cases (#582)
Changed tests to use the rstest #571. On my machine it makes the test (`--release`) run about 40% faster (2.8s to 1.6s) Places where the pattern was `let tests = [...]` with only one test case, I changed to use rstest, since this makes adding more test cases easier. I assumed that was the reason for the `tests` variable being there despite there only being one test case.
1 parent e51df00 commit 4ff59f6

File tree

5 files changed

+760
-628
lines changed

5 files changed

+760
-628
lines changed

Cargo.lock

Lines changed: 220 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ sha3 = { version = "0.11.0-rc.2", default-features = false, features = ["oid"] }
4646
hex = { version = "0.4.3", features = ["serde"] }
4747
serde_json = "1.0.138"
4848
serde = { version = "1.0.184", features = ["derive"] }
49+
rstest = "0.26.1"
4950

5051
[[bench]]
5152
name = "key"

0 commit comments

Comments
 (0)