github.com/juju/juju@v0.0.0-20240430160146-1752b71fcf00/apiserver/registration_proxy_mock_test.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/juju/juju/proxy (interfaces: Proxier) 3 // 4 // Generated by this command: 5 // 6 // mockgen -package apiserver_test -destination registration_proxy_mock_test.go github.com/juju/juju/proxy Proxier 7 // 8 9 // Package apiserver_test is a generated GoMock package. 10 package apiserver_test 11 12 import ( 13 reflect "reflect" 14 15 gomock "go.uber.org/mock/gomock" 16 ) 17 18 // MockProxier is a mock of Proxier interface. 19 type MockProxier struct { 20 ctrl *gomock.Controller 21 recorder *MockProxierMockRecorder 22 } 23 24 // MockProxierMockRecorder is the mock recorder for MockProxier. 25 type MockProxierMockRecorder struct { 26 mock *MockProxier 27 } 28 29 // NewMockProxier creates a new mock instance. 30 func NewMockProxier(ctrl *gomock.Controller) *MockProxier { 31 mock := &MockProxier{ctrl: ctrl} 32 mock.recorder = &MockProxierMockRecorder{mock} 33 return mock 34 } 35 36 // EXPECT returns an object that allows the caller to indicate expected use. 37 func (m *MockProxier) EXPECT() *MockProxierMockRecorder { 38 return m.recorder 39 } 40 41 // Insecure mocks base method. 42 func (m *MockProxier) Insecure() { 43 m.ctrl.T.Helper() 44 m.ctrl.Call(m, "Insecure") 45 } 46 47 // Insecure indicates an expected call of Insecure. 48 func (mr *MockProxierMockRecorder) Insecure() *gomock.Call { 49 mr.mock.ctrl.T.Helper() 50 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Insecure", reflect.TypeOf((*MockProxier)(nil).Insecure)) 51 } 52 53 // MarshalYAML mocks base method. 54 func (m *MockProxier) MarshalYAML() (any, error) { 55 m.ctrl.T.Helper() 56 ret := m.ctrl.Call(m, "MarshalYAML") 57 ret0, _ := ret[0].(any) 58 ret1, _ := ret[1].(error) 59 return ret0, ret1 60 } 61 62 // MarshalYAML indicates an expected call of MarshalYAML. 63 func (mr *MockProxierMockRecorder) MarshalYAML() *gomock.Call { 64 mr.mock.ctrl.T.Helper() 65 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MarshalYAML", reflect.TypeOf((*MockProxier)(nil).MarshalYAML)) 66 } 67 68 // RawConfig mocks base method. 69 func (m *MockProxier) RawConfig() (map[string]any, error) { 70 m.ctrl.T.Helper() 71 ret := m.ctrl.Call(m, "RawConfig") 72 ret0, _ := ret[0].(map[string]any) 73 ret1, _ := ret[1].(error) 74 return ret0, ret1 75 } 76 77 // RawConfig indicates an expected call of RawConfig. 78 func (mr *MockProxierMockRecorder) RawConfig() *gomock.Call { 79 mr.mock.ctrl.T.Helper() 80 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RawConfig", reflect.TypeOf((*MockProxier)(nil).RawConfig)) 81 } 82 83 // Start mocks base method. 84 func (m *MockProxier) Start() error { 85 m.ctrl.T.Helper() 86 ret := m.ctrl.Call(m, "Start") 87 ret0, _ := ret[0].(error) 88 return ret0 89 } 90 91 // Start indicates an expected call of Start. 92 func (mr *MockProxierMockRecorder) Start() *gomock.Call { 93 mr.mock.ctrl.T.Helper() 94 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Start", reflect.TypeOf((*MockProxier)(nil).Start)) 95 } 96 97 // Stop mocks base method. 98 func (m *MockProxier) Stop() { 99 m.ctrl.T.Helper() 100 m.ctrl.Call(m, "Stop") 101 } 102 103 // Stop indicates an expected call of Stop. 104 func (mr *MockProxierMockRecorder) Stop() *gomock.Call { 105 mr.mock.ctrl.T.Helper() 106 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Stop", reflect.TypeOf((*MockProxier)(nil).Stop)) 107 } 108 109 // Type mocks base method. 110 func (m *MockProxier) Type() string { 111 m.ctrl.T.Helper() 112 ret := m.ctrl.Call(m, "Type") 113 ret0, _ := ret[0].(string) 114 return ret0 115 } 116 117 // Type indicates an expected call of Type. 118 func (mr *MockProxierMockRecorder) Type() *gomock.Call { 119 mr.mock.ctrl.T.Helper() 120 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Type", reflect.TypeOf((*MockProxier)(nil).Type)) 121 }