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

Function assert_success

atomic-cli/tests/it/operation_cli_integration_test.rs:17–25  ·  view source on GitHub ↗
(output: &Output, command: &str)

Source from the content-addressed store, hash-verified

15}
16
17fn assert_success(output: &Output, command: &str) {
18 assert!(
19 output.status.success(),
20 "`{command}` failed with {}\nstdout:\n{}\nstderr:\n{}",
21 output.status,
22 String::from_utf8_lossy(&output.stdout),
23 String::from_utf8_lossy(&output.stderr),
24 );
25}
26
27#[test]
28fn operation_log_and_show_inspect_a_real_switch_operation() {

Calls

no outgoing calls

Tested by

no test coverage detected