docs(test): Document 'process'

This commit is contained in:
Ed Page 2024-07-18 14:24:53 -05:00
parent b4b56d4d65
commit 170756601c

View File

@ -1300,8 +1300,13 @@ pub fn is_nightly() -> bool {
&& (vv.contains("-nightly") || vv.contains("-dev"))
}
pub fn process<T: AsRef<OsStr>>(t: T) -> ProcessBuilder {
_process(t.as_ref())
/// Run `$bin` in the test's environment, see [`ProcessBuilder`]
///
/// For more on the test environment, see
/// - [`paths::root`]
/// - [`TestEnvCommandExt`]
pub fn process<T: AsRef<OsStr>>(bin: T) -> ProcessBuilder {
_process(bin.as_ref())
}
fn _process(t: &OsStr) -> ProcessBuilder {