mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-28 11:20:36 +00:00
docs(test): Document 'process'
This commit is contained in:
parent
b4b56d4d65
commit
170756601c
@ -1300,8 +1300,13 @@ pub fn is_nightly() -> bool {
|
|||||||
&& (vv.contains("-nightly") || vv.contains("-dev"))
|
&& (vv.contains("-nightly") || vv.contains("-dev"))
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn process<T: AsRef<OsStr>>(t: T) -> ProcessBuilder {
|
/// Run `$bin` in the test's environment, see [`ProcessBuilder`]
|
||||||
_process(t.as_ref())
|
///
|
||||||
|
/// 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 {
|
fn _process(t: &OsStr) -> ProcessBuilder {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user