just/tests/tempdir.rs
2021-07-03 21:26:59 +00:00

7 lines
176 B
Rust

pub(crate) fn tempdir() -> tempfile::TempDir {
tempfile::Builder::new()
.prefix("just-test-tempdir")
.tempdir()
.expect("failed to create temporary directory")
}