-
Notifications
You must be signed in to change notification settings - Fork 244
/
appstore.go
98 lines (84 loc) · 3.45 KB
/
appstore.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
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/awa/go-iap/appstore (interfaces: IAPClient)
//
// Generated by this command:
//
// mockgen -destination=mocks/appstore.go -package=mocks github.com/awa/go-iap/appstore IAPClient
//
// Package mocks is a generated GoMock package.
package mocks
import (
context "context"
reflect "reflect"
appstore "github.com/awa/go-iap/appstore"
jwt "github.com/golang-jwt/jwt/v4"
gomock "go.uber.org/mock/gomock"
)
// MockIAPClient is a mock of IAPClient interface.
type MockIAPClient struct {
ctrl *gomock.Controller
recorder *MockIAPClientMockRecorder
}
// MockIAPClientMockRecorder is the mock recorder for MockIAPClient.
type MockIAPClientMockRecorder struct {
mock *MockIAPClient
}
// NewMockIAPClient creates a new mock instance.
func NewMockIAPClient(ctrl *gomock.Controller) *MockIAPClient {
mock := &MockIAPClient{ctrl: ctrl}
mock.recorder = &MockIAPClientMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockIAPClient) EXPECT() *MockIAPClientMockRecorder {
return m.recorder
}
// ParseNotificationV2 mocks base method.
func (m *MockIAPClient) ParseNotificationV2(arg0 string, arg1 *jwt.Token) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ParseNotificationV2", arg0, arg1)
ret0, _ := ret[0].(error)
return ret0
}
// ParseNotificationV2 indicates an expected call of ParseNotificationV2.
func (mr *MockIAPClientMockRecorder) ParseNotificationV2(arg0, arg1 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ParseNotificationV2", reflect.TypeOf((*MockIAPClient)(nil).ParseNotificationV2), arg0, arg1)
}
// ParseNotificationV2WithClaim mocks base method.
func (m *MockIAPClient) ParseNotificationV2WithClaim(arg0 string, arg1 jwt.Claims) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ParseNotificationV2WithClaim", arg0, arg1)
ret0, _ := ret[0].(error)
return ret0
}
// ParseNotificationV2WithClaim indicates an expected call of ParseNotificationV2WithClaim.
func (mr *MockIAPClientMockRecorder) ParseNotificationV2WithClaim(arg0, arg1 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ParseNotificationV2WithClaim", reflect.TypeOf((*MockIAPClient)(nil).ParseNotificationV2WithClaim), arg0, arg1)
}
// Verify mocks base method.
func (m *MockIAPClient) Verify(arg0 context.Context, arg1 appstore.IAPRequest, arg2 any) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Verify", arg0, arg1, arg2)
ret0, _ := ret[0].(error)
return ret0
}
// Verify indicates an expected call of Verify.
func (mr *MockIAPClientMockRecorder) Verify(arg0, arg1, arg2 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Verify", reflect.TypeOf((*MockIAPClient)(nil).Verify), arg0, arg1, arg2)
}
// VerifyWithStatus mocks base method.
func (m *MockIAPClient) VerifyWithStatus(arg0 context.Context, arg1 appstore.IAPRequest, arg2 any) (int, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "VerifyWithStatus", arg0, arg1, arg2)
ret0, _ := ret[0].(int)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// VerifyWithStatus indicates an expected call of VerifyWithStatus.
func (mr *MockIAPClientMockRecorder) VerifyWithStatus(arg0, arg1, arg2 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "VerifyWithStatus", reflect.TypeOf((*MockIAPClient)(nil).VerifyWithStatus), arg0, arg1, arg2)
}