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 callsiocore::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 callsiocore::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