Documentation
¶
Overview ¶
Code generated by MockGen. DO NOT EDIT. Source: repository.go
Generated by this command:
mockgen -source=repository.go -destination=../mock/bigmapdiff/mock.go -package=bigmapdiff -typed
Package bigmapdiff is a generated GoMock package.
Index ¶
- type MockRepository
- func (m *MockRepository) Count(ctx context.Context, ptr int64) (int, error)
- func (m *MockRepository) Current(ctx context.Context, keyHash string, ptr int64) (bigmapdiff.BigMapState, error)
- func (m *MockRepository) EXPECT() *MockRepositoryMockRecorder
- func (m *MockRepository) Get(ctx context.Context, reqCtx bigmapdiff.GetContext) ([]bigmapdiff.Bucket, error)
- func (m *MockRepository) GetByPtr(ctx context.Context, contract string, ptr int64) ([]bigmapdiff.BigMapState, error)
- func (m *MockRepository) GetByPtrAndKeyHash(ctx context.Context, ptr int64, keyHash string, size, offset int64) ([]bigmapdiff.BigMapDiff, int64, error)
- func (m *MockRepository) GetForAddress(ctx context.Context, address string) ([]bigmapdiff.BigMapState, error)
- func (m *MockRepository) GetForOperation(ctx context.Context, id int64) ([]bigmapdiff.BigMapDiff, error)
- func (m *MockRepository) GetStats(ctx context.Context, ptr int64) (bigmapdiff.Stats, error)
- func (m *MockRepository) Keys(ctx context.Context, reqCtx bigmapdiff.GetContext) ([]bigmapdiff.BigMapState, error)
- func (m *MockRepository) Previous(ctx context.Context, diffs []bigmapdiff.BigMapDiff) ([]bigmapdiff.BigMapDiff, error)
- type MockRepositoryMockRecorder
- func (mr *MockRepositoryMockRecorder) Count(ctx, ptr any) *RepositoryCountCall
- func (mr *MockRepositoryMockRecorder) Current(ctx, keyHash, ptr any) *RepositoryCurrentCall
- func (mr *MockRepositoryMockRecorder) Get(ctx, reqCtx any) *RepositoryGetCall
- func (mr *MockRepositoryMockRecorder) GetByPtr(ctx, contract, ptr any) *RepositoryGetByPtrCall
- func (mr *MockRepositoryMockRecorder) GetByPtrAndKeyHash(ctx, ptr, keyHash, size, offset any) *RepositoryGetByPtrAndKeyHashCall
- func (mr *MockRepositoryMockRecorder) GetForAddress(ctx, address any) *RepositoryGetForAddressCall
- func (mr *MockRepositoryMockRecorder) GetForOperation(ctx, id any) *RepositoryGetForOperationCall
- func (mr *MockRepositoryMockRecorder) GetStats(ctx, ptr any) *RepositoryGetStatsCall
- func (mr *MockRepositoryMockRecorder) Keys(ctx, reqCtx any) *RepositoryKeysCall
- func (mr *MockRepositoryMockRecorder) Previous(ctx, diffs any) *RepositoryPreviousCall
- type RepositoryCountCall
- type RepositoryCurrentCall
- func (c *RepositoryCurrentCall) Do(f func(context.Context, string, int64) (bigmapdiff.BigMapState, error)) *RepositoryCurrentCall
- func (c *RepositoryCurrentCall) DoAndReturn(f func(context.Context, string, int64) (bigmapdiff.BigMapState, error)) *RepositoryCurrentCall
- func (c *RepositoryCurrentCall) Return(arg0 bigmapdiff.BigMapState, arg1 error) *RepositoryCurrentCall
- type RepositoryGetByPtrAndKeyHashCall
- func (c *RepositoryGetByPtrAndKeyHashCall) Do(...) *RepositoryGetByPtrAndKeyHashCall
- func (c *RepositoryGetByPtrAndKeyHashCall) DoAndReturn(...) *RepositoryGetByPtrAndKeyHashCall
- func (c *RepositoryGetByPtrAndKeyHashCall) Return(arg0 []bigmapdiff.BigMapDiff, arg1 int64, arg2 error) *RepositoryGetByPtrAndKeyHashCall
- type RepositoryGetByPtrCall
- func (c *RepositoryGetByPtrCall) Do(f func(context.Context, string, int64) ([]bigmapdiff.BigMapState, error)) *RepositoryGetByPtrCall
- func (c *RepositoryGetByPtrCall) DoAndReturn(f func(context.Context, string, int64) ([]bigmapdiff.BigMapState, error)) *RepositoryGetByPtrCall
- func (c *RepositoryGetByPtrCall) Return(arg0 []bigmapdiff.BigMapState, arg1 error) *RepositoryGetByPtrCall
- type RepositoryGetCall
- func (c *RepositoryGetCall) Do(f func(context.Context, bigmapdiff.GetContext) ([]bigmapdiff.Bucket, error)) *RepositoryGetCall
- func (c *RepositoryGetCall) DoAndReturn(f func(context.Context, bigmapdiff.GetContext) ([]bigmapdiff.Bucket, error)) *RepositoryGetCall
- func (c *RepositoryGetCall) Return(arg0 []bigmapdiff.Bucket, arg1 error) *RepositoryGetCall
- type RepositoryGetForAddressCall
- func (c *RepositoryGetForAddressCall) Do(f func(context.Context, string) ([]bigmapdiff.BigMapState, error)) *RepositoryGetForAddressCall
- func (c *RepositoryGetForAddressCall) DoAndReturn(f func(context.Context, string) ([]bigmapdiff.BigMapState, error)) *RepositoryGetForAddressCall
- func (c *RepositoryGetForAddressCall) Return(arg0 []bigmapdiff.BigMapState, arg1 error) *RepositoryGetForAddressCall
- type RepositoryGetForOperationCall
- func (c *RepositoryGetForOperationCall) Do(f func(context.Context, int64) ([]bigmapdiff.BigMapDiff, error)) *RepositoryGetForOperationCall
- func (c *RepositoryGetForOperationCall) DoAndReturn(f func(context.Context, int64) ([]bigmapdiff.BigMapDiff, error)) *RepositoryGetForOperationCall
- func (c *RepositoryGetForOperationCall) Return(arg0 []bigmapdiff.BigMapDiff, arg1 error) *RepositoryGetForOperationCall
- type RepositoryGetStatsCall
- func (c *RepositoryGetStatsCall) Do(f func(context.Context, int64) (bigmapdiff.Stats, error)) *RepositoryGetStatsCall
- func (c *RepositoryGetStatsCall) DoAndReturn(f func(context.Context, int64) (bigmapdiff.Stats, error)) *RepositoryGetStatsCall
- func (c *RepositoryGetStatsCall) Return(arg0 bigmapdiff.Stats, arg1 error) *RepositoryGetStatsCall
- type RepositoryKeysCall
- type RepositoryPreviousCall
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockRepository ¶
type MockRepository struct {
// contains filtered or unexported fields
}
MockRepository is a mock of Repository interface.
func NewMockRepository ¶
func NewMockRepository(ctrl *gomock.Controller) *MockRepository
NewMockRepository creates a new mock instance.
func (*MockRepository) Current ¶
func (m *MockRepository) Current(ctx context.Context, keyHash string, ptr int64) (bigmapdiff.BigMapState, error)
Current mocks base method.
func (*MockRepository) EXPECT ¶
func (m *MockRepository) EXPECT() *MockRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRepository) Get ¶
func (m *MockRepository) Get(ctx context.Context, reqCtx bigmapdiff.GetContext) ([]bigmapdiff.Bucket, error)
Get mocks base method.
func (*MockRepository) GetByPtr ¶
func (m *MockRepository) GetByPtr(ctx context.Context, contract string, ptr int64) ([]bigmapdiff.BigMapState, error)
GetByPtr mocks base method.
func (*MockRepository) GetByPtrAndKeyHash ¶
func (m *MockRepository) GetByPtrAndKeyHash(ctx context.Context, ptr int64, keyHash string, size, offset int64) ([]bigmapdiff.BigMapDiff, int64, error)
GetByPtrAndKeyHash mocks base method.
func (*MockRepository) GetForAddress ¶
func (m *MockRepository) GetForAddress(ctx context.Context, address string) ([]bigmapdiff.BigMapState, error)
GetForAddress mocks base method.
func (*MockRepository) GetForOperation ¶
func (m *MockRepository) GetForOperation(ctx context.Context, id int64) ([]bigmapdiff.BigMapDiff, error)
GetForOperation mocks base method.
func (*MockRepository) GetStats ¶
func (m *MockRepository) GetStats(ctx context.Context, ptr int64) (bigmapdiff.Stats, error)
GetStats mocks base method.
func (*MockRepository) Keys ¶
func (m *MockRepository) Keys(ctx context.Context, reqCtx bigmapdiff.GetContext) ([]bigmapdiff.BigMapState, error)
Keys mocks base method.
func (*MockRepository) Previous ¶
func (m *MockRepository) Previous(ctx context.Context, diffs []bigmapdiff.BigMapDiff) ([]bigmapdiff.BigMapDiff, error)
Previous mocks base method.
type MockRepositoryMockRecorder ¶
type MockRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockRepositoryMockRecorder is the mock recorder for MockRepository.
func (*MockRepositoryMockRecorder) Count ¶
func (mr *MockRepositoryMockRecorder) Count(ctx, ptr any) *RepositoryCountCall
Count indicates an expected call of Count.
func (*MockRepositoryMockRecorder) Current ¶
func (mr *MockRepositoryMockRecorder) Current(ctx, keyHash, ptr any) *RepositoryCurrentCall
Current indicates an expected call of Current.
func (*MockRepositoryMockRecorder) Get ¶
func (mr *MockRepositoryMockRecorder) Get(ctx, reqCtx any) *RepositoryGetCall
Get indicates an expected call of Get.
func (*MockRepositoryMockRecorder) GetByPtr ¶
func (mr *MockRepositoryMockRecorder) GetByPtr(ctx, contract, ptr any) *RepositoryGetByPtrCall
GetByPtr indicates an expected call of GetByPtr.
func (*MockRepositoryMockRecorder) GetByPtrAndKeyHash ¶
func (mr *MockRepositoryMockRecorder) GetByPtrAndKeyHash(ctx, ptr, keyHash, size, offset any) *RepositoryGetByPtrAndKeyHashCall
GetByPtrAndKeyHash indicates an expected call of GetByPtrAndKeyHash.
func (*MockRepositoryMockRecorder) GetForAddress ¶
func (mr *MockRepositoryMockRecorder) GetForAddress(ctx, address any) *RepositoryGetForAddressCall
GetForAddress indicates an expected call of GetForAddress.
func (*MockRepositoryMockRecorder) GetForOperation ¶
func (mr *MockRepositoryMockRecorder) GetForOperation(ctx, id any) *RepositoryGetForOperationCall
GetForOperation indicates an expected call of GetForOperation.
func (*MockRepositoryMockRecorder) GetStats ¶
func (mr *MockRepositoryMockRecorder) GetStats(ctx, ptr any) *RepositoryGetStatsCall
GetStats indicates an expected call of GetStats.
func (*MockRepositoryMockRecorder) Keys ¶
func (mr *MockRepositoryMockRecorder) Keys(ctx, reqCtx any) *RepositoryKeysCall
Keys indicates an expected call of Keys.
func (*MockRepositoryMockRecorder) Previous ¶
func (mr *MockRepositoryMockRecorder) Previous(ctx, diffs any) *RepositoryPreviousCall
Previous indicates an expected call of Previous.
type RepositoryCountCall ¶
RepositoryCountCall wrap *gomock.Call
func (*RepositoryCountCall) Do ¶
func (c *RepositoryCountCall) Do(f func(context.Context, int64) (int, error)) *RepositoryCountCall
Do rewrite *gomock.Call.Do
func (*RepositoryCountCall) DoAndReturn ¶
func (c *RepositoryCountCall) DoAndReturn(f func(context.Context, int64) (int, error)) *RepositoryCountCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*RepositoryCountCall) Return ¶
func (c *RepositoryCountCall) Return(arg0 int, arg1 error) *RepositoryCountCall
Return rewrite *gomock.Call.Return
type RepositoryCurrentCall ¶
RepositoryCurrentCall wrap *gomock.Call
func (*RepositoryCurrentCall) Do ¶
func (c *RepositoryCurrentCall) Do(f func(context.Context, string, int64) (bigmapdiff.BigMapState, error)) *RepositoryCurrentCall
Do rewrite *gomock.Call.Do
func (*RepositoryCurrentCall) DoAndReturn ¶
func (c *RepositoryCurrentCall) DoAndReturn(f func(context.Context, string, int64) (bigmapdiff.BigMapState, error)) *RepositoryCurrentCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*RepositoryCurrentCall) Return ¶
func (c *RepositoryCurrentCall) Return(arg0 bigmapdiff.BigMapState, arg1 error) *RepositoryCurrentCall
Return rewrite *gomock.Call.Return
type RepositoryGetByPtrAndKeyHashCall ¶
RepositoryGetByPtrAndKeyHashCall wrap *gomock.Call
func (*RepositoryGetByPtrAndKeyHashCall) Do ¶
func (c *RepositoryGetByPtrAndKeyHashCall) Do(f func(context.Context, int64, string, int64, int64) ([]bigmapdiff.BigMapDiff, int64, error)) *RepositoryGetByPtrAndKeyHashCall
Do rewrite *gomock.Call.Do
func (*RepositoryGetByPtrAndKeyHashCall) DoAndReturn ¶
func (c *RepositoryGetByPtrAndKeyHashCall) DoAndReturn(f func(context.Context, int64, string, int64, int64) ([]bigmapdiff.BigMapDiff, int64, error)) *RepositoryGetByPtrAndKeyHashCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*RepositoryGetByPtrAndKeyHashCall) Return ¶
func (c *RepositoryGetByPtrAndKeyHashCall) Return(arg0 []bigmapdiff.BigMapDiff, arg1 int64, arg2 error) *RepositoryGetByPtrAndKeyHashCall
Return rewrite *gomock.Call.Return
type RepositoryGetByPtrCall ¶
RepositoryGetByPtrCall wrap *gomock.Call
func (*RepositoryGetByPtrCall) Do ¶
func (c *RepositoryGetByPtrCall) Do(f func(context.Context, string, int64) ([]bigmapdiff.BigMapState, error)) *RepositoryGetByPtrCall
Do rewrite *gomock.Call.Do
func (*RepositoryGetByPtrCall) DoAndReturn ¶
func (c *RepositoryGetByPtrCall) DoAndReturn(f func(context.Context, string, int64) ([]bigmapdiff.BigMapState, error)) *RepositoryGetByPtrCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*RepositoryGetByPtrCall) Return ¶
func (c *RepositoryGetByPtrCall) Return(arg0 []bigmapdiff.BigMapState, arg1 error) *RepositoryGetByPtrCall
Return rewrite *gomock.Call.Return
type RepositoryGetCall ¶
RepositoryGetCall wrap *gomock.Call
func (*RepositoryGetCall) Do ¶
func (c *RepositoryGetCall) Do(f func(context.Context, bigmapdiff.GetContext) ([]bigmapdiff.Bucket, error)) *RepositoryGetCall
Do rewrite *gomock.Call.Do
func (*RepositoryGetCall) DoAndReturn ¶
func (c *RepositoryGetCall) DoAndReturn(f func(context.Context, bigmapdiff.GetContext) ([]bigmapdiff.Bucket, error)) *RepositoryGetCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*RepositoryGetCall) Return ¶
func (c *RepositoryGetCall) Return(arg0 []bigmapdiff.Bucket, arg1 error) *RepositoryGetCall
Return rewrite *gomock.Call.Return
type RepositoryGetForAddressCall ¶
RepositoryGetForAddressCall wrap *gomock.Call
func (*RepositoryGetForAddressCall) Do ¶
func (c *RepositoryGetForAddressCall) Do(f func(context.Context, string) ([]bigmapdiff.BigMapState, error)) *RepositoryGetForAddressCall
Do rewrite *gomock.Call.Do
func (*RepositoryGetForAddressCall) DoAndReturn ¶
func (c *RepositoryGetForAddressCall) DoAndReturn(f func(context.Context, string) ([]bigmapdiff.BigMapState, error)) *RepositoryGetForAddressCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*RepositoryGetForAddressCall) Return ¶
func (c *RepositoryGetForAddressCall) Return(arg0 []bigmapdiff.BigMapState, arg1 error) *RepositoryGetForAddressCall
Return rewrite *gomock.Call.Return
type RepositoryGetForOperationCall ¶
RepositoryGetForOperationCall wrap *gomock.Call
func (*RepositoryGetForOperationCall) Do ¶
func (c *RepositoryGetForOperationCall) Do(f func(context.Context, int64) ([]bigmapdiff.BigMapDiff, error)) *RepositoryGetForOperationCall
Do rewrite *gomock.Call.Do
func (*RepositoryGetForOperationCall) DoAndReturn ¶
func (c *RepositoryGetForOperationCall) DoAndReturn(f func(context.Context, int64) ([]bigmapdiff.BigMapDiff, error)) *RepositoryGetForOperationCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*RepositoryGetForOperationCall) Return ¶
func (c *RepositoryGetForOperationCall) Return(arg0 []bigmapdiff.BigMapDiff, arg1 error) *RepositoryGetForOperationCall
Return rewrite *gomock.Call.Return
type RepositoryGetStatsCall ¶
RepositoryGetStatsCall wrap *gomock.Call
func (*RepositoryGetStatsCall) Do ¶
func (c *RepositoryGetStatsCall) Do(f func(context.Context, int64) (bigmapdiff.Stats, error)) *RepositoryGetStatsCall
Do rewrite *gomock.Call.Do
func (*RepositoryGetStatsCall) DoAndReturn ¶
func (c *RepositoryGetStatsCall) DoAndReturn(f func(context.Context, int64) (bigmapdiff.Stats, error)) *RepositoryGetStatsCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*RepositoryGetStatsCall) Return ¶
func (c *RepositoryGetStatsCall) Return(arg0 bigmapdiff.Stats, arg1 error) *RepositoryGetStatsCall
Return rewrite *gomock.Call.Return
type RepositoryKeysCall ¶
RepositoryKeysCall wrap *gomock.Call
func (*RepositoryKeysCall) Do ¶
func (c *RepositoryKeysCall) Do(f func(context.Context, bigmapdiff.GetContext) ([]bigmapdiff.BigMapState, error)) *RepositoryKeysCall
Do rewrite *gomock.Call.Do
func (*RepositoryKeysCall) DoAndReturn ¶
func (c *RepositoryKeysCall) DoAndReturn(f func(context.Context, bigmapdiff.GetContext) ([]bigmapdiff.BigMapState, error)) *RepositoryKeysCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*RepositoryKeysCall) Return ¶
func (c *RepositoryKeysCall) Return(states []bigmapdiff.BigMapState, err error) *RepositoryKeysCall
Return rewrite *gomock.Call.Return
type RepositoryPreviousCall ¶
RepositoryPreviousCall wrap *gomock.Call
func (*RepositoryPreviousCall) Do ¶
func (c *RepositoryPreviousCall) Do(f func(context.Context, []bigmapdiff.BigMapDiff) ([]bigmapdiff.BigMapDiff, error)) *RepositoryPreviousCall
Do rewrite *gomock.Call.Do
func (*RepositoryPreviousCall) DoAndReturn ¶
func (c *RepositoryPreviousCall) DoAndReturn(f func(context.Context, []bigmapdiff.BigMapDiff) ([]bigmapdiff.BigMapDiff, error)) *RepositoryPreviousCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*RepositoryPreviousCall) Return ¶
func (c *RepositoryPreviousCall) Return(arg0 []bigmapdiff.BigMapDiff, arg1 error) *RepositoryPreviousCall
Return rewrite *gomock.Call.Return