mocks

package
v1.10.2 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: MIT, Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

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

func (_m *Gateway) EXPECT() *Gateway_Expecter

func (*Gateway) GetReceiptByTransactionHash added in v1.1.0

func (_m *Gateway) GetReceiptByTransactionHash(_a0 context.Context, _a1 tableland.ChainID, _a2 common.Hash) (gateway.Receipt, bool, error)

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

func (*Gateway) GetTableMetadata added in v1.1.0

func (_m *Gateway) GetTableMetadata(_a0 context.Context, _a1 tableland.ChainID, _a2 tables.TableID) (gateway.TableMetadata, error)

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

func (*Gateway) RunReadQuery added in v1.1.0

func (_m *Gateway) RunReadQuery(ctx context.Context, stmt string) (*gateway.TableData, error)

RunReadQuery provides a mock function with given fields: ctx, stmt

type Gateway_Expecter added in v1.1.0

type Gateway_Expecter struct {
	// contains filtered or unexported fields
}

func (*Gateway_Expecter) GetReceiptByTransactionHash added in v1.1.0

func (_e *Gateway_Expecter) GetReceiptByTransactionHash(_a0 interface{}, _a1 interface{}, _a2 interface{}) *Gateway_GetReceiptByTransactionHash_Call

GetReceiptByTransactionHash is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 tableland.ChainID
  • _a2 common.Hash

func (*Gateway_Expecter) GetTableMetadata added in v1.1.0

func (_e *Gateway_Expecter) GetTableMetadata(_a0 interface{}, _a1 interface{}, _a2 interface{}) *Gateway_GetTableMetadata_Call

GetTableMetadata is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 tableland.ChainID
  • _a2 tables.TableID

func (*Gateway_Expecter) RunReadQuery added in v1.1.0

func (_e *Gateway_Expecter) RunReadQuery(ctx interface{}, stmt interface{}) *Gateway_RunReadQuery_Call

RunReadQuery is a helper method to define mock.On call

  • ctx context.Context
  • stmt string

type Gateway_GetReceiptByTransactionHash_Call added in v1.1.0

type Gateway_GetReceiptByTransactionHash_Call struct {
	*mock.Call
}

Gateway_GetReceiptByTransactionHash_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetReceiptByTransactionHash'

func (*Gateway_GetReceiptByTransactionHash_Call) Return added in v1.1.0

func (*Gateway_GetReceiptByTransactionHash_Call) Run added in v1.1.0

type Gateway_GetTableMetadata_Call added in v1.1.0

type Gateway_GetTableMetadata_Call struct {
	*mock.Call
}

Gateway_GetTableMetadata_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetTableMetadata'

func (*Gateway_GetTableMetadata_Call) Return added in v1.1.0

func (*Gateway_GetTableMetadata_Call) Run added in v1.1.0

type Gateway_RunReadQuery_Call added in v1.1.0

type Gateway_RunReadQuery_Call struct {
	*mock.Call
}

Gateway_RunReadQuery_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RunReadQuery'

func (*Gateway_RunReadQuery_Call) Return added in v1.1.0

func (*Gateway_RunReadQuery_Call) Run added in v1.1.0

Jump to

Keyboard shortcuts

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