()
| 257 | } |
| 258 | |
| 259 | pub fn tempdir_or_panic() -> TempDir { |
| 260 | match TempDir::new() { |
| 261 | Ok(dir) => dir, |
| 262 | Err(err) => panic!("failed to create temp dir: {err}"), |
| 263 | } |
| 264 | } |
| 265 | |
| 266 | pub fn fake_codex_bin(temp: &Path) -> PathBuf { |
| 267 | temp.join(if cfg!(windows) { "codex.cmd" } else { "codex" }) |
no outgoing calls