mock

package
v1.1.7 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Code generated by MockGen. DO NOT EDIT. Source: api.go

Generated by this command:

mockgen -source=api.go -destination=mock/api.go -package=mock -typed

Package mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiBlockCall

type ApiBlockCall struct {
	*gomock.Call
}

ApiBlockCall wrap *gomock.Call

func (*ApiBlockCall) Do

Do rewrite *gomock.Call.Do

func (*ApiBlockCall) DoAndReturn

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

type ApiBlockDataCall struct {
	*gomock.Call
}

ApiBlockDataCall wrap *gomock.Call

func (*ApiBlockDataCall) Do

Do rewrite *gomock.Call.Do

func (*ApiBlockDataCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*ApiBlockDataCall) Return

func (c *ApiBlockDataCall) Return(arg0 types0.BlockData, arg1 error) *ApiBlockDataCall

Return rewrite *gomock.Call.Return

type ApiBlockDataGetCall added in v1.0.2

type ApiBlockDataGetCall struct {
	*gomock.Call
}

ApiBlockDataGetCall wrap *gomock.Call

func (*ApiBlockDataGetCall) Do added in v1.0.2

Do rewrite *gomock.Call.Do

func (*ApiBlockDataGetCall) DoAndReturn added in v1.0.2

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*ApiBlockDataGetCall) Return added in v1.0.2

Return rewrite *gomock.Call.Return

type ApiBlockResultsCall

type ApiBlockResultsCall struct {
	*gomock.Call
}

ApiBlockResultsCall wrap *gomock.Call

func (*ApiBlockResultsCall) Do

Do rewrite *gomock.Call.Do

func (*ApiBlockResultsCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*ApiBlockResultsCall) Return

Return rewrite *gomock.Call.Return

type ApiGenesisCall

type ApiGenesisCall struct {
	*gomock.Call
}

ApiGenesisCall wrap *gomock.Call

func (*ApiGenesisCall) Do

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

type ApiHeadCall struct {
	*gomock.Call
}

ApiHeadCall wrap *gomock.Call

func (*ApiHeadCall) Do

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

type ApiStatusCall struct {
	*gomock.Call
}

ApiStatusCall wrap *gomock.Call

func (*ApiStatusCall) Do

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

type DalApiBlobCall struct {
	*gomock.Call
}

DalApiBlobCall wrap *gomock.Call

func (*DalApiBlobCall) Do

Do rewrite *gomock.Call.Do

func (*DalApiBlobCall) DoAndReturn

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

type DalApiBlobsCall struct {
	*gomock.Call
}

DalApiBlobsCall wrap *gomock.Call

func (*DalApiBlobsCall) Do

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) Block

func (m *MockApi) Block(ctx context.Context, level types0.Level) (types0.ResultBlock, error)

Block mocks base method.

func (*MockApi) BlockData

func (m *MockApi) BlockData(ctx context.Context, level types0.Level) (types0.BlockData, error)

BlockData mocks base method.

func (*MockApi) BlockDataGet added in v1.0.2

func (m *MockApi) BlockDataGet(ctx context.Context, level types0.Level) (types0.BlockData, error)

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.

func (*MockApi) Genesis

func (m *MockApi) Genesis(ctx context.Context) (types.Genesis, error)

Genesis mocks base method.

func (*MockApi) Head

func (m *MockApi) Head(ctx context.Context) (types0.ResultBlock, error)

Head mocks base method.

func (*MockApi) Status

func (m *MockApi) Status(ctx context.Context) (types.Status, error)

Status mocks base method.

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) BlockDataGet added in v1.0.2

func (mr *MockApiMockRecorder) BlockDataGet(ctx, level any) *ApiBlockDataGetCall

BlockDataGet indicates an expected call of BlockDataGet.

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.

Jump to

Keyboard shortcuts

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