MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / tempdir_or_panic

Function tempdir_or_panic

tests/common/mod.rs:259–264  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

257}
258
259pub 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
266pub fn fake_codex_bin(temp: &Path) -> PathBuf {
267 temp.join(if cfg!(windows) { "codex.cmd" } else { "codex" })

Calls

no outgoing calls