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

Method unwrap

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

Source from the content-addressed store, hash-verified

61 /// [`Output`]: std::process::Output
62 #[track_caller]
63 fn unwrap(self) -> process::Output {
64 match self.ok() {
65 Ok(output) => output,
66 Err(err) => panic!("{}", err),
67 }
68 }
69
70 /// Unwrap a [`Output`] but with a prettier message than `ok().err().unwrap()`.
71 ///

Callers 2

format_bytesFunction · 0.45
no_trailing_newlineFunction · 0.45

Implementers 2

cmd.rssrc/cmd.rs
output.rssrc/output.rs

Calls 1

okMethod · 0.45

Tested by 1

no_trailing_newlineFunction · 0.36