mocks

package
v1.0.0-beta-2 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2023 License: MIT, Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SQLRunner

type SQLRunner struct {
	mock.Mock
}

SQLRunner is an autogenerated mock type for the SQLRunner type

func NewSQLRunner

func NewSQLRunner(t mockConstructorTestingTNewSQLRunner) *SQLRunner

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

func (*SQLRunner) EXPECT

func (_m *SQLRunner) EXPECT() *SQLRunner_Expecter

func (*SQLRunner) RunReadQuery

func (_m *SQLRunner) RunReadQuery(ctx context.Context, stmt string) (*tableland.TableData, error)

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

type SQLRunner_Expecter

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

func (*SQLRunner_Expecter) RunReadQuery

func (_e *SQLRunner_Expecter) RunReadQuery(ctx interface{}, stmt interface{}) *SQLRunner_RunReadQuery_Call

RunReadQuery is a helper method to define mock.On call

  • ctx context.Context
  • stmt string

type SQLRunner_RunReadQuery_Call

type SQLRunner_RunReadQuery_Call struct {
	*mock.Call
}

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

func (*SQLRunner_RunReadQuery_Call) Return

func (*SQLRunner_RunReadQuery_Call) Run

type Tableland

type Tableland struct {
	mock.Mock
}

Tableland is an autogenerated mock type for the Tableland type

func NewTableland

func NewTableland(t mockConstructorTestingTNewTableland) *Tableland

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

func (*Tableland) EXPECT

func (_m *Tableland) EXPECT() *Tableland_Expecter

func (*Tableland) GetReceipt

func (_m *Tableland) GetReceipt(ctx context.Context, chainID tableland.ChainID, txnHash string) (bool, *tableland.TxnReceipt, error)

GetReceipt provides a mock function with given fields: ctx, chainID, txnHash

func (*Tableland) RelayWriteQuery

func (_m *Tableland) RelayWriteQuery(ctx context.Context, chainID tableland.ChainID, caller common.Address, stmt string) (tables.Transaction, error)

RelayWriteQuery provides a mock function with given fields: ctx, chainID, caller, stmt

func (*Tableland) RunReadQuery

func (_m *Tableland) RunReadQuery(ctx context.Context, stmt string) (*tableland.TableData, error)

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

func (*Tableland) SetController

func (_m *Tableland) SetController(ctx context.Context, chainID tableland.ChainID, caller common.Address, controller common.Address, tableID tables.TableID) (tables.Transaction, error)

SetController provides a mock function with given fields: ctx, chainID, caller, controller, tableID

func (*Tableland) ValidateCreateTable

func (_m *Tableland) ValidateCreateTable(ctx context.Context, chainID tableland.ChainID, stmt string) (string, error)

ValidateCreateTable provides a mock function with given fields: ctx, chainID, stmt

func (*Tableland) ValidateWriteQuery

func (_m *Tableland) ValidateWriteQuery(ctx context.Context, chainID tableland.ChainID, stmt string) (tables.TableID, error)

ValidateWriteQuery provides a mock function with given fields: ctx, chainID, stmt

type Tableland_Expecter

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

func (*Tableland_Expecter) GetReceipt

func (_e *Tableland_Expecter) GetReceipt(ctx interface{}, chainID interface{}, txnHash interface{}) *Tableland_GetReceipt_Call

GetReceipt is a helper method to define mock.On call

  • ctx context.Context
  • chainID tableland.ChainID
  • txnHash string

func (*Tableland_Expecter) RelayWriteQuery

func (_e *Tableland_Expecter) RelayWriteQuery(ctx interface{}, chainID interface{}, caller interface{}, stmt interface{}) *Tableland_RelayWriteQuery_Call

RelayWriteQuery is a helper method to define mock.On call

  • ctx context.Context
  • chainID tableland.ChainID
  • caller common.Address
  • stmt string

func (*Tableland_Expecter) RunReadQuery

func (_e *Tableland_Expecter) RunReadQuery(ctx interface{}, stmt interface{}) *Tableland_RunReadQuery_Call

RunReadQuery is a helper method to define mock.On call

  • ctx context.Context
  • stmt string

func (*Tableland_Expecter) SetController

func (_e *Tableland_Expecter) SetController(ctx interface{}, chainID interface{}, caller interface{}, controller interface{}, tableID interface{}) *Tableland_SetController_Call

SetController is a helper method to define mock.On call

  • ctx context.Context
  • chainID tableland.ChainID
  • caller common.Address
  • controller common.Address
  • tableID tables.TableID

func (*Tableland_Expecter) ValidateCreateTable

func (_e *Tableland_Expecter) ValidateCreateTable(ctx interface{}, chainID interface{}, stmt interface{}) *Tableland_ValidateCreateTable_Call

ValidateCreateTable is a helper method to define mock.On call

  • ctx context.Context
  • chainID tableland.ChainID
  • stmt string

func (*Tableland_Expecter) ValidateWriteQuery

func (_e *Tableland_Expecter) ValidateWriteQuery(ctx interface{}, chainID interface{}, stmt interface{}) *Tableland_ValidateWriteQuery_Call

ValidateWriteQuery is a helper method to define mock.On call

  • ctx context.Context
  • chainID tableland.ChainID
  • stmt string

type Tableland_GetReceipt_Call

type Tableland_GetReceipt_Call struct {
	*mock.Call
}

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

func (*Tableland_GetReceipt_Call) Return

func (*Tableland_GetReceipt_Call) Run

type Tableland_RelayWriteQuery_Call

type Tableland_RelayWriteQuery_Call struct {
	*mock.Call
}

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

func (*Tableland_RelayWriteQuery_Call) Return

func (*Tableland_RelayWriteQuery_Call) Run

type Tableland_RunReadQuery_Call

type Tableland_RunReadQuery_Call struct {
	*mock.Call
}

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

func (*Tableland_RunReadQuery_Call) Return

func (*Tableland_RunReadQuery_Call) Run

type Tableland_SetController_Call

type Tableland_SetController_Call struct {
	*mock.Call
}

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

func (*Tableland_SetController_Call) Return

func (*Tableland_SetController_Call) Run

type Tableland_ValidateCreateTable_Call

type Tableland_ValidateCreateTable_Call struct {
	*mock.Call
}

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

func (*Tableland_ValidateCreateTable_Call) Return

func (*Tableland_ValidateCreateTable_Call) Run

type Tableland_ValidateWriteQuery_Call

type Tableland_ValidateWriteQuery_Call struct {
	*mock.Call
}

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

func (*Tableland_ValidateWriteQuery_Call) Return

func (*Tableland_ValidateWriteQuery_Call) Run

Jump to

Keyboard shortcuts

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