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

Function run

atomic-cli/tests/it/git_span_blame_test.rs:7–20  ·  view source on GitHub ↗
(root: &Path, home: &Path, program: &str, args: &[&str])

Source from the content-addressed store, hash-verified

5use std::process::{Command, Output};
6
7fn run(root: &Path, home: &Path, program: &str, args: &[&str]) -> Output {
8 Command::new(program)
9 .args(args)
10 .current_dir(root)
11 .env("HOME", home)
12 .env("ATOMIC_HOME", home.join(".atomic"))
13 .env("ATOMIC_SERVICE", "local")
14 .env("GIT_CONFIG_GLOBAL", "/dev/null")
15 .env("GIT_CONFIG_NOSYSTEM", "1")
16 .env("GIT_TERMINAL_PROMPT", "0")
17 .env_remove("GIT_INDEX_FILE")
18 .output()
19 .unwrap()
20}
21
22#[test]
23fn incremental_span_import_refuses_alternate_git_index_before_writing() {

Calls 2

unwrapMethod · 0.45
outputMethod · 0.45

Tested by

no test coverage detected