mfm-machine-test-support 0.1.0

Shared contract tests and observability helpers for MFM machine backends
Documentation
  • Coverage
  • 100%
    4 out of 4 items documented1 out of 4 items with examples
  • Size
  • Source code size: 32.36 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 521.45 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 49s Average build duration of successful builds.
  • all releases: 49s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • willyrgf/mfm
    8 5 2
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • willyrgf

mfm-machine-test-support

Shared contract tests and observability helpers for mfm-machine backends.

Use this crate when implementing a new EventStore or ArtifactStore and you want the same conformance checks that the built-in storage crates run in CI.

Example

use mfm_machine::stores::ArtifactStore;
use mfm_machine_test_support::{artifact_store_contract_tests, init_test_observability};

async fn assert_backend(store: &dyn ArtifactStore) {
    init_test_observability();
    artifact_store_contract_tests(store).await;
}