github.com/vipernet-xyz/tm@v0.34.24/proxy/mocks/app_conn_query.go (about) 1 // Code generated by mockery. DO NOT EDIT. 2 3 package mocks 4 5 import ( 6 mock "github.com/stretchr/testify/mock" 7 8 types "github.com/vipernet-xyz/tm/abci/types" 9 ) 10 11 // AppConnQuery is an autogenerated mock type for the AppConnQuery type 12 type AppConnQuery struct { 13 mock.Mock 14 } 15 16 // EchoSync provides a mock function with given fields: _a0 17 func (_m *AppConnQuery) EchoSync(_a0 string) (*types.ResponseEcho, error) { 18 ret := _m.Called(_a0) 19 20 var r0 *types.ResponseEcho 21 if rf, ok := ret.Get(0).(func(string) *types.ResponseEcho); ok { 22 r0 = rf(_a0) 23 } else { 24 if ret.Get(0) != nil { 25 r0 = ret.Get(0).(*types.ResponseEcho) 26 } 27 } 28 29 var r1 error 30 if rf, ok := ret.Get(1).(func(string) error); ok { 31 r1 = rf(_a0) 32 } else { 33 r1 = ret.Error(1) 34 } 35 36 return r0, r1 37 } 38 39 // Error provides a mock function with given fields: 40 func (_m *AppConnQuery) Error() error { 41 ret := _m.Called() 42 43 var r0 error 44 if rf, ok := ret.Get(0).(func() error); ok { 45 r0 = rf() 46 } else { 47 r0 = ret.Error(0) 48 } 49 50 return r0 51 } 52 53 // InfoSync provides a mock function with given fields: _a0 54 func (_m *AppConnQuery) InfoSync(_a0 types.RequestInfo) (*types.ResponseInfo, error) { 55 ret := _m.Called(_a0) 56 57 var r0 *types.ResponseInfo 58 if rf, ok := ret.Get(0).(func(types.RequestInfo) *types.ResponseInfo); ok { 59 r0 = rf(_a0) 60 } else { 61 if ret.Get(0) != nil { 62 r0 = ret.Get(0).(*types.ResponseInfo) 63 } 64 } 65 66 var r1 error 67 if rf, ok := ret.Get(1).(func(types.RequestInfo) error); ok { 68 r1 = rf(_a0) 69 } else { 70 r1 = ret.Error(1) 71 } 72 73 return r0, r1 74 } 75 76 // QuerySync provides a mock function with given fields: _a0 77 func (_m *AppConnQuery) QuerySync(_a0 types.RequestQuery) (*types.ResponseQuery, error) { 78 ret := _m.Called(_a0) 79 80 var r0 *types.ResponseQuery 81 if rf, ok := ret.Get(0).(func(types.RequestQuery) *types.ResponseQuery); ok { 82 r0 = rf(_a0) 83 } else { 84 if ret.Get(0) != nil { 85 r0 = ret.Get(0).(*types.ResponseQuery) 86 } 87 } 88 89 var r1 error 90 if rf, ok := ret.Get(1).(func(types.RequestQuery) error); ok { 91 r1 = rf(_a0) 92 } else { 93 r1 = ret.Error(1) 94 } 95 96 return r0, r1 97 } 98 99 type NewAppConnQueryT interface { 100 mock.TestingT 101 Cleanup(func()) 102 } 103 104 // NewAppConnQuery creates a new instance of AppConnQuery. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. 105 func NewAppConnQuery(t NewAppConnQueryT) *AppConnQuery { 106 mock := &AppConnQuery{} 107 mock.Mock.Test(t) 108 109 t.Cleanup(func() { mock.AssertExpectations(t) }) 110 111 return mock 112 }