## Module paths

Source
Expand description

Access common paths and manipulate the filesystem

## Structs§

TestIdGuard
  See `init_root`

## Constants§

TEST_DIR 🔒
TEST_ID 🔒

## Statics§

CARGO_INTEGRATION_TEST_DIR 🔒
GLOBAL_ROOT 🔒

## Traits§

CargoPathExt
  Common path and file operations

## Functions§

build_dir_ignored_path_patterns 🔒
  The paths to ignore when `CargoPathExt::assert_build_dir_layout` is called
cargo_home
  Path to the current test’s `$CARGO_HOME`
do_op 🔒
get_lib_extension
  See `get_lib_filename` for more details
get_lib_filename
  Get the filename for a library.
get_lib_prefix
  See `get_lib_filename` for more details
global_root
  Path to the parent directory of all test `root`s
home
  Path to the current test’s `$HOME`
init_root
  For test harnesses like `crate::cargo_test`
log_dir
  Path to the current test’s `$CARGO_LOG`
log_file
  Path to the current test’s `$CARGO_LOG` file
root
  Path to the test’s filesystem scratchpad
set_global_root 🔒
sysroot
  Path to `rustc`s sysroot
test_dir
  This takes the test location (std::file!() should be passed) and the test name and outputs the location the test should be places in, inside of `target/tmp/cit`