diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2019-12-20 20:48:20 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-20 20:48:20 +0100 |
commit | 1380db01f8d1cc813c7b7f9d42b75cad4318e845 (patch) | |
tree | 30efac3008bce35e07e37e5fc9644017fd695b54 /src/testutils.rs | |
parent | 4e065267398aaedcf827a3a26f11b0cba8d9bb19 (diff) | |
parent | d4f30821e72c5f257db52b61d8448a49df405182 (diff) |
Merge pull request #10 from matthiasbeyer/restructure
Restructure
Diffstat (limited to 'src/testutils.rs')
-rw-r--r-- | src/testutils.rs | 16 |
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) -} |