Skip to content

Commit 23034b0

Browse files
committed
move tests into new location for better readability
1 parent 697a632 commit 23034b0

36 files changed

+3
-4
lines changed

gix-config/tests/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ publish = false
1414

1515
[[test]]
1616
name = "config"
17-
path = "config.rs"
17+
path = "config/mod.rs"
1818

1919
[[test]]
2020
name = "mem"

gix-config/tests/file/mod.rs renamed to gix-config/tests/config/file/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ mod open {
3030
#[test]
3131
fn fuzzed_stackoverflow() {
3232
let file = File::from_bytes_no_includes(
33-
include_bytes!("../fixtures/fuzzed/stackoverflow-01.config"),
33+
include_bytes!("../../fixtures/fuzzed/stackoverflow-01.config"),
3434
gix_config::file::Metadata::default(),
3535
Default::default(),
3636
)
File renamed without changes.

gix-config/tests/config.rs renamed to gix-config/tests/config/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ pub use gix_testtools::Result;
22

33
mod file;
44
mod key;
5-
mod mem;
65
mod parse;
76
mod source;
87
mod value;

gix-config/tests/parse/from_bytes.rs renamed to gix-config/tests/config/parse/from_bytes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ fn fuzz() {
88
);
99
assert!(
1010
Events::from_str(include_str!(
11-
"../fixtures/clusterfuzz-testcase-minimized-gix-config-parse-6431708583690240"
11+
"../../fixtures/clusterfuzz-testcase-minimized-gix-config-parse-6431708583690240"
1212
))
1313
.is_err(),
1414
"works without hanging - these 400kb take 10s in debug mode right now, but just as long in release mode. With nom all tests ran in below 1s in debug mode"
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)