-
Notifications
You must be signed in to change notification settings - Fork 211
/
nipost_mocks.go
164 lines (139 loc) · 6.04 KB
/
nipost_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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
// Code generated by MockGen. DO NOT EDIT.
// Source: ./nipost.go
// Package activation is a generated GoMock package.
package activation
import (
context "context"
reflect "reflect"
gomock "github.com/golang/mock/gomock"
types "github.com/spacemeshos/go-spacemesh/common/types"
)
// MockPoetProvingServiceClient is a mock of PoetProvingServiceClient interface.
type MockPoetProvingServiceClient struct {
ctrl *gomock.Controller
recorder *MockPoetProvingServiceClientMockRecorder
}
// MockPoetProvingServiceClientMockRecorder is the mock recorder for MockPoetProvingServiceClient.
type MockPoetProvingServiceClientMockRecorder struct {
mock *MockPoetProvingServiceClient
}
// NewMockPoetProvingServiceClient creates a new mock instance.
func NewMockPoetProvingServiceClient(ctrl *gomock.Controller) *MockPoetProvingServiceClient {
mock := &MockPoetProvingServiceClient{ctrl: ctrl}
mock.recorder = &MockPoetProvingServiceClientMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockPoetProvingServiceClient) EXPECT() *MockPoetProvingServiceClientMockRecorder {
return m.recorder
}
// Address mocks base method.
func (m *MockPoetProvingServiceClient) Address() string {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Address")
ret0, _ := ret[0].(string)
return ret0
}
// Address indicates an expected call of Address.
func (mr *MockPoetProvingServiceClientMockRecorder) Address() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Address", reflect.TypeOf((*MockPoetProvingServiceClient)(nil).Address))
}
// PoetServiceID mocks base method.
func (m *MockPoetProvingServiceClient) PoetServiceID(arg0 context.Context) (types.PoetServiceID, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "PoetServiceID", arg0)
ret0, _ := ret[0].(types.PoetServiceID)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// PoetServiceID indicates an expected call of PoetServiceID.
func (mr *MockPoetProvingServiceClientMockRecorder) PoetServiceID(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PoetServiceID", reflect.TypeOf((*MockPoetProvingServiceClient)(nil).PoetServiceID), arg0)
}
// PowParams mocks base method.
func (m *MockPoetProvingServiceClient) PowParams(ctx context.Context) (*PoetPowParams, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "PowParams", ctx)
ret0, _ := ret[0].(*PoetPowParams)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// PowParams indicates an expected call of PowParams.
func (mr *MockPoetProvingServiceClientMockRecorder) PowParams(ctx interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PowParams", reflect.TypeOf((*MockPoetProvingServiceClient)(nil).PowParams), ctx)
}
// Proof mocks base method.
func (m *MockPoetProvingServiceClient) Proof(ctx context.Context, roundID string) (*types.PoetProofMessage, []types.Member, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Proof", ctx, roundID)
ret0, _ := ret[0].(*types.PoetProofMessage)
ret1, _ := ret[1].([]types.Member)
ret2, _ := ret[2].(error)
return ret0, ret1, ret2
}
// Proof indicates an expected call of Proof.
func (mr *MockPoetProvingServiceClientMockRecorder) Proof(ctx, roundID interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Proof", reflect.TypeOf((*MockPoetProvingServiceClient)(nil).Proof), ctx, roundID)
}
// Submit mocks base method.
func (m *MockPoetProvingServiceClient) Submit(ctx context.Context, prefix, challenge []byte, signature types.EdSignature, nodeID types.NodeID, pow PoetPoW) (*types.PoetRound, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Submit", ctx, prefix, challenge, signature, nodeID, pow)
ret0, _ := ret[0].(*types.PoetRound)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Submit indicates an expected call of Submit.
func (mr *MockPoetProvingServiceClientMockRecorder) Submit(ctx, prefix, challenge, signature, nodeID, pow interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Submit", reflect.TypeOf((*MockPoetProvingServiceClient)(nil).Submit), ctx, prefix, challenge, signature, nodeID, pow)
}
// MockpoetDbAPI is a mock of poetDbAPI interface.
type MockpoetDbAPI struct {
ctrl *gomock.Controller
recorder *MockpoetDbAPIMockRecorder
}
// MockpoetDbAPIMockRecorder is the mock recorder for MockpoetDbAPI.
type MockpoetDbAPIMockRecorder struct {
mock *MockpoetDbAPI
}
// NewMockpoetDbAPI creates a new mock instance.
func NewMockpoetDbAPI(ctrl *gomock.Controller) *MockpoetDbAPI {
mock := &MockpoetDbAPI{ctrl: ctrl}
mock.recorder = &MockpoetDbAPIMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockpoetDbAPI) EXPECT() *MockpoetDbAPIMockRecorder {
return m.recorder
}
// GetProof mocks base method.
func (m *MockpoetDbAPI) GetProof(arg0 types.PoetProofRef) (*types.PoetProof, *types.Hash32, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetProof", arg0)
ret0, _ := ret[0].(*types.PoetProof)
ret1, _ := ret[1].(*types.Hash32)
ret2, _ := ret[2].(error)
return ret0, ret1, ret2
}
// GetProof indicates an expected call of GetProof.
func (mr *MockpoetDbAPIMockRecorder) GetProof(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetProof", reflect.TypeOf((*MockpoetDbAPI)(nil).GetProof), arg0)
}
// ValidateAndStore mocks base method.
func (m *MockpoetDbAPI) ValidateAndStore(ctx context.Context, proofMessage *types.PoetProofMessage) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ValidateAndStore", ctx, proofMessage)
ret0, _ := ret[0].(error)
return ret0
}
// ValidateAndStore indicates an expected call of ValidateAndStore.
func (mr *MockpoetDbAPIMockRecorder) ValidateAndStore(ctx, proofMessage interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidateAndStore", reflect.TypeOf((*MockpoetDbAPI)(nil).ValidateAndStore), ctx, proofMessage)
}