-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add stress test with 2^16 variants (#90)
- Loading branch information
1 parent
b5e85f6
commit 4cd978d
Showing
8 changed files
with
65,613 additions
and
14 deletions.
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
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,5 +1,5 @@ | ||
[workspace] | ||
members = ["num_enum", "num_enum_derive", "renamed_num_enum", "serde_example"] | ||
members = ["num_enum", "num_enum_derive", "renamed_num_enum", "serde_example", "stress_tests"] | ||
# Exclude num_enum_derive because its useful doc comments import num_enum, which the crate doesn't do (because it would | ||
# cause a circular dependency), so the doc tests don't actually compile. | ||
default-members = ["num_enum", "renamed_num_enum", "serde_example"] | ||
default-members = ["num_enum", "renamed_num_enum", "serde_example", "stress_tests"] |
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
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
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
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,16 @@ | ||
[package] | ||
name = "stress_tests" | ||
version = "0.1.0" | ||
authors = [ | ||
"Daniel Wagner-Hall <[email protected]>", | ||
"Daniel Henry-Mantilla <[email protected]>", | ||
"Vincent Esche <[email protected]>", | ||
] | ||
description = "Tests using large enums. Regression test for https://github.com/illicitonion/num_enum/issues/83." | ||
edition = "2018" | ||
repository = "https://github.com/illicitonion/num_enum" | ||
publish = false | ||
|
||
[dev-dependencies] | ||
num_enum = { path = "../num_enum" } | ||
trybuild = "1.0.31" |
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,7 @@ | ||
use std::path::Path; | ||
|
||
#[test] | ||
fn stress_test() { | ||
let pass = trybuild::TestCases::new(); | ||
pass.pass(Path::new("tests/stress_tests/*.rs")); | ||
} |
Oops, something went wrong.