-
Notifications
You must be signed in to change notification settings - Fork 8
/
mock_encryption.go
105 lines (88 loc) · 3.1 KB
/
mock_encryption.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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/ARM-software/golang-utils/utils/encryption (interfaces: IKeyPair)
// Package mocks is a generated GoMock package.
package mocks
import (
reflect "reflect"
gomock "github.com/golang/mock/gomock"
)
// MockIKeyPair is a mock of IKeyPair interface.
type MockIKeyPair struct {
ctrl *gomock.Controller
recorder *MockIKeyPairMockRecorder
}
// MockIKeyPairMockRecorder is the mock recorder for MockIKeyPair.
type MockIKeyPairMockRecorder struct {
mock *MockIKeyPair
}
// NewMockIKeyPair creates a new mock instance.
func NewMockIKeyPair(ctrl *gomock.Controller) *MockIKeyPair {
mock := &MockIKeyPair{ctrl: ctrl}
mock.recorder = &MockIKeyPairMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockIKeyPair) EXPECT() *MockIKeyPairMockRecorder {
return m.recorder
}
// GetPrivateKey mocks base method.
func (m *MockIKeyPair) GetPrivateKey() string {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetPrivateKey")
ret0, _ := ret[0].(string)
return ret0
}
// GetPrivateKey indicates an expected call of GetPrivateKey.
func (mr *MockIKeyPairMockRecorder) GetPrivateKey() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPrivateKey", reflect.TypeOf((*MockIKeyPair)(nil).GetPrivateKey))
}
// GetPublicKey mocks base method.
func (m *MockIKeyPair) GetPublicKey() string {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetPublicKey")
ret0, _ := ret[0].(string)
return ret0
}
// GetPublicKey indicates an expected call of GetPublicKey.
func (mr *MockIKeyPairMockRecorder) GetPublicKey() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPublicKey", reflect.TypeOf((*MockIKeyPair)(nil).GetPublicKey))
}
// GoString mocks base method.
func (m *MockIKeyPair) GoString() string {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GoString")
ret0, _ := ret[0].(string)
return ret0
}
// GoString indicates an expected call of GoString.
func (mr *MockIKeyPairMockRecorder) GoString() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GoString", reflect.TypeOf((*MockIKeyPair)(nil).GoString))
}
// MarshalJSON mocks base method.
func (m *MockIKeyPair) MarshalJSON() ([]byte, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "MarshalJSON")
ret0, _ := ret[0].([]byte)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// MarshalJSON indicates an expected call of MarshalJSON.
func (mr *MockIKeyPairMockRecorder) MarshalJSON() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MarshalJSON", reflect.TypeOf((*MockIKeyPair)(nil).MarshalJSON))
}
// String mocks base method.
func (m *MockIKeyPair) String() string {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "String")
ret0, _ := ret[0].(string)
return ret0
}
// String indicates an expected call of String.
func (mr *MockIKeyPairMockRecorder) String() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "String", reflect.TypeOf((*MockIKeyPair)(nil).String))
}