with_tempdir

Crates.iowith_tempdir
lib.rswith_tempdir
version0.1.0
sourcesrc
created_at2019-08-09 22:54:33.565539
updated_at2019-08-09 22:54:33.565539
descriptionInject a temporary directory and provide as an argument to the function
homepage
repositoryhttps://gitlab.com/woshilapin/with_tempdir
max_upload_size
id155492
size53,132
Jean SIMARD (woshilapin)

documentation

https://woshilapin.gitlab.io/with_tempdir

README

Crates.io Gitlab pipeline status License GPL-3.0+

Tempdir injection for tests

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.

Commit count: 54

cargo fmt