diff options
Diffstat (limited to 'crates/test_utils/src')
-rw-r--r-- | crates/test_utils/src/marks.rs | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/crates/test_utils/src/marks.rs b/crates/test_utils/src/marks.rs index c3185e860..f20fb978e 100644 --- a/crates/test_utils/src/marks.rs +++ b/crates/test_utils/src/marks.rs | |||
@@ -30,12 +30,6 @@ use std::sync::atomic::{AtomicUsize, Ordering}; | |||
30 | 30 | ||
31 | #[macro_export] | 31 | #[macro_export] |
32 | macro_rules! tested_by { | 32 | macro_rules! tested_by { |
33 | ($ident:ident; force) => {{ | ||
34 | { | ||
35 | // sic! use call-site crate | ||
36 | crate::marks::$ident.fetch_add(1, std::sync::atomic::Ordering::SeqCst); | ||
37 | } | ||
38 | }}; | ||
39 | ($ident:ident) => {{ | 33 | ($ident:ident) => {{ |
40 | #[cfg(test)] | 34 | #[cfg(test)] |
41 | { | 35 | { |
@@ -49,10 +43,7 @@ macro_rules! tested_by { | |||
49 | macro_rules! covers { | 43 | macro_rules! covers { |
50 | // sic! use call-site crate | 44 | // sic! use call-site crate |
51 | ($ident:ident) => { | 45 | ($ident:ident) => { |
52 | $crate::covers!(crate::$ident) | 46 | let _checker = $crate::marks::MarkChecker::new(&crate::marks::$ident); |
53 | }; | ||
54 | ($krate:ident :: $ident:ident) => { | ||
55 | let _checker = $crate::marks::MarkChecker::new(&$krate::marks::$ident); | ||
56 | }; | 47 | }; |
57 | } | 48 | } |
58 | 49 | ||