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

Method success

src/assert.rs:161–167  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

159 /// ```
160 #[track_caller]
161 pub fn success(self) -> Self {
162 match self.try_success() {
163 Ok(v) => v,
164 // Called manually so `#[track_caller]` is effective.
165 Err(e) => e.panic(),
166 }
167 }
168
169 /// `try_` variant of [`Assert::success`].
170 pub fn try_success(self) -> AssertResult {

Callers 12

okMethod · 0.80
okMethod · 0.80
try_successMethod · 0.80
try_failureMethod · 0.80
cargo_binaryFunction · 0.80
trait_exampleFunction · 0.80
trait_assert_exampleFunction · 0.80
struct_exampleFunction · 0.80
append_context_exampleFunction · 0.80
success_exampleFunction · 0.80
lib_exampleFunction · 0.80

Calls 2

try_successMethod · 0.80
panicMethod · 0.80

Tested by 8

cargo_binaryFunction · 0.64
trait_exampleFunction · 0.64
trait_assert_exampleFunction · 0.64
struct_exampleFunction · 0.64
append_context_exampleFunction · 0.64
success_exampleFunction · 0.64
lib_exampleFunction · 0.64