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

Method ok

src/cmd.rs:141–143  ·  view source on GitHub ↗

Run a `Command`, returning an [`OutputResult`]. # Examples ```rust use assert_cmd::Command; let result = Command::new("echo") .args(&["42"]) .ok(); assert!(result.is_ok()); ```

(&mut self)

Source from the content-addressed store, hash-verified

139 /// ```
140 ///
141 pub fn ok(&mut self) -> OutputResult {
142 OutputOkExt::ok(self)
143 }
144
145 /// Run a `Command`, unwrapping the [`OutputResult`].
146 ///

Callers 7

unwrap_errMethod · 0.45
cargo_runnerFunction · 0.45
missing_cargo_binFunction · 0.45
target_dirFunction · 0.45
runFunction · 0.45
runFunction · 0.45

Calls 4

outputMethod · 0.80
successMethod · 0.80
set_cmdMethod · 0.80
set_stdinMethod · 0.80

Tested by

no test coverage detected