-
Notifications
You must be signed in to change notification settings - Fork 178
/
verifier.go
58 lines (45 loc) · 1.47 KB
/
verifier.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
// Code generated by mockery v1.0.0. DO NOT EDIT.
package mocks
import (
flow "github.com/onflow/flow-go/model/flow"
mock "github.com/stretchr/testify/mock"
model "github.com/onflow/flow-go/consensus/hotstuff/model"
)
// Verifier is an autogenerated mock type for the Verifier type
type Verifier struct {
mock.Mock
}
// VerifyQC provides a mock function with given fields: voterIDs, sigData, block
func (_m *Verifier) VerifyQC(voterIDs []flow.Identifier, sigData []byte, block *model.Block) (bool, error) {
ret := _m.Called(voterIDs, sigData, block)
var r0 bool
if rf, ok := ret.Get(0).(func([]flow.Identifier, []byte, *model.Block) bool); ok {
r0 = rf(voterIDs, sigData, block)
} else {
r0 = ret.Get(0).(bool)
}
var r1 error
if rf, ok := ret.Get(1).(func([]flow.Identifier, []byte, *model.Block) error); ok {
r1 = rf(voterIDs, sigData, block)
} else {
r1 = ret.Error(1)
}
return r0, r1
}
// VerifyVote provides a mock function with given fields: voterID, sigData, block
func (_m *Verifier) VerifyVote(voterID flow.Identifier, sigData []byte, block *model.Block) (bool, error) {
ret := _m.Called(voterID, sigData, block)
var r0 bool
if rf, ok := ret.Get(0).(func(flow.Identifier, []byte, *model.Block) bool); ok {
r0 = rf(voterID, sigData, block)
} else {
r0 = ret.Get(0).(bool)
}
var r1 error
if rf, ok := ret.Get(1).(func(flow.Identifier, []byte, *model.Block) error); ok {
r1 = rf(voterID, sigData, block)
} else {
r1 = ret.Error(1)
}
return r0, r1
}