Documentation
¶
Index ¶
- func Buffer(t *testing.T, v interface{}) *bytes.Buffer
- func CountAccounts(handler http.Handler, query url.Values) *httptest.ResponseRecorder
- func CountTransactions(handler http.Handler, query url.Values) *httptest.ResponseRecorder
- func Decode(t *testing.T, reader io.Reader, v interface{}) bool
- func DecodeCursorResponse[T any](t *testing.T, reader io.Reader) *sharedapi.Cursor[T]
- func DecodeSingleResponse[T any](t *testing.T, reader io.Reader) (T, bool)
- func Encode(t *testing.T, v interface{}) []byte
- func GetAccount(handler http.Handler, addr string) *httptest.ResponseRecorder
- func GetAccounts(handler http.Handler, query url.Values) *httptest.ResponseRecorder
- func GetBalances(handler http.Handler, query url.Values) *httptest.ResponseRecorder
- func GetBalancesAggregated(handler http.Handler, query url.Values) *httptest.ResponseRecorder
- func GetInfo(handler http.Handler) *httptest.ResponseRecorder
- func GetLedgerInfo(handler http.Handler) *httptest.ResponseRecorder
- func GetLedgerLogs(handler http.Handler, query url.Values) *httptest.ResponseRecorder
- func GetLedgerStats(handler http.Handler) *httptest.ResponseRecorder
- func GetLedgerStore(t *testing.T, driver storage.Driver[ledger.Store], ctx context.Context) ledger.Store
- func GetTransaction(handler http.Handler, id uint64) *httptest.ResponseRecorder
- func GetTransactions(handler http.Handler, query url.Values) *httptest.ResponseRecorder
- func LoadMapping(handler http.Handler) *httptest.ResponseRecorder
- func NewGetOnLedger(handler http.Handler, path string) *httptest.ResponseRecorder
- func NewPostOnLedger(t *testing.T, handler http.Handler, path string, body any) *httptest.ResponseRecorder
- func NewRequest(method, path string, body io.Reader) (*http.Request, *httptest.ResponseRecorder)
- func NewRequestOnLedger(t *testing.T, handler http.Handler, path string, body any) *httptest.ResponseRecorder
- func PostAccountMetadata(t *testing.T, handler http.Handler, addr string, m core.Metadata) *httptest.ResponseRecorder
- func PostScript(t *testing.T, handler http.Handler, s core.ScriptData, query url.Values) *httptest.ResponseRecorder
- func PostTransaction(t *testing.T, handler http.Handler, payload controllers.PostTransaction, ...) *httptest.ResponseRecorder
- func PostTransactionBatch(t *testing.T, handler http.Handler, txs core.Transactions) *httptest.ResponseRecorder
- func PostTransactionMetadata(t *testing.T, handler http.Handler, id uint64, m core.Metadata) *httptest.ResponseRecorder
- func RevertTransaction(handler http.Handler, id uint64, disableChecks bool) *httptest.ResponseRecorder
- func RunTest(t *testing.T, options ...fx.Option)
- func SaveMapping(t *testing.T, handler http.Handler, m core.Mapping) *httptest.ResponseRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CountAccounts ¶ added in v1.3.2
func CountTransactions ¶ added in v1.3.2
func DecodeCursorResponse ¶
func DecodeSingleResponse ¶
func GetAccount ¶
func GetAccount(handler http.Handler, addr string) *httptest.ResponseRecorder
func GetAccounts ¶
func GetBalances ¶ added in v1.6.0
func GetBalancesAggregated ¶ added in v1.6.0
func GetLedgerInfo ¶ added in v1.9.0
func GetLedgerInfo(handler http.Handler) *httptest.ResponseRecorder
func GetLedgerLogs ¶ added in v1.9.0
func GetLedgerStats ¶ added in v1.9.0
func GetLedgerStats(handler http.Handler) *httptest.ResponseRecorder
func GetLedgerStore ¶ added in v1.8.0
func GetTransaction ¶
func GetTransaction(handler http.Handler, id uint64) *httptest.ResponseRecorder
func GetTransactions ¶
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 NewRequest ¶
func NewRequestOnLedger ¶ added in v1.6.0
func PostAccountMetadata ¶
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 RevertTransaction ¶ added in v1.6.0
func SaveMapping ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.