internal

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2022 License: MIT Imports: 18 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 Decode

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

func DecodeCursorResponse

func DecodeCursorResponse(t *testing.T, reader io.Reader, targetType interface{}) *query.Cursor

func DecodeSingleResponse

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

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) *httptest.ResponseRecorder

func GetInfo

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

func GetStats

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

func GetTransaction

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

func GetTransactions

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

func LoadMapping

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

func NewRequest

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

func PostAccountMetadata

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

func PostTransaction

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

func PostTransactionMetadata

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

func RunSubTest

func RunSubTest(t *testing.T, name string, fn interface{})

func RunTest

func RunTest(t *testing.T, fn interface{})

func SaveMapping

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

func WithNewModule

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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