Module rustc_builtin_macros::test_harness

source ยท

Structsยง

Functionsยง

  • entry_point_type ๐Ÿ”’
  • Crawl over the crate, inserting test reexports and the test main function
  • get_test_name ๐Ÿ”’
  • get_test_runner ๐Ÿ”’
  • Traverse the crate, collecting all the test functions, eliding any existing main functions, and synthesizing a main test harness
  • 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]