github.com/Finschia/ostracon@v1.1.5/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/tendermint/tendermint/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 var r1 error 22 if rf, ok := ret.Get(0).(func(string) (*types.ResponseEcho, error)); ok { 23 return rf(_a0) 24 } 25 if rf, ok := ret.Get(0).(func(string) *types.ResponseEcho); ok { 26 r0 = rf(_a0) 27 } else { 28 if ret.Get(0) != nil { 29 r0 = ret.Get(0).(*types.ResponseEcho) 30 } 31 } 32 33 if rf, ok := ret.Get(1).(func(string) error); ok { 34 r1 = rf(_a0) 35 } else { 36 r1 = ret.Error(1) 37 } 38 39 return r0, r1 40 } 41 42 // Error provides a mock function with given fields: 43 func (_m *AppConnQuery) Error() error { 44 ret := _m.Called() 45 46 var r0 error 47 if rf, ok := ret.Get(0).(func() error); ok { 48 r0 = rf() 49 } else { 50 r0 = ret.Error(0) 51 } 52 53 return r0 54 } 55 56 // InfoSync provides a mock function with given fields: _a0 57 func (_m *AppConnQuery) InfoSync(_a0 types.RequestInfo) (*types.ResponseInfo, error) { 58 ret := _m.Called(_a0) 59 60 var r0 *types.ResponseInfo 61 var r1 error 62 if rf, ok := ret.Get(0).(func(types.RequestInfo) (*types.ResponseInfo, error)); ok { 63 return rf(_a0) 64 } 65 if rf, ok := ret.Get(0).(func(types.RequestInfo) *types.ResponseInfo); ok { 66 r0 = rf(_a0) 67 } else { 68 if ret.Get(0) != nil { 69 r0 = ret.Get(0).(*types.ResponseInfo) 70 } 71 } 72 73 if rf, ok := ret.Get(1).(func(types.RequestInfo) error); ok { 74 r1 = rf(_a0) 75 } else { 76 r1 = ret.Error(1) 77 } 78 79 return r0, r1 80 } 81 82 // QuerySync provides a mock function with given fields: _a0 83 func (_m *AppConnQuery) QuerySync(_a0 types.RequestQuery) (*types.ResponseQuery, error) { 84 ret := _m.Called(_a0) 85 86 var r0 *types.ResponseQuery 87 var r1 error 88 if rf, ok := ret.Get(0).(func(types.RequestQuery) (*types.ResponseQuery, error)); ok { 89 return rf(_a0) 90 } 91 if rf, ok := ret.Get(0).(func(types.RequestQuery) *types.ResponseQuery); ok { 92 r0 = rf(_a0) 93 } else { 94 if ret.Get(0) != nil { 95 r0 = ret.Get(0).(*types.ResponseQuery) 96 } 97 } 98 99 if rf, ok := ret.Get(1).(func(types.RequestQuery) error); ok { 100 r1 = rf(_a0) 101 } else { 102 r1 = ret.Error(1) 103 } 104 105 return r0, r1 106 } 107 108 // 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. 109 // The first argument is typically a *testing.T value. 110 func NewAppConnQuery(t interface { 111 mock.TestingT 112 Cleanup(func()) 113 }) *AppConnQuery { 114 mock := &AppConnQuery{} 115 mock.Mock.Test(t) 116 117 t.Cleanup(func() { mock.AssertExpectations(t) }) 118 119 return mock 120 }