pub fn get_path(
    search_path: impl AsRef<Path>,
    file_name: impl AsRef<Path>,
    missing_cmd: MissingCommand<'_>,
) -> Result<PathBuf>
Expand description

Attempts to find the given file, first checking for it relative to the test content directory, then falling back to the provided search path.

Note that the file name can be a multi-segment path (e.g. foo/bar.txt) so that it must be in subdirectory of the test content directory. This is useful when multiple files with the same name are needed in different contexts.

If the search path is relative it is treated as relative to the repo root. If it is absolute it is used unchanged.

If the file cannot be found then the provided command will be returned as an easily printable error.