Trait TestAdapter

Source
pub trait TestAdapter: Adapter {
    // Required method
    fn mock(id: Uuid, dependencies: HashSet<Uuid>) -> Box<Self::MigrationType>;
}
Expand description

A trait required for running the generic test suite on an Adapter.

Required Methods§

Source

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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§