...
1
2
3
4
5 package internal
6
7 import (
8 context "context"
9 reflect "reflect"
10
11 gomock "github.com/golang/mock/gomock"
12 )
13
14
15 type MockHasher struct {
16 ctrl *gomock.Controller
17 recorder *MockHasherMockRecorder
18 }
19
20
21 type MockHasherMockRecorder struct {
22 mock *MockHasher
23 }
24
25
26 func NewMockHasher(ctrl *gomock.Controller) *MockHasher {
27 mock := &MockHasher{ctrl: ctrl}
28 mock.recorder = &MockHasherMockRecorder{mock}
29 return mock
30 }
31
32
33 func (m *MockHasher) EXPECT() *MockHasherMockRecorder {
34 return m.recorder
35 }
36
37
38 func (m *MockHasher) Compare(arg0 context.Context, arg1, arg2 []byte) error {
39 m.ctrl.T.Helper()
40 ret := m.ctrl.Call(m, "Compare", arg0, arg1, arg2)
41 ret0, _ := ret[0].(error)
42 return ret0
43 }
44
45
46 func (mr *MockHasherMockRecorder) Compare(arg0, arg1, arg2 interface{}) *gomock.Call {
47 mr.mock.ctrl.T.Helper()
48 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Compare", reflect.TypeOf((*MockHasher)(nil).Compare), arg0, arg1, arg2)
49 }
50
51
52 func (m *MockHasher) Hash(arg0 context.Context, arg1 []byte) ([]byte, error) {
53 m.ctrl.T.Helper()
54 ret := m.ctrl.Call(m, "Hash", arg0, arg1)
55 ret0, _ := ret[0].([]byte)
56 ret1, _ := ret[1].(error)
57 return ret0, ret1
58 }
59
60
61 func (mr *MockHasherMockRecorder) Hash(arg0, arg1 interface{}) *gomock.Call {
62 mr.mock.ctrl.T.Helper()
63 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Hash", reflect.TypeOf((*MockHasher)(nil).Hash), arg0, arg1)
64 }
65
View as plain text