aboutsummaryrefslogtreecommitdiffstats
path: root/tests/fixtures/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/fixtures/mod.rs')
-rw-r--r--tests/fixtures/mod.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/fixtures/mod.rs b/tests/fixtures/mod.rs
index d55f022..cec912a 100644
--- a/tests/fixtures/mod.rs
+++ b/tests/fixtures/mod.rs
@@ -14,6 +14,10 @@ pub static FILES: &[&str] = &["test.txt", "test.html", "test.mkv"];
#[allow(dead_code)]
pub static DIRECTORIES: &[&str] = &["dira/", "dirb/", "dirc/"];
+/// Name of a deeply nested file
+#[allow(dead_code)]
+pub static DEEPLY_NESTED_FILE: &str = "very/deeply/nested/test.rs";
+
/// Test fixture which creates a temporary directory with a few files and directories inside.
/// The directories also contain files.
#[fixture]
@@ -35,6 +39,10 @@ pub fn tmpdir() -> TempDir {
}
}
tmpdir
+ .child(&DEEPLY_NESTED_FILE)
+ .write_str("File in a deeply nested directory.")
+ .expect("Couldn't write to file");
+ tmpdir
}
/// Get a free port.