parameterized-macro 3.0.0

Attribute macro crate for parameterized tests.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// see also 'tests/fail/on_visibility.rs'

#[macro_use]
extern crate parameterized_macro;

pub mod a {
    #[parameterized(v = { Some(- 1), None })]
    pub(in crate::b) fn my_test(v: Option<i32>) {}
}

mod b {
    #[cfg(test)]
    fn call() {
        a::my_test::case_0(); // this is ok
    }
}

fn main() {}