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

Function run

atomic-cli/tests/it/change_tree_test.rs:20–35  ·  view source on GitHub ↗
(root: &Path, hash: &str, flags: &[&str])

Source from the content-addressed store, hash-verified

18}
19
20fn run(root: &Path, hash: &str, flags: &[&str]) -> String {
21 let output = Command::new(env!("CARGO_BIN_EXE_atomic"))
22 .current_dir(root)
23 .args(["--no-color", "change", hash])
24 .args(flags)
25 .env("ATOMIC_SERVICE", "local")
26 .env_remove("ATOMIC_RPC")
27 .output()
28 .unwrap();
29 assert!(
30 output.status.success(),
31 "{}",
32 String::from_utf8_lossy(&output.stderr)
33 );
34 String::from_utf8(output.stdout).unwrap()
35}
36
37#[test]
38fn change_tree_expands_paths_without_emoji_and_preserves_other_formats() {

Calls 2

unwrapMethod · 0.45
outputMethod · 0.45

Tested by

no test coverage detected