Crates.io | generic-tests |
lib.rs | generic-tests |
version | 0.1.3 |
source | src |
created_at | 2020-06-24 02:17:51.001948 |
updated_at | 2024-11-08 08:19:55.531865 |
description | Procedural macro to define tests and benchmarks generically |
homepage | |
repository | https://github.com/mzabaluev/generic-tests/ |
max_upload_size | |
id | 257429 |
size | 71,886 |
The procedural attribute macro provided by this crate allows the test writer to reuse code between test cases or benchmarks that use the same test protocol with different types under test. As in general programming with Rust, this is achieved by using generic parameters and trait bounds. The specific test cases are expanded in multiple submodules with type arguments provided in another attribute.
async
tests.Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.