mock

package
v1.10.8 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

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 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 MockApiBlockCall added in v1.9.9

type MockApiBlockCall struct {
	*gomock.Call
}

MockApiBlockCall wrap *gomock.Call

func (*MockApiBlockCall) Do added in v1.9.9

Do rewrite *gomock.Call.Do

func (*MockApiBlockCall) DoAndReturn added in v1.9.9

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

type MockApiBlockDataCall struct {
	*gomock.Call
}

MockApiBlockDataCall wrap *gomock.Call

func (*MockApiBlockDataCall) Do added in v1.9.9

Do rewrite *gomock.Call.Do

func (*MockApiBlockDataCall) DoAndReturn added in v1.9.9

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockApiBlockDataCall) Return added in v1.9.9

Return rewrite *gomock.Call.Return

type MockApiBlockDataGetCall added in v1.9.9

type MockApiBlockDataGetCall struct {
	*gomock.Call
}

MockApiBlockDataGetCall wrap *gomock.Call

func (*MockApiBlockDataGetCall) Do added in v1.9.9

Do rewrite *gomock.Call.Do

func (*MockApiBlockDataGetCall) DoAndReturn added in v1.9.9

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockApiBlockDataGetCall) Return added in v1.9.9

Return rewrite *gomock.Call.Return

type MockApiBlockResultsCall added in v1.9.9

type MockApiBlockResultsCall struct {
	*gomock.Call
}

MockApiBlockResultsCall wrap *gomock.Call

func (*MockApiBlockResultsCall) Do added in v1.9.9

Do rewrite *gomock.Call.Do

func (*MockApiBlockResultsCall) DoAndReturn added in v1.9.9

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockApiBlockResultsCall) Return added in v1.9.9

Return rewrite *gomock.Call.Return

type MockApiGenesisCall added in v1.9.9

type MockApiGenesisCall struct {
	*gomock.Call
}

MockApiGenesisCall wrap *gomock.Call

func (*MockApiGenesisCall) Do added in v1.9.9

Do rewrite *gomock.Call.Do

func (*MockApiGenesisCall) DoAndReturn added in v1.9.9

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

type MockApiHeadCall struct {
	*gomock.Call
}

MockApiHeadCall wrap *gomock.Call

func (*MockApiHeadCall) Do added in v1.9.9

Do rewrite *gomock.Call.Do

func (*MockApiHeadCall) DoAndReturn added in v1.9.9

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

type MockApiStatusCall struct {
	*gomock.Call
}

MockApiStatusCall wrap *gomock.Call

func (*MockApiStatusCall) Do added in v1.9.9

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

type MockDalApiBlobCall struct {
	*gomock.Call
}

MockDalApiBlobCall wrap *gomock.Call

func (*MockDalApiBlobCall) Do added in v1.9.9

Do rewrite *gomock.Call.Do

func (*MockDalApiBlobCall) DoAndReturn added in v1.9.9

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

type MockDalApiBlobsCall struct {
	*gomock.Call
}

MockDalApiBlobsCall wrap *gomock.Call

func (*MockDalApiBlobsCall) Do added in v1.9.9

Do rewrite *gomock.Call.Do

func (*MockDalApiBlobsCall) DoAndReturn added in v1.9.9

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.

Jump to

Keyboard shortcuts

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