internal

package
v1.7.6 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2022 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Buffer

func Buffer(t *testing.T, v interface{}) *bytes.Buffer

func CountAccounts added in v1.3.2

func CountAccounts(handler http.Handler, query url.Values) *httptest.ResponseRecorder

func CountTransactions added in v1.3.2

func CountTransactions(handler http.Handler, query url.Values) *httptest.ResponseRecorder

func Decode

func Decode(t *testing.T, reader io.Reader, v interface{}) bool

func DecodeCursorResponse

func DecodeCursorResponse[T any](t *testing.T, reader io.Reader) *sharedapi.Cursor[T]

func DecodeSingleResponse

func DecodeSingleResponse[T any](t *testing.T, reader io.Reader) (T, bool)

func Encode

func Encode(t *testing.T, v interface{}) []byte

func GetAccount

func GetAccount(handler http.Handler, addr string) *httptest.ResponseRecorder

func GetAccounts

func GetAccounts(handler http.Handler, query url.Values) *httptest.ResponseRecorder

func GetBalances added in v1.6.0

func GetBalances(handler http.Handler, query url.Values) *httptest.ResponseRecorder

func GetBalancesAggregated added in v1.6.0

func GetBalancesAggregated(handler http.Handler, query url.Values) *httptest.ResponseRecorder

func GetInfo

func GetInfo(handler http.Handler) *httptest.ResponseRecorder

func GetStats

func GetStats(handler http.Handler) *httptest.ResponseRecorder

func GetStore added in v1.3.2

func GetStore(t *testing.T, driver storage.Driver, ctx context.Context) storage.Store

func GetTransaction

func GetTransaction(handler http.Handler, id uint64) *httptest.ResponseRecorder

func GetTransactions

func GetTransactions(handler http.Handler, query url.Values) *httptest.ResponseRecorder

func LoadMapping

func LoadMapping(handler http.Handler) *httptest.ResponseRecorder

func NewGetOnLedger added in v1.6.0

func NewGetOnLedger(handler http.Handler, path string) *httptest.ResponseRecorder

func NewPostOnLedger added in v1.6.0

func NewPostOnLedger(t *testing.T, handler http.Handler, path string, body any) *httptest.ResponseRecorder

func NewRequest

func NewRequest(method, path string, body io.Reader) (*http.Request, *httptest.ResponseRecorder)

func NewRequestOnLedger added in v1.6.0

func NewRequestOnLedger(t *testing.T, handler http.Handler, path string, body any) *httptest.ResponseRecorder

func PostAccountMetadata

func PostAccountMetadata(t *testing.T, handler http.Handler, addr string, m core.Metadata) *httptest.ResponseRecorder

func PostScript added in v1.3.2

func PostScript(t *testing.T, handler http.Handler, s core.Script, query url.Values) *httptest.ResponseRecorder

func PostTransaction

func PostTransaction(t *testing.T, handler http.Handler, tx core.TransactionData) *httptest.ResponseRecorder

func PostTransactionBatch added in v1.6.0

func PostTransactionBatch(t *testing.T, handler http.Handler, txs core.Transactions) *httptest.ResponseRecorder

func PostTransactionMetadata

func PostTransactionMetadata(t *testing.T, handler http.Handler, id uint64, m core.Metadata) *httptest.ResponseRecorder

func PostTransactionPreview added in v1.1.0

func PostTransactionPreview(t *testing.T, handler http.Handler, tx core.TransactionData) *httptest.ResponseRecorder

func RevertTransaction added in v1.6.0

func RevertTransaction(handler http.Handler, id uint64) *httptest.ResponseRecorder

func RunSubTest

func RunSubTest(t *testing.T, name string, opts ...fx.Option)

func RunTest

func RunTest(t *testing.T, options ...fx.Option)

func SaveMapping

func SaveMapping(t *testing.T, handler http.Handler, m core.Mapping) *httptest.ResponseRecorder

Types

This section is empty.

Jump to

Keyboard shortcuts

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