mocks

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: May 25, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

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 Gateway added in v1.1.0

type Gateway struct {
	mock.Mock
}

Gateway is an autogenerated mock type for the Gateway type

func NewGateway added in v1.1.0

func NewGateway(t mockConstructorTestingTNewGateway) *Gateway

NewGateway creates a new instance of Gateway. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Gateway) ExecuteScript added in v1.1.0

func (_m *Gateway) ExecuteScript(_a0 []byte, _a1 []cadence.Value) (cadence.Value, error)

ExecuteScript provides a mock function with given fields: _a0, _a1

func (*Gateway) ExecuteScriptAtHeight added in v1.1.0

func (_m *Gateway) ExecuteScriptAtHeight(_a0 []byte, _a1 []cadence.Value, _a2 uint64) (cadence.Value, error)

ExecuteScriptAtHeight provides a mock function with given fields: _a0, _a1, _a2

func (*Gateway) ExecuteScriptAtID added in v1.1.0

func (_m *Gateway) ExecuteScriptAtID(_a0 []byte, _a1 []cadence.Value, _a2 flow.Identifier) (cadence.Value, error)

ExecuteScriptAtID provides a mock function with given fields: _a0, _a1, _a2

func (*Gateway) GetAccount added in v1.1.0

func (_m *Gateway) GetAccount(_a0 flow.Address) (*flow.Account, error)

GetAccount provides a mock function with given fields: _a0

func (*Gateway) GetBlockByHeight added in v1.1.0

func (_m *Gateway) GetBlockByHeight(_a0 uint64) (*flow.Block, error)

GetBlockByHeight provides a mock function with given fields: _a0

func (*Gateway) GetBlockByID added in v1.1.0

func (_m *Gateway) GetBlockByID(_a0 flow.Identifier) (*flow.Block, error)

GetBlockByID provides a mock function with given fields: _a0

func (*Gateway) GetCollection added in v1.1.0

func (_m *Gateway) GetCollection(_a0 flow.Identifier) (*flow.Collection, error)

GetCollection provides a mock function with given fields: _a0

func (*Gateway) GetEvents added in v1.1.0

func (_m *Gateway) GetEvents(_a0 string, _a1 uint64, _a2 uint64) ([]flow.BlockEvents, error)

GetEvents provides a mock function with given fields: _a0, _a1, _a2

func (*Gateway) GetLatestBlock added in v1.1.0

func (_m *Gateway) GetLatestBlock() (*flow.Block, error)

GetLatestBlock provides a mock function with given fields:

func (*Gateway) GetLatestProtocolStateSnapshot added in v1.1.0

func (_m *Gateway) GetLatestProtocolStateSnapshot() ([]byte, error)

GetLatestProtocolStateSnapshot provides a mock function with given fields:

func (*Gateway) GetTransaction added in v1.1.0

func (_m *Gateway) GetTransaction(_a0 flow.Identifier) (*flow.Transaction, error)

GetTransaction provides a mock function with given fields: _a0

func (*Gateway) GetTransactionResult added in v1.1.0

func (_m *Gateway) GetTransactionResult(_a0 flow.Identifier, _a1 bool) (*flow.TransactionResult, error)

GetTransactionResult provides a mock function with given fields: _a0, _a1

func (*Gateway) GetTransactionResultsByBlockID added in v1.1.0

func (_m *Gateway) GetTransactionResultsByBlockID(blockID flow.Identifier) ([]*flow.TransactionResult, error)

GetTransactionResultsByBlockID provides a mock function with given fields: blockID

func (*Gateway) GetTransactionsByBlockID added in v1.1.0

func (_m *Gateway) GetTransactionsByBlockID(blockID flow.Identifier) ([]*flow.Transaction, error)

GetTransactionsByBlockID provides a mock function with given fields: blockID

func (*Gateway) Ping added in v1.1.0

func (_m *Gateway) Ping() error

Ping provides a mock function with given fields:

func (*Gateway) SecureConnection added in v1.1.0

func (_m *Gateway) SecureConnection() bool

SecureConnection provides a mock function with given fields:

func (*Gateway) SendSignedTransaction added in v1.1.0

func (_m *Gateway) SendSignedTransaction(_a0 *flow.Transaction) (*flow.Transaction, error)

SendSignedTransaction provides a mock function with given fields: _a0

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