Function workspace_path
Source pub fn workspace_path(relative_path: &str) -> PathBuf
Expand description
Get a path relative to the crate root for testing purposes.
CARGO_MANIFEST_DIR points to the crate directory where specs/ lives.
§Example
ⓘlet path = workspace_path("specs/v1/elements/paragraph.docs/paragraph-01-flat-oneline.lex");
let content = std::fs::read_to_string(path).unwrap();