Documentation ¶
Overview ¶
Package mock is a generated GoMock package.
Index ¶
- 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) BlockDataGet(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 MockApiBlockCall
- func (c *MockApiBlockCall) Do(f func(context.Context, types0.Level) (types0.ResultBlock, error)) *MockApiBlockCall
- func (c *MockApiBlockCall) DoAndReturn(f func(context.Context, types0.Level) (types0.ResultBlock, error)) *MockApiBlockCall
- func (c *MockApiBlockCall) Return(arg0 types0.ResultBlock, arg1 error) *MockApiBlockCall
- type MockApiBlockDataCall
- func (c *MockApiBlockDataCall) Do(f func(context.Context, types0.Level) (types0.BlockData, error)) *MockApiBlockDataCall
- func (c *MockApiBlockDataCall) DoAndReturn(f func(context.Context, types0.Level) (types0.BlockData, error)) *MockApiBlockDataCall
- func (c *MockApiBlockDataCall) Return(arg0 types0.BlockData, arg1 error) *MockApiBlockDataCall
- type MockApiBlockDataGetCall
- func (c *MockApiBlockDataGetCall) Do(f func(context.Context, types0.Level) (types0.BlockData, error)) *MockApiBlockDataGetCall
- func (c *MockApiBlockDataGetCall) DoAndReturn(f func(context.Context, types0.Level) (types0.BlockData, error)) *MockApiBlockDataGetCall
- func (c *MockApiBlockDataGetCall) Return(arg0 types0.BlockData, arg1 error) *MockApiBlockDataGetCall
- type MockApiBlockResultsCall
- func (c *MockApiBlockResultsCall) Do(f func(context.Context, types0.Level) (types0.ResultBlockResults, error)) *MockApiBlockResultsCall
- func (c *MockApiBlockResultsCall) DoAndReturn(f func(context.Context, types0.Level) (types0.ResultBlockResults, error)) *MockApiBlockResultsCall
- func (c *MockApiBlockResultsCall) Return(arg0 types0.ResultBlockResults, arg1 error) *MockApiBlockResultsCall
- type MockApiGenesisCall
- type MockApiHeadCall
- type MockApiMockRecorder
- func (mr *MockApiMockRecorder) Block(ctx, level any) *MockApiBlockCall
- func (mr *MockApiMockRecorder) BlockData(ctx, level any) *MockApiBlockDataCall
- func (mr *MockApiMockRecorder) BlockDataGet(ctx, level any) *MockApiBlockDataGetCall
- func (mr *MockApiMockRecorder) BlockResults(ctx, level any) *MockApiBlockResultsCall
- func (mr *MockApiMockRecorder) Genesis(ctx any) *MockApiGenesisCall
- func (mr *MockApiMockRecorder) Head(ctx any) *MockApiHeadCall
- func (mr *MockApiMockRecorder) Status(ctx any) *MockApiStatusCall
- type MockApiStatusCall
- type MockDalApi
- type MockDalApiBlobCall
- func (c *MockDalApiBlobCall) Do(f func(context.Context, types0.Level, string, string) (types.Blob, error)) *MockDalApiBlobCall
- func (c *MockDalApiBlobCall) DoAndReturn(f func(context.Context, types0.Level, string, string) (types.Blob, error)) *MockDalApiBlobCall
- func (c *MockDalApiBlobCall) Return(arg0 types.Blob, arg1 error) *MockDalApiBlobCall
- type MockDalApiBlobsCall
- func (c *MockDalApiBlobsCall) Do(f func(context.Context, types0.Level, ...string) ([]types.Blob, error)) *MockDalApiBlobsCall
- func (c *MockDalApiBlobsCall) DoAndReturn(f func(context.Context, types0.Level, ...string) ([]types.Blob, error)) *MockDalApiBlobsCall
- func (c *MockDalApiBlobsCall) Return(arg0 []types.Blob, arg1 error) *MockDalApiBlobsCall
- type MockDalApiMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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) BlockDataGet ¶ added in v1.0.2
BlockDataGet mocks base method.
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 MockApiBlockCall ¶ added in v1.9.9
MockApiBlockCall wrap *gomock.Call
func (*MockApiBlockCall) Do ¶ added in v1.9.9
func (c *MockApiBlockCall) Do(f func(context.Context, types0.Level) (types0.ResultBlock, error)) *MockApiBlockCall
Do rewrite *gomock.Call.Do
func (*MockApiBlockCall) DoAndReturn ¶ added in v1.9.9
func (c *MockApiBlockCall) DoAndReturn(f func(context.Context, types0.Level) (types0.ResultBlock, error)) *MockApiBlockCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockApiBlockCall) Return ¶ added in v1.9.9
func (c *MockApiBlockCall) Return(arg0 types0.ResultBlock, arg1 error) *MockApiBlockCall
Return rewrite *gomock.Call.Return
type MockApiBlockDataCall ¶ added in v1.9.9
MockApiBlockDataCall wrap *gomock.Call
func (*MockApiBlockDataCall) Do ¶ added in v1.9.9
func (c *MockApiBlockDataCall) Do(f func(context.Context, types0.Level) (types0.BlockData, error)) *MockApiBlockDataCall
Do rewrite *gomock.Call.Do
func (*MockApiBlockDataCall) DoAndReturn ¶ added in v1.9.9
func (c *MockApiBlockDataCall) DoAndReturn(f func(context.Context, types0.Level) (types0.BlockData, error)) *MockApiBlockDataCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockApiBlockDataCall) Return ¶ added in v1.9.9
func (c *MockApiBlockDataCall) Return(arg0 types0.BlockData, arg1 error) *MockApiBlockDataCall
Return rewrite *gomock.Call.Return
type MockApiBlockDataGetCall ¶ added in v1.9.9
MockApiBlockDataGetCall wrap *gomock.Call
func (*MockApiBlockDataGetCall) Do ¶ added in v1.9.9
func (c *MockApiBlockDataGetCall) Do(f func(context.Context, types0.Level) (types0.BlockData, error)) *MockApiBlockDataGetCall
Do rewrite *gomock.Call.Do
func (*MockApiBlockDataGetCall) DoAndReturn ¶ added in v1.9.9
func (c *MockApiBlockDataGetCall) DoAndReturn(f func(context.Context, types0.Level) (types0.BlockData, error)) *MockApiBlockDataGetCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockApiBlockDataGetCall) Return ¶ added in v1.9.9
func (c *MockApiBlockDataGetCall) Return(arg0 types0.BlockData, arg1 error) *MockApiBlockDataGetCall
Return rewrite *gomock.Call.Return
type MockApiBlockResultsCall ¶ added in v1.9.9
MockApiBlockResultsCall wrap *gomock.Call
func (*MockApiBlockResultsCall) Do ¶ added in v1.9.9
func (c *MockApiBlockResultsCall) Do(f func(context.Context, types0.Level) (types0.ResultBlockResults, error)) *MockApiBlockResultsCall
Do rewrite *gomock.Call.Do
func (*MockApiBlockResultsCall) DoAndReturn ¶ added in v1.9.9
func (c *MockApiBlockResultsCall) DoAndReturn(f func(context.Context, types0.Level) (types0.ResultBlockResults, error)) *MockApiBlockResultsCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockApiBlockResultsCall) Return ¶ added in v1.9.9
func (c *MockApiBlockResultsCall) Return(arg0 types0.ResultBlockResults, arg1 error) *MockApiBlockResultsCall
Return rewrite *gomock.Call.Return
type MockApiGenesisCall ¶ added in v1.9.9
MockApiGenesisCall wrap *gomock.Call
func (*MockApiGenesisCall) Do ¶ added in v1.9.9
func (c *MockApiGenesisCall) Do(f func(context.Context) (types.Genesis, error)) *MockApiGenesisCall
Do rewrite *gomock.Call.Do
func (*MockApiGenesisCall) DoAndReturn ¶ added in v1.9.9
func (c *MockApiGenesisCall) DoAndReturn(f func(context.Context) (types.Genesis, error)) *MockApiGenesisCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockApiGenesisCall) Return ¶ added in v1.9.9
func (c *MockApiGenesisCall) Return(arg0 types.Genesis, arg1 error) *MockApiGenesisCall
Return rewrite *gomock.Call.Return
type MockApiHeadCall ¶ added in v1.9.9
MockApiHeadCall wrap *gomock.Call
func (*MockApiHeadCall) Do ¶ added in v1.9.9
func (c *MockApiHeadCall) Do(f func(context.Context) (types0.ResultBlock, error)) *MockApiHeadCall
Do rewrite *gomock.Call.Do
func (*MockApiHeadCall) DoAndReturn ¶ added in v1.9.9
func (c *MockApiHeadCall) DoAndReturn(f func(context.Context) (types0.ResultBlock, error)) *MockApiHeadCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockApiHeadCall) Return ¶ added in v1.9.9
func (c *MockApiHeadCall) Return(arg0 types0.ResultBlock, arg1 error) *MockApiHeadCall
Return rewrite *gomock.Call.Return
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) *MockApiBlockCall
Block indicates an expected call of Block.
func (*MockApiMockRecorder) BlockData ¶
func (mr *MockApiMockRecorder) BlockData(ctx, level any) *MockApiBlockDataCall
BlockData indicates an expected call of BlockData.
func (*MockApiMockRecorder) BlockDataGet ¶ added in v1.0.2
func (mr *MockApiMockRecorder) BlockDataGet(ctx, level any) *MockApiBlockDataGetCall
BlockDataGet indicates an expected call of BlockDataGet.
func (*MockApiMockRecorder) BlockResults ¶
func (mr *MockApiMockRecorder) BlockResults(ctx, level any) *MockApiBlockResultsCall
BlockResults indicates an expected call of BlockResults.
func (*MockApiMockRecorder) Genesis ¶
func (mr *MockApiMockRecorder) Genesis(ctx any) *MockApiGenesisCall
Genesis indicates an expected call of Genesis.
func (*MockApiMockRecorder) Head ¶
func (mr *MockApiMockRecorder) Head(ctx any) *MockApiHeadCall
Head indicates an expected call of Head.
func (*MockApiMockRecorder) Status ¶
func (mr *MockApiMockRecorder) Status(ctx any) *MockApiStatusCall
Status indicates an expected call of Status.
type MockApiStatusCall ¶ added in v1.9.9
MockApiStatusCall wrap *gomock.Call
func (*MockApiStatusCall) Do ¶ added in v1.9.9
func (c *MockApiStatusCall) Do(f func(context.Context) (types.Status, error)) *MockApiStatusCall
Do rewrite *gomock.Call.Do
func (*MockApiStatusCall) DoAndReturn ¶ added in v1.9.9
func (c *MockApiStatusCall) DoAndReturn(f func(context.Context) (types.Status, error)) *MockApiStatusCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockApiStatusCall) Return ¶ added in v1.9.9
func (c *MockApiStatusCall) Return(arg0 types.Status, arg1 error) *MockApiStatusCall
Return rewrite *gomock.Call.Return
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 MockDalApiBlobCall ¶ added in v1.9.9
MockDalApiBlobCall wrap *gomock.Call
func (*MockDalApiBlobCall) Do ¶ added in v1.9.9
func (c *MockDalApiBlobCall) Do(f func(context.Context, types0.Level, string, string) (types.Blob, error)) *MockDalApiBlobCall
Do rewrite *gomock.Call.Do
func (*MockDalApiBlobCall) DoAndReturn ¶ added in v1.9.9
func (c *MockDalApiBlobCall) DoAndReturn(f func(context.Context, types0.Level, string, string) (types.Blob, error)) *MockDalApiBlobCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockDalApiBlobCall) Return ¶ added in v1.9.9
func (c *MockDalApiBlobCall) Return(arg0 types.Blob, arg1 error) *MockDalApiBlobCall
Return rewrite *gomock.Call.Return
type MockDalApiBlobsCall ¶ added in v1.9.9
MockDalApiBlobsCall wrap *gomock.Call
func (*MockDalApiBlobsCall) Do ¶ added in v1.9.9
func (c *MockDalApiBlobsCall) Do(f func(context.Context, types0.Level, ...string) ([]types.Blob, error)) *MockDalApiBlobsCall
Do rewrite *gomock.Call.Do
func (*MockDalApiBlobsCall) DoAndReturn ¶ added in v1.9.9
func (c *MockDalApiBlobsCall) DoAndReturn(f func(context.Context, types0.Level, ...string) ([]types.Blob, error)) *MockDalApiBlobsCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockDalApiBlobsCall) Return ¶ added in v1.9.9
func (c *MockDalApiBlobsCall) Return(arg0 []types.Blob, arg1 error) *MockDalApiBlobsCall
Return rewrite *gomock.Call.Return
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) *MockDalApiBlobCall
Blob indicates an expected call of Blob.
func (*MockDalApiMockRecorder) Blobs ¶
func (mr *MockDalApiMockRecorder) Blobs(ctx, height any, hash ...any) *MockDalApiBlobsCall
Blobs indicates an expected call of Blobs.