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

Function atomic_ok

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

Source from the content-addressed store, hash-verified

85}
86
87fn atomic_ok(root: &Path, home: &Path, args: &[&str]) -> String {
88 let output = atomic(root, home, args);
89 assert!(
90 output.status.success(),
91 "atomic {args:?} failed:\nstdout:\n{}\nstderr:\n{}",
92 String::from_utf8_lossy(&output.stdout),
93 String::from_utf8_lossy(&output.stderr)
94 );
95 String::from_utf8_lossy(&output.stdout).into_owned()
96}
97
98/// `atomic_ok` with extra environment variables for this one invocation.
99fn atomic_ok_env(root: &Path, home: &Path, envs: &[(&str, &str)], args: &[&str]) -> String {

Calls 1

atomicFunction · 0.70

Tested by

no test coverage detected