Module prj

Module prj 

Source

StructsΒ§

RemoteProject
How to initialize a remote git project
TestCommand
A simple wrapper around a Command with some conveniences.
TestProject
TestProject represents a temporary project to run tests against.

StaticsΒ§

CURRENT_DIR_LOCK πŸ”’
NEXT_ID πŸ”’
Global test identifier.

TraitsΒ§

OutputExt
Extension trait for Output.

FunctionsΒ§

canonicalize πŸ”’
clone_remote
Clones a remote repository into the specified directory. Panics if the command fails.
config_paths_exist πŸ”’
insert_redactions πŸ”’
lossy_string
make_redactions πŸ”’
Creates a [snapbox] redactions object from a list of regex redactions.
setup_cast
setup_cast_project
setup_forge
Setup an empty test project and return a command pointing to the forge executable whose CWD is set to the project’s root.
setup_forge_project
setup_forge_remote
Setups a new local forge project by cloning and initializing the RemoteProject
test_redactions πŸ”’
try_setup_forge_remote
Same as setup_forge_remote but not panicking

Type AliasesΒ§

RegexRedaction
A tuple of a placeholder and a regex replacement string.