Skip to main content

resolve_route_fixture_path

Function resolve_route_fixture_path 

Source
pub fn resolve_route_fixture_path(
    artifact_dir: &Path,
    app_id: &str,
) -> Option<String>
Expand description

Resolves a route fixture below an app root with traversal protection.

§Parameters

§Returns

Returns Some when crate::runtime::dynamic::resolve_route_fixture_path can produce a value and None otherwise.

§Performance

Performance is proportional to the size of the supplied inputs and any parsed or loaded data consumed by crate::runtime::dynamic::resolve_route_fixture_path.

§Examples

ⓘ
let _result = pharos_native::runtime::dynamic::resolve_route_fixture_path(std::path::Path::new("build/dev_docs"), todo!());