Skip to main content

Module discovery

Module discovery 

Source

Re-exportsΒ§

use core::panic; πŸ”’
use core::panic; πŸ”’
use std::collections::HashSet; πŸ”’
use std::io; πŸ”’
use std::io::ErrorKind; πŸ”’
use std::sync::Arc; πŸ”’
use std::time::SystemTime; πŸ”’
use std::fs; πŸ”’
use std::vec; πŸ”’
use std::vec; πŸ”’
use build_helper::git::get_git_modified_files; πŸ”’
use build_helper::git::get_git_untracked_files; πŸ”’
use camino::Utf8Component; πŸ”’
use camino::Utf8Path; πŸ”’
use camino::Utf8PathBuf; πŸ”’
use rayon::iter::ParallelBridge; πŸ”’
use rayon::iter::ParallelIterator; πŸ”’
use tracing::debug; πŸ”’
use walkdir::WalkDir; πŸ”’
use crate::common::CodegenBackend; πŸ”’
use crate::common::Config; πŸ”’
use crate::common::Debugger; πŸ”’
use crate::common::TestMode; πŸ”’
use crate::common::TestPaths; πŸ”’
use crate::common::UI_EXTENSIONS; πŸ”’
use crate::common::expected_output_path; πŸ”’
use crate::common::output_base_dir; πŸ”’
use crate::common::output_relative_path; πŸ”’
use crate::directives; πŸ”’
use crate::directives::AuxProps; πŸ”’
use crate::directives::DirectivesCache; πŸ”’
use crate::directives::EarlyProps; πŸ”’
use crate::directives::FileDirectives; πŸ”’
use crate::directives::make_test_description; πŸ”’
use crate::executor::CollectedTest; πŸ”’
use crate::executor::TestVariant; πŸ”’
use crate::fatal; πŸ”’
use crate::runtest; πŸ”’
use crate::warning; πŸ”’

StructsΒ§

Stamp πŸ”’
The maximum of a set of file-modified timestamps.
TestCollector πŸ”’
Mutable state used during test collection.
TestCollectorCx πŸ”’
Read-only context data used during test collection.

FunctionsΒ§

check_for_overlapping_test_paths πŸ”’
Checks that test discovery didn’t find any tests whose name stem is a prefix of some other tests’s name.
collect_and_make_tests πŸ”’
Creates test structures for every test/revision in the test suite directory.
collect_tests_from_dir πŸ”’
Recursively scans a directory to find test files and create test structures that will be handed over to the executor.
common_inputs_stamp πŸ”’
Returns the most recent last-modified timestamp from among the input files that are considered relevant to all tests (e.g. the compiler, std, and compiletest itself).
discover_tests πŸ”’
Called by main after the config has been parsed.
files_related_to_test πŸ”’
Returns a list of files that, if modified, would cause this test to no longer be up-to-date.
is_test πŸ”’
Returns true if file_name looks like a proper test file name.
is_up_to_date πŸ”’
Checks whether a particular test/revision is β€œup-to-date”, meaning that no relevant files/settings have changed since the last time the test succeeded.
make_test πŸ”’
For a single test file, creates one or more test structures (one per revision) that can be handed over to the executor to run, possibly in parallel.
make_test_name_and_filterable_path πŸ”’
Creates a name for this test/revision that can be handed over to the executor.
modified_tests πŸ”’
Returns a list of modified/untracked test files that should be run when the --only-modified flag is in use.
stamp_file_path πŸ”’
The path of the stamp file that gets created or updated whenever a particular test completes successfully.