Groundwork for coverage with Nu internals. (#1205)

This commit is contained in:
Andrés N. Robalino
2020-01-12 16:44:22 -05:00
committed by GitHub
parent 5fd3191d91
commit d3dae05714
8 changed files with 190 additions and 17 deletions

View File

@ -220,11 +220,16 @@ pub fn delete_directory_at(full_path: &str) {
}
pub fn executable_path() -> PathBuf {
let mut buf = PathBuf::new();
buf.push("target");
buf.push("debug");
buf.push("nu");
buf
let mut path = binaries();
path.push("nu");
path
}
pub fn binaries() -> PathBuf {
let mut path = PathBuf::new();
path.push("target");
path.push("debug");
path
}
pub fn in_directory(str: impl AsRef<Path>) -> String {