// see also 'tests/ok/visibility_2' #[macro_use] extern crate sif_macro; pub mod a { #[parameterized] #[case(Some(0))] #[case(None)] pub(in crate::b) fn my_test(v: Option) {} } mod b { #[cfg(test)] fn call() { a::my_test::case_0(); // this is ok } } fn main() { if cfg!(test) { a::my_test::case_0(); // this isn't ok } }