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

Function assert_success

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

Source from the content-addressed store, hash-verified

45}
46
47fn assert_success(output: &Output, context: &str) {
48 assert!(
49 output.status.success(),
50 "{context} failed:\nstdout:\n{}\nstderr:\n{}",
51 String::from_utf8_lossy(&output.stdout),
52 String::from_utf8_lossy(&output.stderr)
53 );
54}
55
56fn output_text(output: &Output) -> String {
57 format!(

Calls

no outgoing calls

Tested by

no test coverage detected