Documentation
¶
Overview ¶
Package payforgetest holds conformance suites for the ports a host implements: run them against your Store and EntitlementSink to check they behave the way the lifecycle relies on. Sales and Sellers check the sinks for refunds and connected accounts.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Sales ¶
func Sales(t *testing.T, make func(t *testing.T) (s payforge.SaleSink, get func(chargeID string) (payforge.SaleRefund, bool)))
Sales checks a payforge.SaleSink. make returns a fresh sink and a function that reads back what the host holds for a charge.
func Sellers ¶
func Sellers(t *testing.T, make func(t *testing.T) (s payforge.SellerSink, get func(accountID string) (payforge.SellerAccount, bool)))
Sellers checks a payforge.SellerSink. make returns a fresh sink and a function that reads back what the host holds for a connected account.
func Sink ¶
func Sink(t *testing.T, make func(t *testing.T) (s payforge.EntitlementSink, get func(subject string) (payforge.Entitlement, bool)))
Sink checks a payforge.EntitlementSink. make returns a fresh sink and a function that reads back the entitlement the host holds for an account.
func Store ¶
func Store(t *testing.T, make func(t *testing.T) (s payforge.Store, link func(customerID, subject string)))
Store checks a payforge.Store. make returns a fresh, empty store and a function that records the host's account for a provider customer, which the Store interface leaves to the host.
Types ¶
This section is empty.