Documentation ¶
Overview ¶
Package mock is a generated GoMock package.
Index ¶
- type ApiBlockCall
- func (c *ApiBlockCall) Do(f func(context.Context, types0.Level) (types0.ResultBlock, error)) *ApiBlockCall
- func (c *ApiBlockCall) DoAndReturn(f func(context.Context, types0.Level) (types0.ResultBlock, error)) *ApiBlockCall
- func (c *ApiBlockCall) Return(arg0 types0.ResultBlock, arg1 error) *ApiBlockCall
- type ApiBlockDataCall
- func (c *ApiBlockDataCall) Do(f func(context.Context, types0.Level) (types0.BlockData, error)) *ApiBlockDataCall
- func (c *ApiBlockDataCall) DoAndReturn(f func(context.Context, types0.Level) (types0.BlockData, error)) *ApiBlockDataCall
- func (c *ApiBlockDataCall) Return(arg0 types0.BlockData, arg1 error) *ApiBlockDataCall
- type ApiBlockResultsCall
- func (c *ApiBlockResultsCall) Do(f func(context.Context, types0.Level) (types0.ResultBlockResults, error)) *ApiBlockResultsCall
- func (c *ApiBlockResultsCall) DoAndReturn(f func(context.Context, types0.Level) (types0.ResultBlockResults, error)) *ApiBlockResultsCall
- func (c *ApiBlockResultsCall) Return(arg0 types0.ResultBlockResults, arg1 error) *ApiBlockResultsCall
- type ApiGenesisCall
- type ApiHeadCall
- type ApiStatusCall
- type DalApiBlobCall
- func (c *DalApiBlobCall) Do(f func(context.Context, types0.Level, string, string) (types.Blob, error)) *DalApiBlobCall
- func (c *DalApiBlobCall) DoAndReturn(f func(context.Context, types0.Level, string, string) (types.Blob, error)) *DalApiBlobCall
- func (c *DalApiBlobCall) Return(arg0 types.Blob, arg1 error) *DalApiBlobCall
- type DalApiBlobsCall
- func (c *DalApiBlobsCall) Do(f func(context.Context, types0.Level, ...string) ([]types.Blob, error)) *DalApiBlobsCall
- func (c *DalApiBlobsCall) DoAndReturn(f func(context.Context, types0.Level, ...string) ([]types.Blob, error)) *DalApiBlobsCall
- func (c *DalApiBlobsCall) Return(arg0 []types.Blob, arg1 error) *DalApiBlobsCall
- type MockApi
- func (m *MockApi) Block(ctx context.Context, level types0.Level) (types0.ResultBlock, error)
- func (m *MockApi) BlockData(ctx context.Context, level types0.Level) (types0.BlockData, error)
- func (m *MockApi) BlockResults(ctx context.Context, level types0.Level) (types0.ResultBlockResults, error)
- func (m *MockApi) EXPECT() *MockApiMockRecorder
- func (m *MockApi) Genesis(ctx context.Context) (types.Genesis, error)
- func (m *MockApi) Head(ctx context.Context) (types0.ResultBlock, error)
- func (m *MockApi) Status(ctx context.Context) (types.Status, error)
- type MockApiMockRecorder
- func (mr *MockApiMockRecorder) Block(ctx, level any) *ApiBlockCall
- func (mr *MockApiMockRecorder) BlockData(ctx, level any) *ApiBlockDataCall
- func (mr *MockApiMockRecorder) BlockResults(ctx, level any) *ApiBlockResultsCall
- func (mr *MockApiMockRecorder) Genesis(ctx any) *ApiGenesisCall
- func (mr *MockApiMockRecorder) Head(ctx any) *ApiHeadCall
- func (mr *MockApiMockRecorder) Status(ctx any) *ApiStatusCall
- type MockDalApi
- type MockDalApiMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiBlockCall ¶
ApiBlockCall wrap *gomock.Call
func (*ApiBlockCall) Do ¶
func (c *ApiBlockCall) Do(f func(context.Context, types0.Level) (types0.ResultBlock, error)) *ApiBlockCall
Do rewrite *gomock.Call.Do
func (*ApiBlockCall) DoAndReturn ¶
func (c *ApiBlockCall) DoAndReturn(f func(context.Context, types0.Level) (types0.ResultBlock, error)) *ApiBlockCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*ApiBlockCall) Return ¶
func (c *ApiBlockCall) Return(arg0 types0.ResultBlock, arg1 error) *ApiBlockCall
Return rewrite *gomock.Call.Return
type ApiBlockDataCall ¶
ApiBlockDataCall wrap *gomock.Call
func (*ApiBlockDataCall) Do ¶
func (c *ApiBlockDataCall) Do(f func(context.Context, types0.Level) (types0.BlockData, error)) *ApiBlockDataCall
Do rewrite *gomock.Call.Do
func (*ApiBlockDataCall) DoAndReturn ¶
func (c *ApiBlockDataCall) DoAndReturn(f func(context.Context, types0.Level) (types0.BlockData, error)) *ApiBlockDataCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*ApiBlockDataCall) Return ¶
func (c *ApiBlockDataCall) Return(arg0 types0.BlockData, arg1 error) *ApiBlockDataCall
Return rewrite *gomock.Call.Return
type ApiBlockResultsCall ¶
ApiBlockResultsCall wrap *gomock.Call
func (*ApiBlockResultsCall) Do ¶
func (c *ApiBlockResultsCall) Do(f func(context.Context, types0.Level) (types0.ResultBlockResults, error)) *ApiBlockResultsCall
Do rewrite *gomock.Call.Do
func (*ApiBlockResultsCall) DoAndReturn ¶
func (c *ApiBlockResultsCall) DoAndReturn(f func(context.Context, types0.Level) (types0.ResultBlockResults, error)) *ApiBlockResultsCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*ApiBlockResultsCall) Return ¶
func (c *ApiBlockResultsCall) Return(arg0 types0.ResultBlockResults, arg1 error) *ApiBlockResultsCall
Return rewrite *gomock.Call.Return
type ApiGenesisCall ¶
ApiGenesisCall wrap *gomock.Call
func (*ApiGenesisCall) Do ¶
func (c *ApiGenesisCall) Do(f func(context.Context) (types.Genesis, error)) *ApiGenesisCall
Do rewrite *gomock.Call.Do
func (*ApiGenesisCall) DoAndReturn ¶
func (c *ApiGenesisCall) DoAndReturn(f func(context.Context) (types.Genesis, error)) *ApiGenesisCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*ApiGenesisCall) Return ¶
func (c *ApiGenesisCall) Return(arg0 types.Genesis, arg1 error) *ApiGenesisCall
Return rewrite *gomock.Call.Return
type ApiHeadCall ¶
ApiHeadCall wrap *gomock.Call
func (*ApiHeadCall) Do ¶
func (c *ApiHeadCall) Do(f func(context.Context) (types0.ResultBlock, error)) *ApiHeadCall
Do rewrite *gomock.Call.Do
func (*ApiHeadCall) DoAndReturn ¶
func (c *ApiHeadCall) DoAndReturn(f func(context.Context) (types0.ResultBlock, error)) *ApiHeadCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*ApiHeadCall) Return ¶
func (c *ApiHeadCall) Return(arg0 types0.ResultBlock, arg1 error) *ApiHeadCall
Return rewrite *gomock.Call.Return
type ApiStatusCall ¶
ApiStatusCall wrap *gomock.Call
func (*ApiStatusCall) Do ¶
func (c *ApiStatusCall) Do(f func(context.Context) (types.Status, error)) *ApiStatusCall
Do rewrite *gomock.Call.Do
func (*ApiStatusCall) DoAndReturn ¶
func (c *ApiStatusCall) DoAndReturn(f func(context.Context) (types.Status, error)) *ApiStatusCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*ApiStatusCall) Return ¶
func (c *ApiStatusCall) Return(arg0 types.Status, arg1 error) *ApiStatusCall
Return rewrite *gomock.Call.Return
type DalApiBlobCall ¶
DalApiBlobCall wrap *gomock.Call
func (*DalApiBlobCall) Do ¶
func (c *DalApiBlobCall) Do(f func(context.Context, types0.Level, string, string) (types.Blob, error)) *DalApiBlobCall
Do rewrite *gomock.Call.Do
func (*DalApiBlobCall) DoAndReturn ¶
func (c *DalApiBlobCall) DoAndReturn(f func(context.Context, types0.Level, string, string) (types.Blob, error)) *DalApiBlobCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*DalApiBlobCall) Return ¶
func (c *DalApiBlobCall) Return(arg0 types.Blob, arg1 error) *DalApiBlobCall
Return rewrite *gomock.Call.Return
type DalApiBlobsCall ¶
DalApiBlobsCall wrap *gomock.Call
func (*DalApiBlobsCall) Do ¶
func (c *DalApiBlobsCall) Do(f func(context.Context, types0.Level, ...string) ([]types.Blob, error)) *DalApiBlobsCall
Do rewrite *gomock.Call.Do
func (*DalApiBlobsCall) DoAndReturn ¶
func (c *DalApiBlobsCall) DoAndReturn(f func(context.Context, types0.Level, ...string) ([]types.Blob, error)) *DalApiBlobsCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*DalApiBlobsCall) Return ¶
func (c *DalApiBlobsCall) Return(arg0 []types.Blob, arg1 error) *DalApiBlobsCall
Return rewrite *gomock.Call.Return
type MockApi ¶
type MockApi struct {
// contains filtered or unexported fields
}
MockApi is a mock of Api interface.
func NewMockApi ¶
func NewMockApi(ctrl *gomock.Controller) *MockApi
NewMockApi creates a new mock instance.
func (*MockApi) BlockResults ¶
func (m *MockApi) BlockResults(ctx context.Context, level types0.Level) (types0.ResultBlockResults, error)
BlockResults mocks base method.
func (*MockApi) EXPECT ¶
func (m *MockApi) EXPECT() *MockApiMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockApiMockRecorder ¶
type MockApiMockRecorder struct {
// contains filtered or unexported fields
}
MockApiMockRecorder is the mock recorder for MockApi.
func (*MockApiMockRecorder) Block ¶
func (mr *MockApiMockRecorder) Block(ctx, level any) *ApiBlockCall
Block indicates an expected call of Block.
func (*MockApiMockRecorder) BlockData ¶
func (mr *MockApiMockRecorder) BlockData(ctx, level any) *ApiBlockDataCall
BlockData indicates an expected call of BlockData.
func (*MockApiMockRecorder) BlockResults ¶
func (mr *MockApiMockRecorder) BlockResults(ctx, level any) *ApiBlockResultsCall
BlockResults indicates an expected call of BlockResults.
func (*MockApiMockRecorder) Genesis ¶
func (mr *MockApiMockRecorder) Genesis(ctx any) *ApiGenesisCall
Genesis indicates an expected call of Genesis.
func (*MockApiMockRecorder) Head ¶
func (mr *MockApiMockRecorder) Head(ctx any) *ApiHeadCall
Head indicates an expected call of Head.
func (*MockApiMockRecorder) Status ¶
func (mr *MockApiMockRecorder) Status(ctx any) *ApiStatusCall
Status indicates an expected call of Status.
type MockDalApi ¶
type MockDalApi struct {
// contains filtered or unexported fields
}
MockDalApi is a mock of DalApi interface.
func NewMockDalApi ¶
func NewMockDalApi(ctrl *gomock.Controller) *MockDalApi
NewMockDalApi creates a new mock instance.
func (*MockDalApi) Blob ¶
func (m *MockDalApi) Blob(ctx context.Context, height types0.Level, namespace, commitment string) (types.Blob, error)
Blob mocks base method.
func (*MockDalApi) Blobs ¶
func (m *MockDalApi) Blobs(ctx context.Context, height types0.Level, hash ...string) ([]types.Blob, error)
Blobs mocks base method.
func (*MockDalApi) EXPECT ¶
func (m *MockDalApi) EXPECT() *MockDalApiMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockDalApiMockRecorder ¶
type MockDalApiMockRecorder struct {
// contains filtered or unexported fields
}
MockDalApiMockRecorder is the mock recorder for MockDalApi.
func (*MockDalApiMockRecorder) Blob ¶
func (mr *MockDalApiMockRecorder) Blob(ctx, height, namespace, commitment any) *DalApiBlobCall
Blob indicates an expected call of Blob.
func (*MockDalApiMockRecorder) Blobs ¶
func (mr *MockDalApiMockRecorder) Blobs(ctx, height any, hash ...any) *DalApiBlobsCall
Blobs indicates an expected call of Blobs.