mirror of
https://github.com/Drop-OSS/drop.git
synced 2026-07-26 01:34:38 +10:00
Initial commit
This commit is contained in:
@@ -0,0 +1 @@
|
||||
pub mod path;
|
||||
@@ -0,0 +1,18 @@
|
||||
use std::env;
|
||||
use std::path::PathBuf;
|
||||
|
||||
pub fn exe_path() -> PathBuf {
|
||||
env::current_exe().unwrap()
|
||||
}
|
||||
|
||||
pub fn root() -> PathBuf {
|
||||
exe_path().parent().unwrap().parent().unwrap().parent().unwrap().join("tests")
|
||||
}
|
||||
|
||||
pub fn fixtures() -> PathBuf {
|
||||
root().join("fixtures")
|
||||
}
|
||||
|
||||
pub fn fixture(name: &str) -> PathBuf {
|
||||
fixtures().join(name)
|
||||
}
|
||||
Reference in New Issue
Block a user