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

Method ok

src/output.rs:98–105  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

96
97impl OutputOkExt for process::Output {
98 fn ok(self) -> OutputResult {
99 if self.status.success() {
100 Ok(self)
101 } else {
102 let error = OutputError::new(self);
103 Err(error)
104 }
105 }
106}
107
108impl OutputOkExt for &mut process::Command {

Callers 3

unwrapMethod · 0.45
unwrap_errMethod · 0.45
unwrap_errMethod · 0.45

Calls 3

successMethod · 0.80
outputMethod · 0.80
set_cmdMethod · 0.80

Tested by

no test coverage detected