-
Notifications
You must be signed in to change notification settings - Fork 69
/
mocks.go
102 lines (72 loc) · 2.55 KB
/
mocks.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
//revive:disable:exported
package clientlists
import (
"context"
"github.com/stretchr/testify/mock"
)
// Mock is ClientList API Mock
type Mock struct {
mock.Mock
}
var _ ClientLists = &Mock{}
// GetClientLists return list of client lists
func (p *Mock) GetClientLists(ctx context.Context, params GetClientListsRequest) (*GetClientListsResponse, error) {
args := p.Called(ctx, params)
if args.Get(0) == nil {
return nil, args.Error(1)
}
return args.Get(0).(*GetClientListsResponse), args.Error(1)
}
func (p *Mock) GetClientList(ctx context.Context, params GetClientListRequest) (*GetClientListResponse, error) {
args := p.Called(ctx, params)
if args.Get(0) == nil {
return nil, args.Error(1)
}
return args.Get(0).(*GetClientListResponse), args.Error(1)
}
func (p *Mock) CreateClientList(ctx context.Context, params CreateClientListRequest) (*CreateClientListResponse, error) {
args := p.Called(ctx, params)
if args.Get(0) == nil {
return nil, args.Error(1)
}
return args.Get(0).(*CreateClientListResponse), args.Error(1)
}
func (p *Mock) UpdateClientList(ctx context.Context, params UpdateClientListRequest) (*UpdateClientListResponse, error) {
args := p.Called(ctx, params)
if args.Get(0) == nil {
return nil, args.Error(1)
}
return args.Get(0).(*UpdateClientListResponse), args.Error(1)
}
func (p *Mock) UpdateClientListItems(ctx context.Context, params UpdateClientListItemsRequest) (*UpdateClientListItemsResponse, error) {
args := p.Called(ctx, params)
if args.Get(0) == nil {
return nil, args.Error(1)
}
return args.Get(0).(*UpdateClientListItemsResponse), args.Error(1)
}
func (p *Mock) DeleteClientList(ctx context.Context, params DeleteClientListRequest) error {
args := p.Called(ctx, params)
return args.Error(0)
}
func (p *Mock) GetActivation(ctx context.Context, params GetActivationRequest) (*GetActivationResponse, error) {
args := p.Called(ctx, params)
if args.Get(0) == nil {
return nil, args.Error(1)
}
return args.Get(0).(*GetActivationResponse), args.Error(1)
}
func (p *Mock) GetActivationStatus(ctx context.Context, params GetActivationStatusRequest) (*GetActivationStatusResponse, error) {
args := p.Called(ctx, params)
if args.Get(0) == nil {
return nil, args.Error(1)
}
return args.Get(0).(*GetActivationStatusResponse), args.Error(1)
}
func (p *Mock) CreateActivation(ctx context.Context, params CreateActivationRequest) (*CreateActivationResponse, error) {
args := p.Called(ctx, params)
if args.Get(0) == nil {
return nil, args.Error(1)
}
return args.Get(0).(*CreateActivationResponse), args.Error(1)
}