(dir: &Path, home: &Path, args: &[&str])
| 7 | use tempfile::TempDir; |
| 8 | |
| 9 | fn atomic(dir: &Path, home: &Path, args: &[&str]) -> Output { |
| 10 | Command::new(env!("CARGO_BIN_EXE_atomic")) |
| 11 | .arg("--no-color") |
| 12 | .args(args) |
| 13 | .current_dir(dir) |
| 14 | .env("HOME", home) |
| 15 | .env("USERPROFILE", home) |
| 16 | // Repository initialization must use local embeddings even when the |
| 17 | // developer running this test has provider credentials configured. |
| 18 | .env_remove("VOYAGE_API_KEY") |
| 19 | .env_remove("OPENAI_API_KEY") |
| 20 | .env_remove("ANTHROPIC_API_KEY") |
| 21 | .output() |
| 22 | .expect("run atomic") |
| 23 | } |
| 24 | |
| 25 | fn assert_not_repository(output: &Output, dir: &Path) { |
| 26 | let stderr = String::from_utf8_lossy(&output.stderr); |
no test coverage detected