diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2019-12-20 12:30:24 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2019-12-20 12:30:24 +0100 |
commit | 0601ef796b9507f33470c69dcac2e239f212a768 (patch) | |
tree | 758c6eddec16a248a32c74c1e2317be318e69d21 | |
parent | 0be8a499fa29e860e984cad61a721be9ad28026e (diff) |
Remove unused code in testing module
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
-rw-r--r-- | src/testing/mod.rs | 1 | ||||
-rw-r--r-- | src/testing/utils.rs | 16 |
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) -} |