diff options
| author | Taras Madan <tarasmadan@google.com> | 2024-05-06 16:02:09 +0200 |
|---|---|---|
| committer | Taras Madan <tarasmadan@google.com> | 2024-05-06 15:16:36 +0000 |
| commit | c035c6de7b75d2ca88982bf059fd4e27cbad7a26 (patch) | |
| tree | db601a4a91fd7ff6b08fe1826d72d80c49ee3722 /vm/proxyapp/mocks/ProxyAppInterface.go | |
| parent | a607849ecf6380d446a62f6d4bc78cae8a97c0d3 (diff) | |
vm/proxyapp/mocks: update mock files
Diffstat (limited to 'vm/proxyapp/mocks/ProxyAppInterface.go')
| -rw-r--r-- | vm/proxyapp/mocks/ProxyAppInterface.go | 51 |
1 files changed, 45 insertions, 6 deletions
diff --git a/vm/proxyapp/mocks/ProxyAppInterface.go b/vm/proxyapp/mocks/ProxyAppInterface.go index 81ac864d6..a4747b348 100644 --- a/vm/proxyapp/mocks/ProxyAppInterface.go +++ b/vm/proxyapp/mocks/ProxyAppInterface.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.20.2. DO NOT EDIT. +// Code generated by mockery v2.40.3. DO NOT EDIT. package mocks @@ -16,6 +16,10 @@ type ProxyAppInterface struct { func (_m *ProxyAppInterface) Close(in proxyrpc.CloseParams, out *proxyrpc.CloseReply) error { ret := _m.Called(in, out) + if len(ret) == 0 { + panic("no return value specified for Close") + } + var r0 error if rf, ok := ret.Get(0).(func(proxyrpc.CloseParams, *proxyrpc.CloseReply) error); ok { r0 = rf(in, out) @@ -30,6 +34,10 @@ func (_m *ProxyAppInterface) Close(in proxyrpc.CloseParams, out *proxyrpc.CloseR func (_m *ProxyAppInterface) Copy(in proxyrpc.CopyParams, out *proxyrpc.CopyResult) error { ret := _m.Called(in, out) + if len(ret) == 0 { + panic("no return value specified for Copy") + } + var r0 error if rf, ok := ret.Get(0).(func(proxyrpc.CopyParams, *proxyrpc.CopyResult) error); ok { r0 = rf(in, out) @@ -44,6 +52,10 @@ func (_m *ProxyAppInterface) Copy(in proxyrpc.CopyParams, out *proxyrpc.CopyResu func (_m *ProxyAppInterface) CreateInstance(in proxyrpc.CreateInstanceParams, out *proxyrpc.CreateInstanceResult) error { ret := _m.Called(in, out) + if len(ret) == 0 { + panic("no return value specified for CreateInstance") + } + var r0 error if rf, ok := ret.Get(0).(func(proxyrpc.CreateInstanceParams, *proxyrpc.CreateInstanceResult) error); ok { r0 = rf(in, out) @@ -58,6 +70,10 @@ func (_m *ProxyAppInterface) CreateInstance(in proxyrpc.CreateInstanceParams, ou func (_m *ProxyAppInterface) CreatePool(in proxyrpc.CreatePoolParams, out *proxyrpc.CreatePoolResult) error { ret := _m.Called(in, out) + if len(ret) == 0 { + panic("no return value specified for CreatePool") + } + var r0 error if rf, ok := ret.Get(0).(func(proxyrpc.CreatePoolParams, *proxyrpc.CreatePoolResult) error); ok { r0 = rf(in, out) @@ -72,6 +88,10 @@ func (_m *ProxyAppInterface) CreatePool(in proxyrpc.CreatePoolParams, out *proxy func (_m *ProxyAppInterface) Diagnose(in proxyrpc.DiagnoseParams, out *proxyrpc.DiagnoseReply) error { ret := _m.Called(in, out) + if len(ret) == 0 { + panic("no return value specified for Diagnose") + } + var r0 error if rf, ok := ret.Get(0).(func(proxyrpc.DiagnoseParams, *proxyrpc.DiagnoseReply) error); ok { r0 = rf(in, out) @@ -86,6 +106,10 @@ func (_m *ProxyAppInterface) Diagnose(in proxyrpc.DiagnoseParams, out *proxyrpc. func (_m *ProxyAppInterface) Forward(in proxyrpc.ForwardParams, out *proxyrpc.ForwardResult) error { ret := _m.Called(in, out) + if len(ret) == 0 { + panic("no return value specified for Forward") + } + var r0 error if rf, ok := ret.Get(0).(func(proxyrpc.ForwardParams, *proxyrpc.ForwardResult) error); ok { r0 = rf(in, out) @@ -100,6 +124,10 @@ func (_m *ProxyAppInterface) Forward(in proxyrpc.ForwardParams, out *proxyrpc.Fo func (_m *ProxyAppInterface) PoolLogs(in proxyrpc.PoolLogsParam, out *proxyrpc.PoolLogsReply) error { ret := _m.Called(in, out) + if len(ret) == 0 { + panic("no return value specified for PoolLogs") + } + var r0 error if rf, ok := ret.Get(0).(func(proxyrpc.PoolLogsParam, *proxyrpc.PoolLogsReply) error); ok { r0 = rf(in, out) @@ -114,6 +142,10 @@ func (_m *ProxyAppInterface) PoolLogs(in proxyrpc.PoolLogsParam, out *proxyrpc.P func (_m *ProxyAppInterface) RunReadProgress(in proxyrpc.RunReadProgressParams, out *proxyrpc.RunReadProgressReply) error { ret := _m.Called(in, out) + if len(ret) == 0 { + panic("no return value specified for RunReadProgress") + } + var r0 error if rf, ok := ret.Get(0).(func(proxyrpc.RunReadProgressParams, *proxyrpc.RunReadProgressReply) error); ok { r0 = rf(in, out) @@ -128,6 +160,10 @@ func (_m *ProxyAppInterface) RunReadProgress(in proxyrpc.RunReadProgressParams, func (_m *ProxyAppInterface) RunStart(in proxyrpc.RunStartParams, out *proxyrpc.RunStartReply) error { ret := _m.Called(in, out) + if len(ret) == 0 { + panic("no return value specified for RunStart") + } + var r0 error if rf, ok := ret.Get(0).(func(proxyrpc.RunStartParams, *proxyrpc.RunStartReply) error); ok { r0 = rf(in, out) @@ -142,6 +178,10 @@ func (_m *ProxyAppInterface) RunStart(in proxyrpc.RunStartParams, out *proxyrpc. func (_m *ProxyAppInterface) RunStop(in proxyrpc.RunStopParams, out *proxyrpc.RunStopReply) error { ret := _m.Called(in, out) + if len(ret) == 0 { + panic("no return value specified for RunStop") + } + var r0 error if rf, ok := ret.Get(0).(func(proxyrpc.RunStopParams, *proxyrpc.RunStopReply) error); ok { r0 = rf(in, out) @@ -152,13 +192,12 @@ func (_m *ProxyAppInterface) RunStop(in proxyrpc.RunStopParams, out *proxyrpc.Ru return r0 } -type mockConstructorTestingTNewProxyAppInterface interface { +// NewProxyAppInterface creates a new instance of ProxyAppInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. +// The first argument is typically a *testing.T value. +func NewProxyAppInterface(t interface { mock.TestingT Cleanup(func()) -} - -// NewProxyAppInterface creates a new instance of ProxyAppInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. -func NewProxyAppInterface(t mockConstructorTestingTNewProxyAppInterface) *ProxyAppInterface { +}) *ProxyAppInterface { mock := &ProxyAppInterface{} mock.Mock.Test(t) |
