-
Notifications
You must be signed in to change notification settings - Fork 369
/
Copy pathhash.go
73 lines (61 loc) · 2.03 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
// Copyright © 2025 Ory Corp
// SPDX-License-Identifier: Apache-2.0
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/ory/fosite (interfaces: Hasher)
//
// Generated by this command:
//
// mockgen -package internal -destination internal/hash.go github.com/ory/fosite Hasher
//
// Package internal is a generated GoMock package.
package internal
import (
context "context"
reflect "reflect"
gomock "go.uber.org/mock/gomock"
)
// MockHasher is a mock of Hasher interface.
type MockHasher struct {
ctrl *gomock.Controller
recorder *MockHasherMockRecorder
isgomock struct{}
}
// 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(ctx context.Context, hash, data []byte) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Compare", ctx, hash, data)
ret0, _ := ret[0].(error)
return ret0
}
// Compare indicates an expected call of Compare.
func (mr *MockHasherMockRecorder) Compare(ctx, hash, data any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Compare", reflect.TypeOf((*MockHasher)(nil).Compare), ctx, hash, data)
}
// Hash mocks base method.
func (m *MockHasher) Hash(ctx context.Context, data []byte) ([]byte, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Hash", ctx, data)
ret0, _ := ret[0].([]byte)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Hash indicates an expected call of Hash.
func (mr *MockHasherMockRecorder) Hash(ctx, data any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Hash", reflect.TypeOf((*MockHasher)(nil).Hash), ctx, data)
}