forked from ory/fosite
/
hash.go
58 lines (48 loc) · 1.76 KB
/
hash.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 MockGen. DO NOT EDIT.
// Source: github.com/ory/fosite (interfaces: Hasher)
package internal
import (
context "context"
gomock "github.com/golang/mock/gomock"
reflect "reflect"
)
// MockHasher is a mock of Hasher interface
type MockHasher struct {
ctrl *gomock.Controller
recorder *MockHasherMockRecorder
}
// MockHasherMockRecorder is the mock recorder for MockHasher
type MockHasherMockRecorder struct {
mock *MockHasher
}
// NewMockHasher creates a new mock instance
func NewMockHasher(ctrl *gomock.Controller) *MockHasher {
mock := &MockHasher{ctrl: ctrl}
mock.recorder = &MockHasherMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (_m *MockHasher) EXPECT() *MockHasherMockRecorder {
return _m.recorder
}
// Compare mocks base method
func (_m *MockHasher) Compare(_param0 context.Context, _param1 []byte, _param2 []byte) error {
ret := _m.ctrl.Call(_m, "Compare", _param0, _param1, _param2)
ret0, _ := ret[0].(error)
return ret0
}
// Compare indicates an expected call of Compare
func (_mr *MockHasherMockRecorder) Compare(arg0, arg1, arg2 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "Compare", reflect.TypeOf((*MockHasher)(nil).Compare), arg0, arg1, arg2)
}
// Hash mocks base method
func (_m *MockHasher) Hash(_param0 context.Context, _param1 []byte) ([]byte, error) {
ret := _m.ctrl.Call(_m, "Hash", _param0, _param1)
ret0, _ := ret[0].([]byte)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Hash indicates an expected call of Hash
func (_mr *MockHasherMockRecorder) Hash(arg0, arg1 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "Hash", reflect.TypeOf((*MockHasher)(nil).Hash), arg0, arg1)
}