Skip to content

stoiandan/dummy_gen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dummy_gen

Generates a dummy file, of a give size in bytes.

Why?

In order to test speed or relaiability of software that interacts with the file system you want to handle files of different sizez that contain randomly generated information. This files are commonly known as dummy files. Dummy in that their content is not UTF-8 valid, or json or XML, which makes them less predictable and more usefull for general testing.

Usage

Dummy gen can be used both as a stand alone app from the command line:

dummy_gen out.dat 1234 Writes 1234 bytes to a file named out.dat

But then, it can also be used as a library, having a simple API:

use dummy_gen::{write, Result};

fn main() -> Reuslt<()> {
   write(output_file_name, output_file_size)?;
}

About

Generates a dummy file, of a give size in bytes.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages