Skip to main content

fixture_path

Function fixture_path 

Source
pub fn fixture_path(root: &Path, rel: &str) -> Result<PathBuf>
Expand description

Resolves a fixture file a test names (t.db.seed("fixtures/x.sql")) under root, the tests directory: the static server’s lexical rule (no .., no absolute path, no NUL), then canonical containment, and it must be a regular file.

§Errors

A path that could name something outside root, or that is not a regular file there.