conformance_tests!() { /* proc-macro */ }Expand description
Define tests for types implementing the
Conformance trait.
Generates test functions that verify implementations match expected digest
values stored in conformance.toml.
§Usage
ⓘ
conformance_tests! {
Vec<u8>, // Uses default (65536 cases)
Vec<u16> => 100, // Explicit case count
BTreeMap<u32, String> => 100,
}This generates test functions named after the type:
test_vec_u8test_vec_u16test_b_tree_map_u32_string
The type name is used as the key in the TOML file.