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

Function atomic

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

Source from the content-addressed store, hash-verified

16const ATOMIC_BIN: &str = env!("CARGO_BIN_EXE_atomic");
17
18fn atomic(root: &Path, home: &Path, args: &[&str]) -> Output {
19 Command::new(ATOMIC_BIN)
20 .args(args)
21 .current_dir(root)
22 .env("HOME", home)
23 .env("ATOMIC_HOME", home.join(".atomic"))
24 .env("GIT_AUTHOR_NAME", "CB-13A Tests")
25 .env("GIT_AUTHOR_EMAIL", "cb13a@example.com")
26 .env("GIT_COMMITTER_NAME", "CB-13A Tests")
27 .env("GIT_COMMITTER_EMAIL", "cb13a@example.com")
28 .output()
29 .expect("run atomic")
30}
31
32fn atomic_ok(root: &Path, home: &Path, args: &[&str]) -> String {
33 let output = atomic(root, home, args);

Calls 1

outputMethod · 0.45

Tested by

no test coverage detected