summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2019-12-20 12:30:24 +0100
committerMatthias Beyer <mail@beyermatthias.de>2019-12-20 12:30:24 +0100
commit0601ef796b9507f33470c69dcac2e239f212a768 (patch)
tree758c6eddec16a248a32c74c1e2317be318e69d21
parent0be8a499fa29e860e984cad61a721be9ad28026e (diff)
Remove unused code in testing module
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
-rw-r--r--src/testing/mod.rs1
-rw-r--r--src/testing/utils.rs16
2 files changed, 0 insertions, 17 deletions
diff --git a/src/testing/mod.rs b/src/testing/mod.rs
index 6a768c5..7a345e4 100644
--- a/src/testing/mod.rs
+++ b/src/testing/mod.rs
@@ -1,2 +1 @@
-pub mod utils;
pub mod data;
diff --git a/src/testing/utils.rs b/src/testing/utils.rs
deleted file mode 100644
index ade3ea1..0000000
--- a/src/testing/utils.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)
-}