Lines Matching defs:tests
3 //! Procedural macro to run KUnit tests using a user-space like syntax.
42 // Get the functions set as tests. Search for `[test]` -> `fn`.
44 let mut tests = Vec::new();
51 // Collect attributes because we need to find which are tests. We also
52 // need to copy `cfg` attributes so tests can be conditionally enabled.
64 tests.push((test_name, attributes.remove("cfg").unwrap_or_default()))
85 // mod tests {
116 let num_tests = tests.len();
117 for (test, cfg_attr) in tests {
119 // Append any `cfg` attributes the user might have written on their tests so we don't