Help us shape the future of Go! Take the 2026 Go Developer Survey

testabilities

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PaymailCapabilityCallAssertions

type PaymailCapabilityCallAssertions interface {
	WithRequestJSONMatching(expectedTemplateFormat string, params map[string]any)
}

type PaymailClientFixture

type PaymailClientFixture interface {
	NewPaymailClientService() paymailclient.ServiceClient
	MockedPaymailClient() *paymailmock.PaymailClientMock
	ExternalPaymailHost() PaymailHostFixture
}

PaymailClientFixture is a test fixture - used for establishing environment for test.

func Given

func Given(t testing.TB, domains ...string) (given PaymailClientFixture)

Given creates a new test fixture.

func GivenWithMockClient

func GivenWithMockClient(t testing.TB, mockClient *paymailmock.PaymailClientMock) (given PaymailClientFixture)

type PaymailExternalAssertions

type PaymailExternalAssertions interface {
	ReceivedBeefTransaction(sender, beef, reference string)
	ReceivedP2PDestinationRequest(satoshis bsv.Satoshis) paymailmock.MockedP2PDestinationResponse
}

type PaymailHostFixture

type PaymailHostFixture interface {
	MockedPaymailClient() *paymailmock.PaymailClientMock
	WillRespondWithP2PDestinationsWithSats(satoshis bsv.Satoshis, moreSatoshis ...bsv.Satoshis)
	WillRespondWithBasicCapabilities()
	WillRespondWithP2PCapabilities()
	WillRespondWithP2PWithBEEFCapabilities()
	WillRespondWithNotFoundOnCapabilities()
	WillRespondWithErrorOnCapabilities()
	WillRespondOnCapability(capabilityName string) *paymailmock.CapabilityMock
	WillRespondWithNotFoundOnP2PDestination()
	WillRespondWithErrorOnP2PDestinations()
}

PaymailHostFixture is a test fixture - used for setting up paymail host responses for test.

Jump to

Keyboard shortcuts

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