Struct update_crates_test_bin::TestArgs
source · pub(crate) struct TestArgs {
pub(crate) test_base_dir: PathBuf,
pub(crate) rust_bin_dir: PathBuf,
pub(crate) cargo_outdated: PathBuf,
pub(crate) update_crates: PathBuf,
}
Expand description
an integration test for the update_crates host tool
Fields§
§test_base_dir: PathBuf
path to the tests directory
rust_bin_dir: PathBuf
path to the bin/ dir within our rust prebuilt distro
cargo_outdated: PathBuf
path to prebuilt cargo-outdated
update_crates: PathBuf
path to update_crates binary to test
Implementations§
source§impl TestArgs
impl TestArgs
sourcepub(crate) fn canonicalize(self) -> Self
pub(crate) fn canonicalize(self) -> Self
Get absolute paths for each of these so we can pass them to subprocesses with different working directories than our own.
Trait Implementations§
source§impl FromArgs for TestArgs
impl FromArgs for TestArgs
source§fn from_args(__cmd_name: &[&str], __args: &[&str]) -> Result<Self, EarlyExit>
fn from_args(__cmd_name: &[&str], __args: &[&str]) -> Result<Self, EarlyExit>
Construct the type from an input set of arguments. Read more
source§fn redact_arg_values(
__cmd_name: &[&str],
__args: &[&str]
) -> Result<Vec<String>, EarlyExit>
fn redact_arg_values( __cmd_name: &[&str], __args: &[&str] ) -> Result<Vec<String>, EarlyExit>
Get a String with just the argument names, e.g., options, flags, subcommands, etc, but
without the values of the options and arguments. This can be useful as a means to capture
anonymous usage statistics without revealing the content entered by the end user. Read more