Macro schemer::test_schemer_adapter
source · macro_rules! test_schemer_adapter {
($constructor:expr) => { ... };
($setup:stmt, $constructor:expr) => { ... };
($setup:stmt, $constructor:expr, $($test_fn:ident),* $(,)*) => { ... };
}
Expand description
Test an Adapter
with the generic test suite.
Note that the adapter must also implement the TestAdapter
trait. This
should be done only for the testing configuration of the adapter’s crate,
as it is not necessary for normal behavior.
Examples
ⓘ
#[macro_use] extern crate schemer;
fn construct_my_adapter_test_fixture() -> MyAdapterType {
MyAdapterType {}
}
test_schemer_adapter!(construct_my_adapter_test_fixture());