typedefs: Split tests that require std into a separate submodule.
@@ -388,9 +388,16 @@ macro_rules! construct_secret_key {
test_from_slice!($name, $lower_bound, $upper_bound);
test_as_bytes!($name, $lower_bound, $upper_bound, unprotected_as_bytes);
test_get_length!($name, $lower_bound, $upper_bound, unprotected_as_bytes);
+
+ #[cfg(test)]
+ #[cfg(feature = "safe_api")]
+ mod tests_with_std {
+ use super::*;
+
test_generate!($name, $gen_length);
test_omitted_debug!($name, $upper_bound);
}
+ }
);
}
@@ -472,8 +479,15 @@ macro_rules! construct_public {
test_from_slice!($name, $lower_bound, $upper_bound);
test_as_bytes!($name, $lower_bound, $upper_bound, as_ref);
test_get_length!($name, $lower_bound, $upper_bound, as_ref);
+
+ #[cfg(test)]
+ #[cfg(feature = "safe_api")]
+ mod tests_with_std {
+ use super::*;
+
test_generate!($name, $gen_length);
}
+ }
);
}
@@ -511,8 +525,15 @@ macro_rules! construct_tag {
test_from_slice!($name, $lower_bound, $upper_bound);
test_as_bytes!($name, $lower_bound, $upper_bound, unprotected_as_bytes);
test_get_length!($name, $lower_bound, $upper_bound, unprotected_as_bytes);
+
+ #[cfg(test)]
+ #[cfg(feature = "safe_api")]
+ mod tests_with_std {
+ use super::*;
+
test_omitted_debug!($name, $upper_bound);
}
+ }
);
}
