aboutsummaryrefslogtreecommitdiff
path: root/crates/test_utils/src
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-05-20 10:54:57 +0100
committerAleksey Kladov <[email protected]>2020-05-20 12:00:50 +0100
commit5258c817f78ecdfe12d7eec44ab3169134cba71d (patch)
treefc9f085a5a491d48d24166e7d1cb267f2dc2cd20 /crates/test_utils/src
parentd18d1c05949eaa890e7bb75710816a61b09a93dd (diff)
Remove cross-crate marks
They create quite a bit of friction. Really, we should just move the tests to the same crate, rather than paper over existing split.
Diffstat (limited to 'crates/test_utils/src')
-rw-r--r--crates/test_utils/src/marks.rs11
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]
32macro_rules! tested_by { 32macro_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 {
49macro_rules! covers { 43macro_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