#temp #test

test-temp-file

This crate allows creation and automatic deletion (based on Drop trait) of files

3 releases

0.1.2 Jul 11, 2020
0.1.1 Jul 11, 2020
0.1.0 Jul 11, 2020

#1494 in Filesystem

Download history 22/week @ 2024-07-20 38/week @ 2024-07-27 51/week @ 2024-08-03 51/week @ 2024-08-10 5/week @ 2024-08-17 20/week @ 2024-08-24 15/week @ 2024-08-31 73/week @ 2024-09-07 18/week @ 2024-09-14 18/week @ 2024-09-21 325/week @ 2024-09-28 11/week @ 2024-10-05 9/week @ 2024-10-12 73/week @ 2024-10-19 71/week @ 2024-10-26 69/week @ 2024-11-02

224 downloads per month
Used in 2 crates

MIT/Apache

6KB
104 lines

(https://crates.io/crates/test-temp-file) Rust

[Test Temp File]

This crate allows creation and automatic deletion (based on Drop trait) of files.

This is aimed mostly for testing purposes, for example when testing a parser you probably want to read/write file and validate their content


lib.rs:

This crate allows creation and automatic deletion (based on Drop trait) of files. This is aimed mostly for testing purposes, for example when testing a parser you probably want to read/write file and validate their content

Dependencies

~1.4–2MB
~37K SLoC