Crate rfs_tester[][src]

This library provides simple util for testing file system operations. When you test something you need some sandbox which should wipe out after testing finish. This package allow you configure temporary directory and its inner structure, perform tests and remove it when all work will done.

Structs

Config

File System config structure to contains directories, files and links to execute tests with fs io operations

DirectoryConf

Struct for directory record in configuration for example: { “name”: “test_dir”, “content”: [], }

FileConf

Struct for file record in configuration for example: { “name”: “test.png”, “content”: “owiuewoiu3487343874”, }

FsTester

File System Tester used to create some configured structure in directory with files and links to them. FsTester can start custom test closure and remove fs structure after testing complete or fail.

Enums

ConfigEntry

FS Config entry enum

FileContent

File content can be present by three ways

FsTesterError

Configuration parse error