Trait testpath::TestPath [−][src]
pub trait TestPath { fn path(&self) -> &Path; fn sub_path<P>(&self, subcomponents: P) -> SubPath<'_>
where
P: AsRef<Path> + Sized,
Self: Sized, { ... } fn sub_path_exists<P>(&self, subcomponents: P) -> SubPath<'_>
where
P: AsRef<Path> + Sized,
Self: Sized, { ... } fn sub_path_available<P>(&self, subcomponents: P) -> SubPath<'_>
where
P: AsRef<Path> + Sized,
Self: Sized, { ... } }
Expand description
Trait for test directoy objects
Required methods
Provided methods
Return a canonalized/normalized PathBuf to components within the testpath. Assert and panic when path escapes from the testpath. Handles non existing components.
Return a canonalized/normalized PathBuf to components within the testpath. Assert and panic when path escapes from the testpath. Asserts that the given subpath exists.