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
.