#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

#1676 in Filesystem

Download history 51/week @ 2024-11-17 21/week @ 2024-11-24 27/week @ 2024-12-01 30/week @ 2024-12-08 74/week @ 2024-12-15 16/week @ 2024-12-22 33/week @ 2024-12-29 19/week @ 2025-01-05 10/week @ 2025-01-12 16/week @ 2025-01-19 28/week @ 2025-01-26 20/week @ 2025-02-02 30/week @ 2025-02-09 62/week @ 2025-02-16 62/week @ 2025-02-23 34/week @ 2025-03-02

190 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.5MB
~21K SLoC