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

Function atomic_ok

atomic-cli/tests/it/import_budget_100k_bench.rs:77–85  ·  view source on GitHub ↗

Run atomic, assert success, return stdout+stderr.

(root: &Path, home: &Path, args: &[&str])

Source from the content-addressed store, hash-verified

75
76/// Run atomic, assert success, return stdout+stderr.
77fn atomic_ok(root: &Path, home: &Path, args: &[&str]) -> String {
78 let output = atomic(root, home, args);
79 assert!(
80 output.status.success(),
81 "atomic {args:?} failed:\n{}",
82 atomic_text(&output)
83 );
84 atomic_text(&output)
85}
86
87/// Run atomic with a wall-clock measurement; returns (seconds, output).
88fn timed_atomic(root: &Path, home: &Path, args: &[&str]) -> (f64, Output) {

Callers 3

buildMethod · 0.70
atomic_okMethod · 0.70

Calls 2

atomicFunction · 0.70
atomic_textFunction · 0.70

Tested by

no test coverage detected