mirror of
https://github.com/tendermint/tendermint.git
synced 2026-02-10 14:00:33 +00:00
100 lines
2.2 KiB
Go
100 lines
2.2 KiB
Go
// Code generated by mockery. DO NOT EDIT.
|
|
|
|
package mocks
|
|
|
|
import (
|
|
context "context"
|
|
|
|
abci "github.com/tendermint/tendermint/pkg/abci"
|
|
|
|
mock "github.com/stretchr/testify/mock"
|
|
)
|
|
|
|
// AppConnQuery is an autogenerated mock type for the AppConnQuery type
|
|
type AppConnQuery struct {
|
|
mock.Mock
|
|
}
|
|
|
|
// EchoSync provides a mock function with given fields: _a0, _a1
|
|
func (_m *AppConnQuery) EchoSync(_a0 context.Context, _a1 string) (*abci.ResponseEcho, error) {
|
|
ret := _m.Called(_a0, _a1)
|
|
|
|
var r0 *abci.ResponseEcho
|
|
if rf, ok := ret.Get(0).(func(context.Context, string) *abci.ResponseEcho); ok {
|
|
r0 = rf(_a0, _a1)
|
|
} else {
|
|
if ret.Get(0) != nil {
|
|
r0 = ret.Get(0).(*abci.ResponseEcho)
|
|
}
|
|
}
|
|
|
|
var r1 error
|
|
if rf, ok := ret.Get(1).(func(context.Context, string) error); ok {
|
|
r1 = rf(_a0, _a1)
|
|
} else {
|
|
r1 = ret.Error(1)
|
|
}
|
|
|
|
return r0, r1
|
|
}
|
|
|
|
// Error provides a mock function with given fields:
|
|
func (_m *AppConnQuery) Error() error {
|
|
ret := _m.Called()
|
|
|
|
var r0 error
|
|
if rf, ok := ret.Get(0).(func() error); ok {
|
|
r0 = rf()
|
|
} else {
|
|
r0 = ret.Error(0)
|
|
}
|
|
|
|
return r0
|
|
}
|
|
|
|
// InfoSync provides a mock function with given fields: _a0, _a1
|
|
func (_m *AppConnQuery) InfoSync(_a0 context.Context, _a1 abci.RequestInfo) (*abci.ResponseInfo, error) {
|
|
ret := _m.Called(_a0, _a1)
|
|
|
|
var r0 *abci.ResponseInfo
|
|
if rf, ok := ret.Get(0).(func(context.Context, abci.RequestInfo) *abci.ResponseInfo); ok {
|
|
r0 = rf(_a0, _a1)
|
|
} else {
|
|
if ret.Get(0) != nil {
|
|
r0 = ret.Get(0).(*abci.ResponseInfo)
|
|
}
|
|
}
|
|
|
|
var r1 error
|
|
if rf, ok := ret.Get(1).(func(context.Context, abci.RequestInfo) error); ok {
|
|
r1 = rf(_a0, _a1)
|
|
} else {
|
|
r1 = ret.Error(1)
|
|
}
|
|
|
|
return r0, r1
|
|
}
|
|
|
|
// QuerySync provides a mock function with given fields: _a0, _a1
|
|
func (_m *AppConnQuery) QuerySync(_a0 context.Context, _a1 abci.RequestQuery) (*abci.ResponseQuery, error) {
|
|
ret := _m.Called(_a0, _a1)
|
|
|
|
var r0 *abci.ResponseQuery
|
|
if rf, ok := ret.Get(0).(func(context.Context, abci.RequestQuery) *abci.ResponseQuery); ok {
|
|
r0 = rf(_a0, _a1)
|
|
} else {
|
|
if ret.Get(0) != nil {
|
|
r0 = ret.Get(0).(*abci.ResponseQuery)
|
|
}
|
|
}
|
|
|
|
var r1 error
|
|
if rf, ok := ret.Get(1).(func(context.Context, abci.RequestQuery) error); ok {
|
|
r1 = rf(_a0, _a1)
|
|
} else {
|
|
r1 = ret.Error(1)
|
|
}
|
|
|
|
return r0, r1
|
|
}
|