mocks

package
v1.0.0-beta05 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2023 License: Apache-2.0 Imports: 4 Imported by: ? 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

View Source
const (
	GetAccountFunc            = "GetAccount"
	SendSignedTransactionFunc = "SendSignedTransaction"
	GetCollectionFunc         = "GetCollection"
	GetTransactionResultFunc  = "GetTransactionResult"
	GetEventsFunc             = "GetEvents"
	GetLatestBlockFunc        = "GetLatestBlock"
	GetBlockByHeightFunc      = "GetBlockByHeight"
	GetBlockByIDFunc          = "GetBlockByID"
	ExecuteScriptFunc         = "ExecuteScript"
	GetTransactionFunc        = "GetTransaction"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type TestGateway

type TestGateway struct {
	Mock                           *Gateway
	SendSignedTransaction          *mock.Call
	GetAccount                     *mock.Call
	GetCollection                  *mock.Call
	GetTransactionResult           *mock.Call
	GetEvents                      *mock.Call
	GetLatestBlock                 *mock.Call
	GetBlockByHeight               *mock.Call
	GetBlockByID                   *mock.Call
	ExecuteScript                  *mock.Call
	GetTransaction                 *mock.Call
	GetTransactionResultsByBlockID *mock.Call
	GetTransactionsByBlockID       *mock.Call
	GetLatestProtocolStateSnapshot *mock.Call
	Ping                           *mock.Call
	SecureConnection               *mock.Call
}

func DefaultMockGateway

func DefaultMockGateway() *TestGateway

Jump to

Keyboard shortcuts

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