aboutsummaryrefslogtreecommitdiffstats
path: root/vm
diff options
context:
space:
mode:
Diffstat (limited to 'vm')
-rw-r--r--vm/proxyapp/mocks/ProxyAppInterface.go51
-rw-r--r--vm/proxyapp/mocks/subProcessCmd.go31
2 files changed, 70 insertions, 12 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)
diff --git a/vm/proxyapp/mocks/subProcessCmd.go b/vm/proxyapp/mocks/subProcessCmd.go
index 94f37256f..e328bd6d8 100644
--- a/vm/proxyapp/mocks/subProcessCmd.go
+++ b/vm/proxyapp/mocks/subProcessCmd.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
@@ -17,6 +17,10 @@ type SubProcessCmd struct {
func (_m *SubProcessCmd) Start() error {
ret := _m.Called()
+ if len(ret) == 0 {
+ panic("no return value specified for Start")
+ }
+
var r0 error
if rf, ok := ret.Get(0).(func() error); ok {
r0 = rf()
@@ -31,6 +35,10 @@ func (_m *SubProcessCmd) Start() error {
func (_m *SubProcessCmd) StderrPipe() (io.ReadCloser, error) {
ret := _m.Called()
+ if len(ret) == 0 {
+ panic("no return value specified for StderrPipe")
+ }
+
var r0 io.ReadCloser
var r1 error
if rf, ok := ret.Get(0).(func() (io.ReadCloser, error)); ok {
@@ -57,6 +65,10 @@ func (_m *SubProcessCmd) StderrPipe() (io.ReadCloser, error) {
func (_m *SubProcessCmd) StdinPipe() (io.WriteCloser, error) {
ret := _m.Called()
+ if len(ret) == 0 {
+ panic("no return value specified for StdinPipe")
+ }
+
var r0 io.WriteCloser
var r1 error
if rf, ok := ret.Get(0).(func() (io.WriteCloser, error)); ok {
@@ -83,6 +95,10 @@ func (_m *SubProcessCmd) StdinPipe() (io.WriteCloser, error) {
func (_m *SubProcessCmd) StdoutPipe() (io.ReadCloser, error) {
ret := _m.Called()
+ if len(ret) == 0 {
+ panic("no return value specified for StdoutPipe")
+ }
+
var r0 io.ReadCloser
var r1 error
if rf, ok := ret.Get(0).(func() (io.ReadCloser, error)); ok {
@@ -109,6 +125,10 @@ func (_m *SubProcessCmd) StdoutPipe() (io.ReadCloser, error) {
func (_m *SubProcessCmd) Wait() error {
ret := _m.Called()
+ if len(ret) == 0 {
+ panic("no return value specified for Wait")
+ }
+
var r0 error
if rf, ok := ret.Get(0).(func() error); ok {
r0 = rf()
@@ -119,13 +139,12 @@ func (_m *SubProcessCmd) Wait() error {
return r0
}
-type mockConstructorTestingTNewSubProcessCmd interface {
+// NewSubProcessCmd creates a new instance of SubProcessCmd. 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 NewSubProcessCmd(t interface {
mock.TestingT
Cleanup(func())
-}
-
-// NewSubProcessCmd creates a new instance of SubProcessCmd. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
-func NewSubProcessCmd(t mockConstructorTestingTNewSubProcessCmd) *SubProcessCmd {
+}) *SubProcessCmd {
mock := &SubProcessCmd{}
mock.Mock.Test(t)