Module

conformance

github.com/riducms/ridu/store/conformance — Reusable behavioral qualification suites for Ridu store adapters.

Types 1

  • type conformance.Factory

    Factory opens a clean store prepared for manifest. Implementations should register cleanup with t and fail the current test when setup cannot finish.

Functions 3

  • conformance.Run()

    Run executes the shared semantic contract for one adapter. Adapter packages should invoke Run from their own tests so their ordinary integration setup remains responsible for schema creation and external-service availability.

  • conformance.LockedUpdate()

    LockedUpdate performs a direct store update the way the operation engine does: it reads the update's document with Request.CurrentRequest and supplies that document as the required Current.

  • conformance.RunWriteGuards()

    RunWriteGuards verifies the stored-version guards of the official adapters: an update refuses a Current that no longer describes the stored row, and saving revision 1 starts a document's version history, so a document created with the ID of a removed one never inherits its versions.

Interfaces 1