Function from_file

Source
pub fn from_file(path: impl AsRef<Path>) -> TestFile
Expand description

Turns an existing file into TestFile.

File must exist and be readable and writable.