Expand description
The expansion from a test function to the appropriate test struct for libtest Ideally, this code would be in libtest but for efficiency and error messages it lives here.
Enums§
- Should
Panic 🔒 - Test
Type 🔒
Functions§
- check_
bench_ 🔒signature - check_
test_ 🔒signature - expand_
bench 🔒 - expand_
test 🔒 - expand_
test_ 🔒case - #test_case is used by custom test authors to mark tests When building for test, it needs to make the item public and gensym the name Otherwise, we’ll omit the item. This behavior means that any item annotated with #test_case is never addressable.
- expand_
test_ 🔒or_ bench - get_
location_ 🔒info - item_
path 🔒 - not_
testable_ 🔒error - should_
ignore 🔒 - should_
ignore_ 🔒message - should_
panic 🔒 - test_
type 🔒 - Attempts to determine the type of test.
Since doctests are created without macro expanding, only possible variants here
are
UnitTest
,IntegrationTest
orUnknown
.