mirror of
https://github.com/hanzo-fi/payments.git
synced 2026-10-30 20:31:20 +00:00
Shared helpers (bootstrap gate/logger, pinned-ID subsequence filter,
idempotency refs, amount/ordering assertions) used by the per-connector
contract tests in {ce,ee}/plugins/<connector>/client/contract_test.go.
Gated behind the `contract` build tag, so the package is compiled only
by `go test -tags contract` runs and never in production builds.
It lives in pkg/domain because CE plugins are separate Go modules that
cannot import the root module's internal/ tree, and every plugin already
depends on pkg/domain; a release containing this package lets the
contract-test branch drop its temporary per-plugin local replaces.
Constraint: CE plugin modules pin published pkg/domain versions (no local replace)
Rejected: per-plugin helper copies | 10+ duplicated files to keep in sync
Rejected: own nested module | new module to tag/maintain for ~115 lines of test helpers
Confidence: high
Scope-risk: narrow
Co-authored-by: fabrice guery <[email protected]>