Structs§
- ExtTester
- External test builder
- Remote
Project - How to initialize a remote git project
- Test
Command - A simple wrapper around a Command with some conveniences.
- Test
Project TestProjectrepresents 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§
- IS_TTY
- Stores whether
stdoutis a tty / terminal. - TEMPLATE_
LOCK 🔒 - Global default template lock. If its contents are not exactly
"1", the global template will be re-initialized. Seeinitialize()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§
Functions§
- clone_
remote - Clones a remote repository into the specified directory. Panics if the command fails.
- get_
compiled - Compile the project with a lock for the cache.
- get_
vyper - Installs Vyper if it’s not already present.
- initialize
- Initializes a project with
forge initat 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 - try_
setup_ forge_ remote - Same as
setup_forge_remotebut not panicking
Type Aliases§
- Regex
Redaction - A tuple of a placeholder and a regex replacement string.