Mediate.Conformance.Seed behaviour (mediate_conformance v0.1.0)

Copy Markdown View Source

How the conformance template makes an adapter agree with a population, for an adapter whose state is not the world's own tables. seed/1 runs after every write of a population through the seam. An adapter that reads the tables needs no seed module. outage/0 makes the adapter's engine unreachable for the rest of the test. The fail-closed case exists only for a template given outage:.

Summary

Callbacks

Make the engine unreachable for the rest of the test.

Make the adapter's state agree with the population, from scratch.

Callbacks

outage()

(optional)
@callback outage() :: :ok

Make the engine unreachable for the rest of the test.

seed(t)

@callback seed(Mediate.Conformance.World.t()) :: :ok

Make the adapter's state agree with the population, from scratch.