forked from coinbase/mesh-sdk-go
/
handler.go
72 lines (55 loc) · 3.17 KB
/
handler.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
// Code generated by mockery v1.0.0. DO NOT EDIT.
package reconciler
import (
context "context"
mock "github.com/stretchr/testify/mock"
types "github.com/HelloKashif/rosetta-sdk-go/types"
)
// Handler is an autogenerated mock type for the Handler type
type Handler struct {
mock.Mock
}
// ReconciliationExempt provides a mock function with given fields: ctx, reconciliationType, account, currency, computedBalance, liveBalance, block, exemption
func (_m *Handler) ReconciliationExempt(ctx context.Context, reconciliationType string, account *types.AccountIdentifier, currency *types.Currency, computedBalance string, liveBalance string, block *types.BlockIdentifier, exemption *types.BalanceExemption) error {
ret := _m.Called(ctx, reconciliationType, account, currency, computedBalance, liveBalance, block, exemption)
var r0 error
if rf, ok := ret.Get(0).(func(context.Context, string, *types.AccountIdentifier, *types.Currency, string, string, *types.BlockIdentifier, *types.BalanceExemption) error); ok {
r0 = rf(ctx, reconciliationType, account, currency, computedBalance, liveBalance, block, exemption)
} else {
r0 = ret.Error(0)
}
return r0
}
// ReconciliationFailed provides a mock function with given fields: ctx, reconciliationType, account, currency, computedBalance, liveBalance, block
func (_m *Handler) ReconciliationFailed(ctx context.Context, reconciliationType string, account *types.AccountIdentifier, currency *types.Currency, computedBalance string, liveBalance string, block *types.BlockIdentifier) error {
ret := _m.Called(ctx, reconciliationType, account, currency, computedBalance, liveBalance, block)
var r0 error
if rf, ok := ret.Get(0).(func(context.Context, string, *types.AccountIdentifier, *types.Currency, string, string, *types.BlockIdentifier) error); ok {
r0 = rf(ctx, reconciliationType, account, currency, computedBalance, liveBalance, block)
} else {
r0 = ret.Error(0)
}
return r0
}
// ReconciliationSkipped provides a mock function with given fields: ctx, reconciliationType, account, currency, cause
func (_m *Handler) ReconciliationSkipped(ctx context.Context, reconciliationType string, account *types.AccountIdentifier, currency *types.Currency, cause string) error {
ret := _m.Called(ctx, reconciliationType, account, currency, cause)
var r0 error
if rf, ok := ret.Get(0).(func(context.Context, string, *types.AccountIdentifier, *types.Currency, string) error); ok {
r0 = rf(ctx, reconciliationType, account, currency, cause)
} else {
r0 = ret.Error(0)
}
return r0
}
// ReconciliationSucceeded provides a mock function with given fields: ctx, reconciliationType, account, currency, balance, block
func (_m *Handler) ReconciliationSucceeded(ctx context.Context, reconciliationType string, account *types.AccountIdentifier, currency *types.Currency, balance string, block *types.BlockIdentifier) error {
ret := _m.Called(ctx, reconciliationType, account, currency, balance, block)
var r0 error
if rf, ok := ret.Get(0).(func(context.Context, string, *types.AccountIdentifier, *types.Currency, string, *types.BlockIdentifier) error); ok {
r0 = rf(ctx, reconciliationType, account, currency, balance, block)
} else {
r0 = ret.Error(0)
}
return r0
}