Documentation ¶
Index ¶
- type SQLRunner
- type SQLRunner_Expecter
- type SQLRunner_RunReadQuery_Call
- type Tableland
- func (_m *Tableland) EXPECT() *Tableland_Expecter
- func (_m *Tableland) GetReceipt(ctx context.Context, chainID tableland.ChainID, txnHash string) (bool, *tableland.TxnReceipt, error)
- func (_m *Tableland) RelayWriteQuery(ctx context.Context, chainID tableland.ChainID, caller common.Address, ...) (tables.Transaction, error)
- func (_m *Tableland) RunReadQuery(ctx context.Context, stmt string) (*tableland.TableData, error)
- func (_m *Tableland) SetController(ctx context.Context, chainID tableland.ChainID, caller common.Address, ...) (tables.Transaction, error)
- func (_m *Tableland) ValidateCreateTable(ctx context.Context, chainID tableland.ChainID, stmt string) (string, error)
- func (_m *Tableland) ValidateWriteQuery(ctx context.Context, chainID tableland.ChainID, stmt string) (tables.TableID, error)
- type Tableland_Expecter
- func (_e *Tableland_Expecter) GetReceipt(ctx interface{}, chainID interface{}, txnHash interface{}) *Tableland_GetReceipt_Call
- func (_e *Tableland_Expecter) RelayWriteQuery(ctx interface{}, chainID interface{}, caller interface{}, stmt interface{}) *Tableland_RelayWriteQuery_Call
- func (_e *Tableland_Expecter) RunReadQuery(ctx interface{}, stmt interface{}) *Tableland_RunReadQuery_Call
- func (_e *Tableland_Expecter) SetController(ctx interface{}, chainID interface{}, caller interface{}, ...) *Tableland_SetController_Call
- func (_e *Tableland_Expecter) ValidateCreateTable(ctx interface{}, chainID interface{}, stmt interface{}) *Tableland_ValidateCreateTable_Call
- func (_e *Tableland_Expecter) ValidateWriteQuery(ctx interface{}, chainID interface{}, stmt interface{}) *Tableland_ValidateWriteQuery_Call
- type Tableland_GetReceipt_Call
- type Tableland_RelayWriteQuery_Call
- type Tableland_RunReadQuery_Call
- type Tableland_SetController_Call
- type Tableland_ValidateCreateTable_Call
- type Tableland_ValidateWriteQuery_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SQLRunner ¶
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
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 ¶
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 (_c *SQLRunner_RunReadQuery_Call) Return(_a0 *tableland.TableData, _a1 error) *SQLRunner_RunReadQuery_Call
func (*SQLRunner_RunReadQuery_Call) Run ¶
func (_c *SQLRunner_RunReadQuery_Call) Run(run func(ctx context.Context, stmt string)) *SQLRunner_RunReadQuery_Call
type Tableland ¶
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 ¶
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
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 ¶
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 (_c *Tableland_GetReceipt_Call) Return(_a0 bool, _a1 *tableland.TxnReceipt, _a2 error) *Tableland_GetReceipt_Call
func (*Tableland_GetReceipt_Call) Run ¶
func (_c *Tableland_GetReceipt_Call) Run(run func(ctx context.Context, chainID tableland.ChainID, txnHash string)) *Tableland_GetReceipt_Call
type Tableland_RelayWriteQuery_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 (_c *Tableland_RelayWriteQuery_Call) Return(_a0 tables.Transaction, _a1 error) *Tableland_RelayWriteQuery_Call
type Tableland_RunReadQuery_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 (_c *Tableland_RunReadQuery_Call) Return(_a0 *tableland.TableData, _a1 error) *Tableland_RunReadQuery_Call
func (*Tableland_RunReadQuery_Call) Run ¶
func (_c *Tableland_RunReadQuery_Call) Run(run func(ctx context.Context, stmt string)) *Tableland_RunReadQuery_Call
type Tableland_SetController_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 (_c *Tableland_SetController_Call) Return(_a0 tables.Transaction, _a1 error) *Tableland_SetController_Call
type Tableland_ValidateCreateTable_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 (_c *Tableland_ValidateCreateTable_Call) Return(_a0 string, _a1 error) *Tableland_ValidateCreateTable_Call
func (*Tableland_ValidateCreateTable_Call) Run ¶
func (_c *Tableland_ValidateCreateTable_Call) Run(run func(ctx context.Context, chainID tableland.ChainID, stmt string)) *Tableland_ValidateCreateTable_Call
type Tableland_ValidateWriteQuery_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 (_c *Tableland_ValidateWriteQuery_Call) Return(_a0 tables.TableID, _a1 error) *Tableland_ValidateWriteQuery_Call
func (*Tableland_ValidateWriteQuery_Call) Run ¶
func (_c *Tableland_ValidateWriteQuery_Call) Run(run func(ctx context.Context, chainID tableland.ChainID, stmt string)) *Tableland_ValidateWriteQuery_Call