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

Function atomic_fail

atomic-cli/tests/it/git_shim_cb13d_test.rs:71–79  ·  view source on GitHub ↗
(root: &Path, home: &Path, args: &[&str])

Source from the content-addressed store, hash-verified

69
70#[allow(dead_code)]
71fn atomic_fail(root: &Path, home: &Path, args: &[&str]) -> String {
72 let output = atomic(root, home, args);
73 assert!(
74 !output.status.success(),
75 "atomic {args:?} unexpectedly succeeded:\n{}",
76 atomic_text(&output)
77 );
78 atomic_text(&output)
79}
80
81fn git(root: &Path, args: &[&str]) -> Output {
82 Command::new("git")

Callers 1

atomic_failsMethod · 0.70

Calls 2

atomicFunction · 0.70
atomic_textFunction · 0.70

Tested by

no test coverage detected