internal

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2022 License: MIT Imports: 28 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 *testing.T, reader io.Reader, targetType interface{}) *sharedapi.Cursor

func DecodeSingleResponse

func DecodeSingleResponse(t *testing.T, reader io.Reader, v interface{}) 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 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 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 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 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 RunSubTest

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

func RunTest

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

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