-
Notifications
You must be signed in to change notification settings - Fork 51
/
mockephemeralkeys.go
71 lines (60 loc) · 1.95 KB
/
mockephemeralkeys.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
// Code generated by MockGen. DO NOT EDIT.
// Source: controller/internal/enforcer/utils/ephemeralkeys/interfaces.go
// Package mockephemeralkeys is a generated GoMock package.
package mockephemeralkeys
import (
ecdsa "crypto/ecdsa"
reflect "reflect"
gomock "github.com/golang/mock/gomock"
)
// MockKeyAccessor is a mock of KeyAccessor interface
// nolint
type MockKeyAccessor struct {
ctrl *gomock.Controller
recorder *MockKeyAccessorMockRecorder
}
// MockKeyAccessorMockRecorder is the mock recorder for MockKeyAccessor
// nolint
type MockKeyAccessorMockRecorder struct {
mock *MockKeyAccessor
}
// NewMockKeyAccessor creates a new mock instance
// nolint
func NewMockKeyAccessor(ctrl *gomock.Controller) *MockKeyAccessor {
mock := &MockKeyAccessor{ctrl: ctrl}
mock.recorder = &MockKeyAccessorMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
// nolint
func (m *MockKeyAccessor) EXPECT() *MockKeyAccessorMockRecorder {
return m.recorder
}
// PrivateKey mocks base method
// nolint
func (m *MockKeyAccessor) PrivateKey() *ecdsa.PrivateKey {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "PrivateKey")
ret0, _ := ret[0].(*ecdsa.PrivateKey)
return ret0
}
// PrivateKey indicates an expected call of PrivateKey
// nolint
func (mr *MockKeyAccessorMockRecorder) PrivateKey() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PrivateKey", reflect.TypeOf((*MockKeyAccessor)(nil).PrivateKey))
}
// DecodingKey mocks base method
// nolint
func (m *MockKeyAccessor) DecodingKey() []byte {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DecodingKey")
ret0, _ := ret[0].([]byte)
return ret0
}
// DecodingKey indicates an expected call of DecodingKey
// nolint
func (mr *MockKeyAccessorMockRecorder) DecodingKey() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DecodingKey", reflect.TypeOf((*MockKeyAccessor)(nil).DecodingKey))
}