/
depositors_total_mock.go
47 lines (37 loc) · 1.26 KB
/
depositors_total_mock.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
package view
import (
"github.com/stretchr/testify/mock"
"github.com/crypto-com/chain-indexing/appinterface/rdb"
)
type MockDepositorsTotalView struct {
mock.Mock
}
func NewMockDepositorsTotalView(_ *rdb.Handle) DepositorsTotal {
return &MockDepositorsTotalView{}
}
func (view *MockDepositorsTotalView) Set(identity string, total int64) error {
mockArgs := view.Called(identity, total)
return mockArgs.Error(0)
}
func (view *MockDepositorsTotalView) Increment(identity string, total int64) error {
mockArgs := view.Called(identity, total)
return mockArgs.Error(0)
}
func (view *MockDepositorsTotalView) IncrementAll(identities []string, total int64) error {
mockArgs := view.Called(identities, total)
return mockArgs.Error(0)
}
func (view *MockDepositorsTotalView) DecrementAll(identities []string, total int64) error {
mockArgs := view.Called(identities, total)
return mockArgs.Error(0)
}
func (view *MockDepositorsTotalView) FindBy(identity string) (int64, error) {
mockArgs := view.Called(identity)
result, _ := mockArgs.Get(0).(int64)
return result, mockArgs.Error(1)
}
func (view *MockDepositorsTotalView) SumBy(identities []string) (int64, error) {
mockArgs := view.Called(identities)
result, _ := mockArgs.Get(0).(int64)
return result, mockArgs.Error(1)
}