klauthed-testing 0.4.0

Test utilities for klauthed services, used as a dev-dependency.
Documentation

klauthed-testing

Test utilities for klauthed services — a small toolkit pulled in as a dev-dependency to make unit and integration tests deterministic and terse. It builds on the klauthed-core primitives, so fixtures use the same types as production.

  • clock — a fixed/advanceable clock (re-exporting FixedClock) plus terse constructors like fixed_clock(ms) and epoch_clock().
  • ids — deterministic id generation for stable test data.
  • context — pre-built RequestContext fixtures.
  • assertions — domain-aware assertion helpers.
  • repository — an in-memory repository helper for exercising store traits.
[dev-dependencies]
klauthed-testing = { path = "../klauthed-testing" }

Part of the klauthed rust-libraries workspace. Browse the API: cargo doc -p klauthed-testing --open.

License

Dual-licensed under MIT or Apache-2.0, at your option.