Macro schemer::test_schemer_adapter
[−]
[src]
macro_rules! test_schemer_adapter { ($constructor:expr) => { ... }; ($setup:stmt, $constructor:expr) => { ... }; ($setup:stmt, $constructor:expr, $($test_fn:ident),* $(,)*) => { ... }; }
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
⚠Be careful when using this code, it's not being tested!
#[macro_use] extern crate schemer; fn construct_my_adapter_test_fixture() -> MyAdapterType { MyAdapterType {} } test_schemer_adapter!(construct_my_adapter_test_fixture());