internal

package
v1.11.2 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: MIT Imports: 25 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 GetLedgerInfo added in v1.9.0

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

func GetLedgerLogs added in v1.9.0

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

func GetLedgerStats added in v1.9.0

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

func GetLedgerStore added in v1.8.0

func GetLedgerStore(t *testing.T, driver storage.Driver[ledger.Store], ctx context.Context) ledger.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.ScriptData, query url.Values) *httptest.ResponseRecorder

func PostTransaction

func PostTransaction(t *testing.T, handler http.Handler, payload controllers.PostTransaction, preview bool) *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 RevertTransaction added in v1.6.0

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

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