Crates.io | interpolate_name |
lib.rs | interpolate_name |
version | 0.2.4 |
source | src |
created_at | 2018-08-07 02:37:21.308109 |
updated_at | 2023-09-12 13:08:18.7746 |
description | Simple procedural macro attribute for repetitive tests |
homepage | |
repository | https://github.com/lu-zero/interpolate_name |
max_upload_size | |
id | 77881 |
size | 10,923 |
#[macro_use]
extern crate interpolate_name;
use interpolate_name::interpolate_test;
#[interpolate_test(foo, "foo")]
#[interpolate_test(bar, "bar")]
#[interpolate_test(baz, "baz")]
fn testme(f: &str) {
println!("testing {}", f);
}
Produces
running 3 tests
test testme_baz ... ok
test testme_bar ... ok
test testme_foo ... ok