Documentation
¶
Index ¶
- func ApplyUpdates(t *testing.T, all []*paymentrequestpb.PaymentRequestUpdate) *paymentrequestpb.PaymentRequestMetadata
- func RunServerTests(t *testing.T, s paymentrequest.Store, teardown func())
- func RunStoreTests(t *testing.T, s paymentrequest.Store, teardown func())
- func RunWorkerTests(t *testing.T, s paymentrequest.Store, teardown func())
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyUpdates ¶ added in v1.38.0
func ApplyUpdates(t *testing.T, all []*paymentrequestpb.PaymentRequestUpdate) *paymentrequestpb.PaymentRequestMetadata
ApplyUpdates applies all, in order and none missing, to a request held by no one before, the way the proto tells a client to (see paymentrequestpb.PaymentRequestUpdate), and returns the result. The first must be the request's creation; each after it must be the change at the next version, and must apply cleanly to the copy so far.
func RunServerTests ¶
func RunServerTests(t *testing.T, s paymentrequest.Store, teardown func())
RunServerTests runs the shared paymentrequest.Server test suite against s; teardown resets it between tests. Every test builds its own in-memory chat and account stores.
func RunStoreTests ¶
func RunStoreTests(t *testing.T, s paymentrequest.Store, teardown func())
RunStoreTests runs the shared paymentrequest.Store test suite against s; teardown resets it between tests.
func RunWorkerTests ¶
func RunWorkerTests(t *testing.T, s paymentrequest.Store, teardown func())
RunWorkerTests runs the shared paymentrequest.Worker test suite against s; teardown resets it between tests.
Types ¶
This section is empty.