[−][src]Module rustc_builtin_macros::test_harness

Structs

EntryPointCleaner

A folder used to remove any entry points (like fn main) because the harness generator will provide its own

Test
TestCtxt
TestHarnessGenerator

Functions

entry_point_type
generate_test_harness

Crawl over the crate, inserting test reexports and the test main function

get_test_runner
inject
is_test_case
mk_main

Creates a function item for use as the main function of a test build. This function will call the test_runner as specified by the crate attribute

mk_tests_slice

Creates a slice containing every test like so: &[&test1, &test2]