Expand description
Collection of path-related helpers.
Functions§
- build_
root - Path to the build directory root.
- cwd
- Return the current working directory.
- filename_
contains - Returns true if the filename at
path
containsneedle
. - filename_
not_ in_ denylist - Returns true if the filename at
path
is not inexpected
. - has_
extension - Returns true if the filename at
path
has the extensionextension
. - has_
prefix - Returns true if the filename at
path
starts withprefix
. - has_
suffix - Returns true if the filename at
path
ends withsuffix
. - not_
contains - Returns true if the filename at
path
does not containexpected
. - path
- Construct a
PathBuf
relative to the current working directory by joiningcwd()
with the relative path. This is mostly a convenience helper so the test writer does not need to writePathBuf::from(path_like_string)
. - read_
dir_ entries_ recursive - Helper for reading entries in a given directory and its children.
- shallow_
find_ directories - Browse the directory
path
non-recursively and return all directories which respect the parameters outlined byclosure
. - shallow_
find_ files - Browse the directory
path
non-recursively and return all files which respect the parameters outlined byclosure
. - source_
root - Path to the root
rust-lang/rust
source checkout.