Trait schemer::testing::TestAdapter
[−]
[src]
pub trait TestAdapter: Adapter { fn mock(id: Uuid, dependencies: HashSet<Uuid>) -> Box<Self::MigrationType>; }
A trait required for running the generic test suite on an Adapter
.
Required Methods
fn mock(id: Uuid, dependencies: HashSet<Uuid>) -> Box<Self::MigrationType>
Construct a mock, no-op migration of the adapter's MigrationType
.
For convenience adapters can implement their migration traits on
TestMigration
and construct those here.