MCPcopy Index your code
hub / github.com/assert-rs/assert_cmd / spawn

Method spawn

src/cmd.rs:509–516  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

507 }
508
509 fn spawn(&mut self) -> io::Result<process::Child> {
510 // stdout/stderr should only be piped for `output` according to `process::Command::new`.
511 self.cmd.stdin(process::Stdio::piped());
512 self.cmd.stdout(process::Stdio::piped());
513 self.cmd.stderr(process::Stdio::piped());
514
515 self.cmd.spawn()
516 }
517
518 /// Returns the path to the program that was given to [`Command::new`].
519 ///

Callers 1

outputMethod · 0.80

Calls 2

stdoutMethod · 0.80
stderrMethod · 0.80

Tested by

no test coverage detected