Documentation ¶
Overview ¶
Package mock is a generated GoMock package.
Index ¶
- type MockService
- func (m *MockService) EXPECT() *MockServiceMockRecorder
- func (m *MockService) GetBlacklist() service.Blacklist
- func (m *MockService) GetPDVDelta(ctx context.Context, owner string) (types.Dec, error)
- func (m *MockService) GetPDVMeta(ctx context.Context, owner string, id uint64) (*entities.PDVMeta, error)
- func (m *MockService) GetPDVRewardsNextDistributionDate(ctx context.Context) (time.Time, error)
- func (m *MockService) GetPDVTotalDelta(ctx context.Context) (types.Dec, error)
- func (m *MockService) GetProfiles(ctx context.Context, owner []string) ([]*entities.Profile, error)
- func (m *MockService) GetRewardsMap() service.RewardMap
- func (m *MockService) ListPDV(ctx context.Context, owner string, from uint64, limit uint16) ([]uint64, error)
- func (m *MockService) ReceivePDV(ctx context.Context, owner string, id uint64) ([]byte, error)
- func (m *MockService) SaveImage(ctx context.Context, r io.Reader, owner string) (string, string, error)
- func (m *MockService) SavePDV(ctx context.Context, p schema.PDVWrapper, owner types.AccAddress) (uint64, *entities.PDVMeta, error)
- type MockServiceMockRecorder
- func (mr *MockServiceMockRecorder) GetBlacklist() *gomock.Call
- func (mr *MockServiceMockRecorder) GetPDVDelta(ctx, owner interface{}) *gomock.Call
- func (mr *MockServiceMockRecorder) GetPDVMeta(ctx, owner, id interface{}) *gomock.Call
- func (mr *MockServiceMockRecorder) GetPDVRewardsNextDistributionDate(ctx interface{}) *gomock.Call
- func (mr *MockServiceMockRecorder) GetPDVTotalDelta(ctx interface{}) *gomock.Call
- func (mr *MockServiceMockRecorder) GetProfiles(ctx, owner interface{}) *gomock.Call
- func (mr *MockServiceMockRecorder) GetRewardsMap() *gomock.Call
- func (mr *MockServiceMockRecorder) ListPDV(ctx, owner, from, limit interface{}) *gomock.Call
- func (mr *MockServiceMockRecorder) ReceivePDV(ctx, owner, id interface{}) *gomock.Call
- func (mr *MockServiceMockRecorder) SaveImage(ctx, r, owner interface{}) *gomock.Call
- func (mr *MockServiceMockRecorder) SavePDV(ctx, p, owner interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockService ¶
type MockService struct {
// contains filtered or unexported fields
}
MockService is a mock of Service interface
func NewMockService ¶
func NewMockService(ctrl *gomock.Controller) *MockService
NewMockService creates a new mock instance
func (*MockService) EXPECT ¶
func (m *MockService) EXPECT() *MockServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockService) GetBlacklist ¶ added in v1.4.0
func (m *MockService) GetBlacklist() service.Blacklist
GetBlacklist mocks base method
func (*MockService) GetPDVDelta ¶ added in v1.5.4
GetPDVDelta mocks base method
func (*MockService) GetPDVMeta ¶
func (m *MockService) GetPDVMeta(ctx context.Context, owner string, id uint64) (*entities.PDVMeta, error)
GetPDVMeta mocks base method
func (*MockService) GetPDVRewardsNextDistributionDate ¶ added in v1.5.4
GetPDVRewardsNextDistributionDate mocks base method
func (*MockService) GetPDVTotalDelta ¶ added in v1.5.4
GetPDVTotalDelta mocks base method
func (*MockService) GetProfiles ¶ added in v1.2.0
GetProfiles mocks base method
func (*MockService) GetRewardsMap ¶ added in v1.2.0
func (m *MockService) GetRewardsMap() service.RewardMap
GetRewardsMap mocks base method
func (*MockService) ListPDV ¶
func (m *MockService) ListPDV(ctx context.Context, owner string, from uint64, limit uint16) ([]uint64, error)
ListPDV mocks base method
func (*MockService) ReceivePDV ¶
ReceivePDV mocks base method
func (*MockService) SaveImage ¶ added in v1.3.0
func (m *MockService) SaveImage(ctx context.Context, r io.Reader, owner string) (string, string, error)
SaveImage mocks base method
func (*MockService) SavePDV ¶
func (m *MockService) SavePDV(ctx context.Context, p schema.PDVWrapper, owner types.AccAddress) (uint64, *entities.PDVMeta, error)
SavePDV mocks base method
type MockServiceMockRecorder ¶
type MockServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockServiceMockRecorder is the mock recorder for MockService
func (*MockServiceMockRecorder) GetBlacklist ¶ added in v1.4.0
func (mr *MockServiceMockRecorder) GetBlacklist() *gomock.Call
GetBlacklist indicates an expected call of GetBlacklist
func (*MockServiceMockRecorder) GetPDVDelta ¶ added in v1.5.4
func (mr *MockServiceMockRecorder) GetPDVDelta(ctx, owner interface{}) *gomock.Call
GetPDVDelta indicates an expected call of GetPDVDelta
func (*MockServiceMockRecorder) GetPDVMeta ¶
func (mr *MockServiceMockRecorder) GetPDVMeta(ctx, owner, id interface{}) *gomock.Call
GetPDVMeta indicates an expected call of GetPDVMeta
func (*MockServiceMockRecorder) GetPDVRewardsNextDistributionDate ¶ added in v1.5.4
func (mr *MockServiceMockRecorder) GetPDVRewardsNextDistributionDate(ctx interface{}) *gomock.Call
GetPDVRewardsNextDistributionDate indicates an expected call of GetPDVRewardsNextDistributionDate
func (*MockServiceMockRecorder) GetPDVTotalDelta ¶ added in v1.5.4
func (mr *MockServiceMockRecorder) GetPDVTotalDelta(ctx interface{}) *gomock.Call
GetPDVTotalDelta indicates an expected call of GetPDVTotalDelta
func (*MockServiceMockRecorder) GetProfiles ¶ added in v1.2.0
func (mr *MockServiceMockRecorder) GetProfiles(ctx, owner interface{}) *gomock.Call
GetProfiles indicates an expected call of GetProfiles
func (*MockServiceMockRecorder) GetRewardsMap ¶ added in v1.2.0
func (mr *MockServiceMockRecorder) GetRewardsMap() *gomock.Call
GetRewardsMap indicates an expected call of GetRewardsMap
func (*MockServiceMockRecorder) ListPDV ¶
func (mr *MockServiceMockRecorder) ListPDV(ctx, owner, from, limit interface{}) *gomock.Call
ListPDV indicates an expected call of ListPDV
func (*MockServiceMockRecorder) ReceivePDV ¶
func (mr *MockServiceMockRecorder) ReceivePDV(ctx, owner, id interface{}) *gomock.Call
ReceivePDV indicates an expected call of ReceivePDV
func (*MockServiceMockRecorder) SaveImage ¶ added in v1.3.0
func (mr *MockServiceMockRecorder) SaveImage(ctx, r, owner interface{}) *gomock.Call
SaveImage indicates an expected call of SaveImage
func (*MockServiceMockRecorder) SavePDV ¶
func (mr *MockServiceMockRecorder) SavePDV(ctx, p, owner interface{}) *gomock.Call
SavePDV indicates an expected call of SavePDV