test-casing 0.1.3

Parameterized test cases and test decorators
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use test_casing::test_casing;

#[test_casing(2, ["test", "this"].map(String::from))]
fn tested_function(#[map] _arg: &str) {
    // Does nothing
}

#[test_casing(2, ["test", "this"].map(String::from))]
fn other_tested_function(#[map(mut)] _arg: &str) {
    // Does nothing
}

#[test_casing(2, ["test", "this"].map(String::from))]
fn another_tested_function(#[map(ref = "String::as_str")] _arg: &str) {
    // Does nothing
}

fn main() {}