Settings
Help

Module util

Module util 

Source

Structsยง

ExtTester
External test builder
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.

Constantsยง

FORGE_STD_REVISION
The commit of forge-std to use.
OTHER_SOLC_VERSION
Another Solc version used when compiling tests.
SOLC_VERSION
The default Solc version used when compiling tests.

Staticsยง

CURRENT_DIR_LOCK ๐Ÿ”’
IS_TTY
Stores whether stdout is a tty / terminal.
NEXT_ID ๐Ÿ”’
Global test identifier.
TEMPLATE_LOCK ๐Ÿ”’
Global default template lock. If its contents are not exactly "1", the global template will be re-initialized. See initialize() for more info.
TEMPLATE_PATH ๐Ÿ”’
Global default template path. Contains the global template project from which all other temp projects are initialized. See initialize() for more info.

Traitsยง

OutputExt
Extension trait for Output.

Functionsยง

clone_remote
Clones a remote repository into the specified directory. Panics if the command fails.
config_paths_exist ๐Ÿ”’
initialize
Initializes a project with forge init at the given path from a template directory.
lossy_string
pretty_err
read_string
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_assert ๐Ÿ”’
test_redactions ๐Ÿ”’
try_setup_forge_remote
Same as setup_forge_remote but not panicking