Crates.io | testfile |
lib.rs | testfile |
version | 0.1.5 |
source | src |
created_at | 2020-06-11 16:48:27.37446 |
updated_at | 2024-06-26 07:08:26.073233 |
description | Temporary test file management for unit tests |
homepage | https://gitlab.com/hsn10/testfile |
repository | https://gitlab.com/hsn10/testfile.git |
max_upload_size | |
id | 252849 |
size | 20,324 |
Library for creating automaticaly deleted test files for use in your Rust unit tests. Do not worry about manual temporary file cleanups.
Managed temporary files are created in system temporary directory with unique file names.
They can be dereferenced as ordinary File
and are automatically deleted during Drop
.
Functions do not return Result <T,E>
but panic!
allowing you to focus on your tests and not on error handling.
Nightly Rust is not required.
AsRef
/ AsMut
for Read, Write, File, PathBuf, Path.From
String and PathBuf.