Crates.io | with_tempdir |
lib.rs | with_tempdir |
version | 0.1.0 |
source | src |
created_at | 2019-08-09 22:54:33.565539 |
updated_at | 2019-08-09 22:54:33.565539 |
description | Inject a temporary directory and provide as an argument to the function |
homepage | |
repository | https://gitlab.com/woshilapin/with_tempdir |
max_upload_size | |
id | 155492 |
size | 53,132 |
This small project is providing you a procedural macro to inject a temporary directory in your test.
#[with_tempdir]
#[test]
fn my_test(path: &Path) {
// do stuff in folder `path`
}
Look at the documentation for more.