tests

package
v1.38.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 30, 2026 License: MIT Imports: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyUpdates added in v1.38.0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL