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

Function atomic

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

Source from the content-addressed store, hash-verified

27const ATOMIC_BIN: &str = env!("CARGO_BIN_EXE_atomic");
28
29fn atomic(root: &Path, home: &Path, args: &[&str]) -> Output {
30 Command::new(ATOMIC_BIN)
31 .args(args)
32 .current_dir(root)
33 .env("HOME", home)
34 .env("ATOMIC_HOME", home.join(".atomic"))
35 .env("GIT_AUTHOR_NAME", "CB-10A Tests")
36 .env("GIT_AUTHOR_EMAIL", "cb10a@example.com")
37 .env("GIT_COMMITTER_NAME", "CB-10A Tests")
38 .env("GIT_COMMITTER_EMAIL", "cb10a@example.com")
39 .output()
40 .expect("run atomic")
41}
42
43fn atomic_text(output: &Output) -> String {
44 format!(

Callers 3

atomic_okFunction · 0.70
atomic_failFunction · 0.70
atomic_outputMethod · 0.70

Calls 1

outputMethod · 0.45

Tested by

no test coverage detected