summaryrefslogtreecommitdiffstats
path: root/src/testutils.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/testutils.rs')
-rw-r--r--src/testutils.rs16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/testutils.rs b/src/testutils.rs
deleted file mode 100644
index ade3ea1..0000000
--- a/src/testutils.rs
+++ /dev/null
@@ -1,16 +0,0 @@
-use assert_fs::fixture::{ChildPath, FixtureError};
-use assert_fs::prelude::*;
-use assert_fs::TempDir;
-use std::path::{Path, PathBuf};
-
-pub fn path_to(artifact: &str) -> PathBuf {
- [env!("CARGO_MANIFEST_DIR"), "testdata", artifact]
- .iter()
- .collect()
-}
-
-pub fn touch_testfile(testdir: &TempDir, relative_path: &Path) -> Result<ChildPath, FixtureError> {
- let testfile = testdir.child(relative_path);
- testfile.touch()?;
- Ok(testfile)
-}