github.com/number571/tendermint@v0.34.11-gost/proxy/mocks/app_conn_query.go (about) 1 // Code generated by mockery v0.0.0-dev. DO NOT EDIT. 2 3 package mocks 4 5 import ( 6 context "context" 7 8 mock "github.com/stretchr/testify/mock" 9 10 types "github.com/number571/tendermint/abci/types" 11 ) 12 13 // AppConnQuery is an autogenerated mock type for the AppConnQuery type 14 type AppConnQuery struct { 15 mock.Mock 16 } 17 18 // EchoSync provides a mock function with given fields: _a0, _a1 19 func (_m *AppConnQuery) EchoSync(_a0 context.Context, _a1 string) (*types.ResponseEcho, error) { 20 ret := _m.Called(_a0, _a1) 21 22 var r0 *types.ResponseEcho 23 if rf, ok := ret.Get(0).(func(context.Context, string) *types.ResponseEcho); ok { 24 r0 = rf(_a0, _a1) 25 } else { 26 if ret.Get(0) != nil { 27 r0 = ret.Get(0).(*types.ResponseEcho) 28 } 29 } 30 31 var r1 error 32 if rf, ok := ret.Get(1).(func(context.Context, string) error); ok { 33 r1 = rf(_a0, _a1) 34 } else { 35 r1 = ret.Error(1) 36 } 37 38 return r0, r1 39 } 40 41 // Error provides a mock function with given fields: 42 func (_m *AppConnQuery) Error() error { 43 ret := _m.Called() 44 45 var r0 error 46 if rf, ok := ret.Get(0).(func() error); ok { 47 r0 = rf() 48 } else { 49 r0 = ret.Error(0) 50 } 51 52 return r0 53 } 54 55 // InfoSync provides a mock function with given fields: _a0, _a1 56 func (_m *AppConnQuery) InfoSync(_a0 context.Context, _a1 types.RequestInfo) (*types.ResponseInfo, error) { 57 ret := _m.Called(_a0, _a1) 58 59 var r0 *types.ResponseInfo 60 if rf, ok := ret.Get(0).(func(context.Context, types.RequestInfo) *types.ResponseInfo); ok { 61 r0 = rf(_a0, _a1) 62 } else { 63 if ret.Get(0) != nil { 64 r0 = ret.Get(0).(*types.ResponseInfo) 65 } 66 } 67 68 var r1 error 69 if rf, ok := ret.Get(1).(func(context.Context, types.RequestInfo) error); ok { 70 r1 = rf(_a0, _a1) 71 } else { 72 r1 = ret.Error(1) 73 } 74 75 return r0, r1 76 } 77 78 // QuerySync provides a mock function with given fields: _a0, _a1 79 func (_m *AppConnQuery) QuerySync(_a0 context.Context, _a1 types.RequestQuery) (*types.ResponseQuery, error) { 80 ret := _m.Called(_a0, _a1) 81 82 var r0 *types.ResponseQuery 83 if rf, ok := ret.Get(0).(func(context.Context, types.RequestQuery) *types.ResponseQuery); ok { 84 r0 = rf(_a0, _a1) 85 } else { 86 if ret.Get(0) != nil { 87 r0 = ret.Get(0).(*types.ResponseQuery) 88 } 89 } 90 91 var r1 error 92 if rf, ok := ret.Get(1).(func(context.Context, types.RequestQuery) error); ok { 93 r1 = rf(_a0, _a1) 94 } else { 95 r1 = ret.Error(1) 96 } 97 98 return r0, r1 99 }