package
0.29.0-beta.rc2
Repository: https://github.com/lightninglabs/loop.git
Documentation: pkg.go.dev
# Functions
CreateKey returns a deterministically generated key pair.
DumpGoroutines dumps all currently running goroutines.
EncodePayReq encodes a zpay32 invoice with a fixed key.
GetDestAddr deterministically generates a sweep address for testing.
GetInvoice creates a testnet payment request with the given parameters.
Guard implements a test level timeout.
NewContext instanties a new common test context.
NewMockLnd returns a new instance of LndMockServices that can be used in unit tests.
WithGuardTimeout sets timeout for the guard.
# Variables
DefaultMockFee is the default value we use for fee estimates when no values are set for specific conf targets.
ErrTimeout is returned on timeout.
Timeout is the default timeout when tests wait for something to happen.
# Structs
ConfRegistration contains registration details.
Context contains shared test context functions.
GuardConfig stores options for Guard function.
LndMockServices provides a full set of mocked lnd services.
PaymentChannelMessage is the data that passed through SendPaymentChannel.
RouterPaymentChannelMessage is the data that passed through RouterSendPaymentChannel.
SignOutputRawRequest contains input data for a tx signing request.
SingleInvoiceSubscription contains the single invoice subscribers.
SpendRegistration contains registration details.
TrackPaymentMessage is the data that passed through TrackPaymentChannel.
# Type aliases
GuardOption is an option for Guard function.