Documentation
¶
Index ¶
- func New(t testing.TB) (given TransactionOutlineFixture, then TransactionOutlineAssertion)
- type CreatedTransactionOutlineAssertion
- type ErrorCreationTransactionOutlineAssertion
- type OutputAssertion
- type SuccessfullyCreatedTransactionOutlineAssertion
- type TransactionOutlineAssertion
- type TransactionOutlineFixture
- type TransactionOutlinePaymailOutputAssertion
- type WithParseableBEEFTransactionOutlineAssertion
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(t testing.TB) (given TransactionOutlineFixture, then TransactionOutlineAssertion)
Types ¶
type CreatedTransactionOutlineAssertion ¶
type CreatedTransactionOutlineAssertion interface { WithNoError(err error) SuccessfullyCreatedTransactionOutlineAssertion WithError(err error) ErrorCreationTransactionOutlineAssertion }
type ErrorCreationTransactionOutlineAssertion ¶
type ErrorCreationTransactionOutlineAssertion interface {
ThatIs(expectedError error)
}
type OutputAssertion ¶
type OutputAssertion interface { HasBucket(bucket bucket.Name) OutputAssertion HasSatoshis(satoshis bsv.Satoshis) OutputAssertion HasLockingScript(lockingScript string) OutputAssertion IsDataOnly() OutputAssertion IsPaymail() TransactionOutlinePaymailOutputAssertion }
type SuccessfullyCreatedTransactionOutlineAssertion ¶
type SuccessfullyCreatedTransactionOutlineAssertion interface {
WithParseableBEEFHex() WithParseableBEEFTransactionOutlineAssertion
}
type TransactionOutlineAssertion ¶
type TransactionOutlineAssertion interface {
Created(transaction *outlines.Transaction) CreatedTransactionOutlineAssertion
}
func Then ¶
func Then(t testing.TB) TransactionOutlineAssertion
type TransactionOutlineFixture ¶
type TransactionOutlineFixture interface { NewTransactionOutlinesService() outlines.Service ExternalRecipientHost() tpaymail.PaymailHostFixture }
TransactionOutlineFixture is a test fixture - used for establishing environment for test.
func Given ¶
func Given(t testing.TB) (given TransactionOutlineFixture)
Given creates a new test fixture.
type TransactionOutlinePaymailOutputAssertion ¶
type TransactionOutlinePaymailOutputAssertion interface { HasReceiver(receiver string) TransactionOutlinePaymailOutputAssertion HasSender(sender string) TransactionOutlinePaymailOutputAssertion HasReference(reference string) TransactionOutlinePaymailOutputAssertion }
type WithParseableBEEFTransactionOutlineAssertion ¶
type WithParseableBEEFTransactionOutlineAssertion interface { HasOutputs(count int) WithParseableBEEFTransactionOutlineAssertion HasOutput(index int, assert func(OutputAssertion)) WithParseableBEEFTransactionOutlineAssertion Output(index int) OutputAssertion }
Click to show internal directories.
Click to hide internal directories.