[−][src]Function krill::test::test_under_tmp
pub fn test_under_tmp<F>(op: F) where
F: FnOnce(PathBuf),
This method sets up a test directory with a random name (a number) under 'work', relative to where cargo is running. It then runs the test provided in the closure, and finally it cleans up the test directory.
Note that if your test fails the directory is not cleaned up.