Crate iocore_test

Source
Expand description

iocore_test is a testing tool for crates that utilize the iocore crate.

Macros§

current_source_file
directory_path
directory_path returns the path to the parent directory of the calling test file, if called with an argument then calls iocore::Path::join on the directory path (creates directory if necessary)
folder_path
folder_path returns the path to the parent folder of the calling test file, if called with an argument then calls iocore::Path::join on the folder path (creates folder if necessary)
path_to_test_directory
path_to_test_file returns the path to a test directory as the test file
path_to_test_file
path_to_test_file returns the path to an empty file within the same dir as the calling test file, creates parent directories if necessary and deletes the file if exists
path_to_test_folder
path_to_test_file returns the path to a test directory as the test file
test_directory_parent_path
test_directory_parent_path returns the parent directory of the test file which calls it joined with the given “name” (creates the directory if necessary)
test_folder_parent_path
test_folder_parent_path returns the parent folder of the test file which calls it joined with the given “name” (creates the directory if necessary)
test_name
test_name returns the name of the test function

Functions§

seq_bytes
seq_bytes returns a Vec<u8> containing a sequence of u8 bytes and applying the remainder operation if count is longer than u8::MAX