Documentation ¶
Overview ¶
Package mock_liststorage is a generated GoMock package.
Index ¶
- type MockListStorage
- func (m *MockListStorage) AddRawRecord(ctx context.Context, rec *consensusproto.RawRecordWithId) error
- func (m *MockListStorage) EXPECT() *MockListStorageMockRecorder
- func (m *MockListStorage) GetRawRecord(ctx context.Context, id string) (*consensusproto.RawRecordWithId, error)
- func (m *MockListStorage) Head() (string, error)
- func (m *MockListStorage) Id() string
- func (m *MockListStorage) Root() (*consensusproto.RawRecordWithId, error)
- func (m *MockListStorage) SetHead(headId string) error
- type MockListStorageMockRecorder
- func (mr *MockListStorageMockRecorder) AddRawRecord(ctx, rec any) *gomock.Call
- func (mr *MockListStorageMockRecorder) GetRawRecord(ctx, id any) *gomock.Call
- func (mr *MockListStorageMockRecorder) Head() *gomock.Call
- func (mr *MockListStorageMockRecorder) Id() *gomock.Call
- func (mr *MockListStorageMockRecorder) Root() *gomock.Call
- func (mr *MockListStorageMockRecorder) SetHead(headId any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockListStorage ¶
type MockListStorage struct {
// contains filtered or unexported fields
}
MockListStorage is a mock of ListStorage interface.
func NewMockListStorage ¶
func NewMockListStorage(ctrl *gomock.Controller) *MockListStorage
NewMockListStorage creates a new mock instance.
func (*MockListStorage) AddRawRecord ¶
func (m *MockListStorage) AddRawRecord(ctx context.Context, rec *consensusproto.RawRecordWithId) error
AddRawRecord mocks base method.
func (*MockListStorage) EXPECT ¶
func (m *MockListStorage) EXPECT() *MockListStorageMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockListStorage) GetRawRecord ¶
func (m *MockListStorage) GetRawRecord(ctx context.Context, id string) (*consensusproto.RawRecordWithId, error)
GetRawRecord mocks base method.
func (*MockListStorage) Head ¶
func (m *MockListStorage) Head() (string, error)
Head mocks base method.
func (*MockListStorage) Root ¶
func (m *MockListStorage) Root() (*consensusproto.RawRecordWithId, error)
Root mocks base method.
func (*MockListStorage) SetHead ¶
func (m *MockListStorage) SetHead(headId string) error
SetHead mocks base method.
type MockListStorageMockRecorder ¶
type MockListStorageMockRecorder struct {
// contains filtered or unexported fields
}
MockListStorageMockRecorder is the mock recorder for MockListStorage.
func (*MockListStorageMockRecorder) AddRawRecord ¶
func (mr *MockListStorageMockRecorder) AddRawRecord(ctx, rec any) *gomock.Call
AddRawRecord indicates an expected call of AddRawRecord.
func (*MockListStorageMockRecorder) GetRawRecord ¶
func (mr *MockListStorageMockRecorder) GetRawRecord(ctx, id any) *gomock.Call
GetRawRecord indicates an expected call of GetRawRecord.
func (*MockListStorageMockRecorder) Head ¶
func (mr *MockListStorageMockRecorder) Head() *gomock.Call
Head indicates an expected call of Head.
func (*MockListStorageMockRecorder) Id ¶
func (mr *MockListStorageMockRecorder) Id() *gomock.Call
Id indicates an expected call of Id.
func (*MockListStorageMockRecorder) Root ¶
func (mr *MockListStorageMockRecorder) Root() *gomock.Call
Root indicates an expected call of Root.