MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / assert_success

Function assert_success

atomic-cli/tests/it/git_binding_cb6c_test.rs:32–39  ·  view source on GitHub ↗
(output: &Output, context: &str)

Source from the content-addressed store, hash-verified

30}
31
32fn assert_success(output: &Output, context: &str) {
33 assert!(
34 output.status.success(),
35 "{context} failed:\nstdout:\n{}\nstderr:\n{}",
36 String::from_utf8_lossy(&output.stdout),
37 String::from_utf8_lossy(&output.stderr)
38 );
39}
40
41fn output_text(output: &Output) -> String {
42 format!(

Calls

no outgoing calls

Tested by

no test coverage detected