Re-exportsΒ§
use crate::init_tracing;πuse crate::rpc::rpc_endpoints;πuse eyre::Result;πuse eyre::WrapErr;πuse foundry_compilers::ArtifactOutput;πuse foundry_compilers::ConfigurableArtifacts;πuse foundry_compilers::PathStyle;πuse foundry_compilers::ProjectPathsConfig;πuse foundry_compilers::artifacts::Contract;πuse foundry_compilers::cache::CompilerCache;πuse foundry_compilers::compilers::multi::MultiCompiler;πuse foundry_compilers::project_util::TempProject;πuse foundry_compilers::solc::SolcSettings;πuse foundry_config::Config;πuse parking_lot::Mutex;πuse regex::Regex;πuse snapbox::Data;πuse snapbox::IntoData;πuse snapbox::assert_data_eq;πuse snapbox::cmd::OutputAssert;πuse std::env;πuse std::env;πuse std::ffi::OsStr;πuse std::fs;πuse std::fs::File;πuse std::io::BufWriter;πuse std::io::Write;πuse std::path::Path;πuse std::path::PathBuf;πuse std::process::Command;πuse std::process::Output;πuse std::process::Stdio;πuse std::sync::Arc;πuse std::sync::LazyLock;πuse std::sync::atomic::AtomicUsize;πuse std::sync::atomic::Ordering;πuse crate::util::SOLC_VERSION;πuse crate::util::copy_dir_filtered;πuse crate::util::pretty_err;π
StructsΒ§
- 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.
StaticsΒ§
- CURRENT_
DIR_ πLOCK - NEXT_ID π
- Global test identifier.
TraitsΒ§
FunctionsΒ§
- canonicalize π
- cargo_
build_ πtarget_ dir_ and_ profile - cargo_
profile_ dir - Returns the Cargo profile directory (
target/<profile>) for the currently running test executable. - 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_remotebut not panicking
Type AliasesΒ§
- Regex
Redaction - A tuple of a placeholder and a regex replacement string.