[][src]Crate fungus

Modules

assert

All essential symbols for testing in a simple consumable way

core
enc
errors
net
prelude

All essential symbols in a simple consumable way

sys

Macros

assert_dir

Assert that a directdory exists

assert_file

Assert that a file exists

assert_no_dir

Assert that a directory doesn't exists

assert_no_file

Assert that a file doesn't exists

assert_setup

Call the setup function created by create_test_setup_func! using a the test function name and a default root value tests/temp that can be optionally overrode.

cfgblock

Provides the ability to define #[cfg] statements for multiple items

create_test_setup_func

Create the test setup function to be called in tests to disable RUST_BACKTRACE and create a directory to work in for a given test. This is very useful for manipulating files in a thread safe space.

defer

Ensure the given closure is executed once the surrounding scope closes despite panics. Inspired by Golang's defer, Java's finally and Ruby's ensure.

function

Expands to a string literal of the current function's name similar to the venerable file! or line! https://github.com/rust-lang/rfcs/pull/1719.

Enums

FuError

Define common error wrapper type

Type Definitions

FuResult

Result<T> provides a simplified result type with a common error type