pub(crate) struct Paths {
pub(crate) test_base_dir: String,
pub(crate) rustc_binary_path: String,
pub(crate) gn_binary_path: String,
pub(crate) cargo_binary_path: String,
pub(crate) lib_path: String,
}
Expand description
Paths to use in test. All paths are relative to where this test is executed.
These paths have to be relative when passed to this test on infra bots, so they are mapped correctly, otherwise they won’t be available at test runtime. It is safe to convert these to absolute paths later in the test.
Fields§
§test_base_dir: String
path to the directory where golden tests are placed.
rustc_binary_path: String
path to rustc
binary to use in test.
gn_binary_path: String
path to gn
binary to use in test.
cargo_binary_path: String
path to cargo
binary to use in test.
lib_path: String
path to shared libraries directory to use in test.
Trait Implementations§
source§impl FromArgs for Paths
impl FromArgs for Paths
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