Skip to main content

Module prj

Module prj 

Source

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Β§

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 πŸ”’
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_remote but not panicking

Type AliasesΒ§

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