@ -3,7 +3,10 @@
package mocks
import (
context "context"
abcicli "github.com/tendermint/tendermint/abci/client"
log "github.com/tendermint/tendermint/libs/log"
mock "github.com/stretchr/testify/mock"
@ -16,29 +19,36 @@ type Client struct {
mock . Mock
}
// ApplySnapshotChunkAsync provides a mock function with given fields: _a0
func ( _m * Client ) ApplySnapshotChunkAsync ( _a0 types . RequestApplySnapshotChunk ) * abcicli . ReqRes {
ret := _m . Called ( _a0 )
// ApplySnapshotChunkAsync provides a mock function with given fields: _a0, _a1
func ( _m * Client ) ApplySnapshotChunkAsync ( _a0 context . Context , _a1 types . RequestApplySnapshotChunk ) ( * abcicli . ReqRes , error ) {
ret := _m . Called ( _a0 , _a1 )
var r0 * abcicli . ReqRes
if rf , ok := ret . Get ( 0 ) . ( func ( types . RequestApplySnapshotChunk ) * abcicli . ReqRes ) ; ok {
r0 = rf ( _a0 )
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , types . RequestApplySnapshotChunk ) * abcicli . ReqRes ) ; ok {
r0 = rf ( _a0 , _a1 )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * abcicli . ReqRes )
}
}
return r0
var r1 error
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , types . RequestApplySnapshotChunk ) error ) ; ok {
r1 = rf ( _a0 , _a1 )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// ApplySnapshotChunkSync provides a mock function with given fields: _a0
func ( _m * Client ) ApplySnapshotChunkSync ( _a0 types . RequestApplySnapshotChunk ) ( * types . ResponseApplySnapshotChunk , error ) {
ret := _m . Called ( _a0 )
// ApplySnapshotChunkSync provides a mock function with given fields: _a0, _a1
func ( _m * Client ) ApplySnapshotChunkSync ( _a0 context . Context , _a1 types . RequestApplySnapshotChunk ) ( * types . ResponseApplySnapshotChunk , error ) {
ret := _m . Called ( _a0 , _a1 )
var r0 * types . ResponseApplySnapshotChunk
if rf , ok := ret . Get ( 0 ) . ( func ( types . RequestApplySnapshotChunk ) * types . ResponseApplySnapshotChunk ) ; ok {
r0 = rf ( _a0 )
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , types . RequestApplySnapshotChunk ) * types . ResponseApplySnapshotChunk ) ; ok {
r0 = rf ( _a0 , _a1 )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * types . ResponseApplySnapshotChunk )
@ -46,8 +56,8 @@ func (_m *Client) ApplySnapshotChunkSync(_a0 types.RequestApplySnapshotChunk) (*
}
var r1 error
if rf , ok := ret . Get ( 1 ) . ( func ( types . RequestApplySnapshotChunk ) error ) ; ok {
r1 = rf ( _a0 )
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , types . RequestApplySnapshotChunk ) error ) ; ok {
r1 = rf ( _a0 , _a1 )
} else {
r1 = ret . Error ( 1 )
}
@ -55,29 +65,36 @@ func (_m *Client) ApplySnapshotChunkSync(_a0 types.RequestApplySnapshotChunk) (*
return r0 , r1
}
// BeginBlockAsync provides a mock function with given fields: _a0
func ( _m * Client ) BeginBlockAsync ( _a0 types . RequestBeginBlock ) * abcicli . ReqRes {
ret := _m . Called ( _a0 )
// BeginBlockAsync provides a mock function with given fields: _a0, _a1
func ( _m * Client ) BeginBlockAsync ( _a0 context . Context , _a1 types . RequestBeginBlock ) ( * abcicli . ReqRes , error ) {
ret := _m . Called ( _a0 , _a1 )
var r0 * abcicli . ReqRes
if rf , ok := ret . Get ( 0 ) . ( func ( types . RequestBeginBlock ) * abcicli . ReqRes ) ; ok {
r0 = rf ( _a0 )
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , types . RequestBeginBlock ) * abcicli . ReqRes ) ; ok {
r0 = rf ( _a0 , _a1 )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * abcicli . ReqRes )
}
}
return r0
var r1 error
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , types . RequestBeginBlock ) error ) ; ok {
r1 = rf ( _a0 , _a1 )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// BeginBlockSync provides a mock function with given fields: _a0
func ( _m * Client ) BeginBlockSync ( _a0 types . RequestBeginBlock ) ( * types . ResponseBeginBlock , error ) {
ret := _m . Called ( _a0 )
// BeginBlockSync provides a mock function with given fields: _a0, _a1
func ( _m * Client ) BeginBlockSync ( _a0 context . Context , _a1 types . RequestBeginBlock ) ( * types . ResponseBeginBlock , error ) {
ret := _m . Called ( _a0 , _a1 )
var r0 * types . ResponseBeginBlock
if rf , ok := ret . Get ( 0 ) . ( func ( types . RequestBeginBlock ) * types . ResponseBeginBlock ) ; ok {
r0 = rf ( _a0 )
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , types . RequestBeginBlock ) * types . ResponseBeginBlock ) ; ok {
r0 = rf ( _a0 , _a1 )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * types . ResponseBeginBlock )
@ -85,8 +102,8 @@ func (_m *Client) BeginBlockSync(_a0 types.RequestBeginBlock) (*types.ResponseBe
}
var r1 error
if rf , ok := ret . Get ( 1 ) . ( func ( types . RequestBeginBlock ) error ) ; ok {
r1 = rf ( _a0 )
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , types . RequestBeginBlock ) error ) ; ok {
r1 = rf ( _a0 , _a1 )
} else {
r1 = ret . Error ( 1 )
}
@ -94,29 +111,36 @@ func (_m *Client) BeginBlockSync(_a0 types.RequestBeginBlock) (*types.ResponseBe
return r0 , r1
}
// CheckTxAsync provides a mock function with given fields: _a0
func ( _m * Client ) CheckTxAsync ( _a0 types . RequestCheckTx ) * abcicli . ReqRes {
ret := _m . Called ( _a0 )
// CheckTxAsync provides a mock function with given fields: _a0, _a1
func ( _m * Client ) CheckTxAsync ( _a0 context . Context , _a1 types . RequestCheckTx ) ( * abcicli . ReqRes , error ) {
ret := _m . Called ( _a0 , _a1 )
var r0 * abcicli . ReqRes
if rf , ok := ret . Get ( 0 ) . ( func ( types . RequestCheckTx ) * abcicli . ReqRes ) ; ok {
r0 = rf ( _a0 )
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , types . RequestCheckTx ) * abcicli . ReqRes ) ; ok {
r0 = rf ( _a0 , _a1 )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * abcicli . ReqRes )
}
}
return r0
var r1 error
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , types . RequestCheckTx ) error ) ; ok {
r1 = rf ( _a0 , _a1 )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// CheckTxSync provides a mock function with given fields: _a0
func ( _m * Client ) CheckTxSync ( _a0 types . RequestCheckTx ) ( * types . ResponseCheckTx , error ) {
ret := _m . Called ( _a0 )
// CheckTxSync provides a mock function with given fields: _a0, _a1
func ( _m * Client ) CheckTxSync ( _a0 context . Context , _a1 types . RequestCheckTx ) ( * types . ResponseCheckTx , error ) {
ret := _m . Called ( _a0 , _a1 )
var r0 * types . ResponseCheckTx
if rf , ok := ret . Get ( 0 ) . ( func ( types . RequestCheckTx ) * types . ResponseCheckTx ) ; ok {
r0 = rf ( _a0 )
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , types . RequestCheckTx ) * types . ResponseCheckTx ) ; ok {
r0 = rf ( _a0 , _a1 )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * types . ResponseCheckTx )
@ -124,8 +148,8 @@ func (_m *Client) CheckTxSync(_a0 types.RequestCheckTx) (*types.ResponseCheckTx,
}
var r1 error
if rf , ok := ret . Get ( 1 ) . ( func ( types . RequestCheckTx ) error ) ; ok {
r1 = rf ( _a0 )
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , types . RequestCheckTx ) error ) ; ok {
r1 = rf ( _a0 , _a1 )
} else {
r1 = ret . Error ( 1 )
}
@ -133,29 +157,36 @@ func (_m *Client) CheckTxSync(_a0 types.RequestCheckTx) (*types.ResponseCheckTx,
return r0 , r1
}
// CommitAsync provides a mock function with given fields:
func ( _m * Client ) CommitAsync ( ) * abcicli . ReqRes {
ret := _m . Called ( )
// CommitAsync provides a mock function with given fields: _a0
func ( _m * Client ) CommitAsync ( _a0 context . Context ) ( * abcicli . ReqRes , error ) {
ret := _m . Called ( _a0 )
var r0 * abcicli . ReqRes
if rf , ok := ret . Get ( 0 ) . ( func ( ) * abcicli . ReqRes ) ; ok {
r0 = rf ( )
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context ) * abcicli . ReqRes ) ; ok {
r0 = rf ( _a0 )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * abcicli . ReqRes )
}
}
return r0
var r1 error
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context ) error ) ; ok {
r1 = rf ( _a0 )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// CommitSync provides a mock function with given fields:
func ( _m * Client ) CommitSync ( ) ( * types . ResponseCommit , error ) {
ret := _m . Called ( )
// CommitSync provides a mock function with given fields: _a0
func ( _m * Client ) CommitSync ( _a0 context . Context ) ( * types . ResponseCommit , error ) {
ret := _m . Called ( _a0 )
var r0 * types . ResponseCommit
if rf , ok := ret . Get ( 0 ) . ( func ( ) * types . ResponseCommit ) ; ok {
r0 = rf ( )
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context ) * types . ResponseCommit ) ; ok {
r0 = rf ( _a0 )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * types . ResponseCommit )
@ -163,8 +194,8 @@ func (_m *Client) CommitSync() (*types.ResponseCommit, error) {
}
var r1 error
if rf , ok := ret . Get ( 1 ) . ( func ( ) error ) ; ok {
r1 = rf ( )
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context ) error ) ; ok {
r1 = rf ( _a0 )
} else {
r1 = ret . Error ( 1 )
}
@ -172,29 +203,36 @@ func (_m *Client) CommitSync() (*types.ResponseCommit, error) {
return r0 , r1
}
// DeliverTxAsync provides a mock function with given fields: _a0
func ( _m * Client ) DeliverTxAsync ( _a0 types . RequestDeliverTx ) * abcicli . ReqRes {
ret := _m . Called ( _a0 )
// DeliverTxAsync provides a mock function with given fields: _a0, _a1
func ( _m * Client ) DeliverTxAsync ( _a0 context . Context , _a1 types . RequestDeliverTx ) ( * abcicli . ReqRes , error ) {
ret := _m . Called ( _a0 , _a1 )
var r0 * abcicli . ReqRes
if rf , ok := ret . Get ( 0 ) . ( func ( types . RequestDeliverTx ) * abcicli . ReqRes ) ; ok {
r0 = rf ( _a0 )
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , types . RequestDeliverTx ) * abcicli . ReqRes ) ; ok {
r0 = rf ( _a0 , _a1 )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * abcicli . ReqRes )
}
}
return r0
var r1 error
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , types . RequestDeliverTx ) error ) ; ok {
r1 = rf ( _a0 , _a1 )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// DeliverTxSync provides a mock function with given fields: _a0
func ( _m * Client ) DeliverTxSync ( _a0 types . RequestDeliverTx ) ( * types . ResponseDeliverTx , error ) {
ret := _m . Called ( _a0 )
// DeliverTxSync provides a mock function with given fields: _a0, _a1
func ( _m * Client ) DeliverTxSync ( _a0 context . Context , _a1 types . RequestDeliverTx ) ( * types . ResponseDeliverTx , error ) {
ret := _m . Called ( _a0 , _a1 )
var r0 * types . ResponseDeliverTx
if rf , ok := ret . Get ( 0 ) . ( func ( types . RequestDeliverTx ) * types . ResponseDeliverTx ) ; ok {
r0 = rf ( _a0 )
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , types . RequestDeliverTx ) * types . ResponseDeliverTx ) ; ok {
r0 = rf ( _a0 , _a1 )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * types . ResponseDeliverTx )
@ -202,8 +240,8 @@ func (_m *Client) DeliverTxSync(_a0 types.RequestDeliverTx) (*types.ResponseDeli
}
var r1 error
if rf , ok := ret . Get ( 1 ) . ( func ( types . RequestDeliverTx ) error ) ; ok {
r1 = rf ( _a0 )
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , types . RequestDeliverTx ) error ) ; ok {
r1 = rf ( _a0 , _a1 )
} else {
r1 = ret . Error ( 1 )
}
@ -211,29 +249,36 @@ func (_m *Client) DeliverTxSync(_a0 types.RequestDeliverTx) (*types.ResponseDeli
return r0 , r1
}
// EchoAsync provides a mock function with given fields: msg
func ( _m * Client ) EchoAsync ( msg string ) * abcicli . ReqRes {
ret := _m . Called ( msg )
// EchoAsync provides a mock function with given fields: ctx, msg
func ( _m * Client ) EchoAsync ( ctx context . Context , msg string ) ( * abcicli . ReqRes , error ) {
ret := _m . Called ( ctx , msg )
var r0 * abcicli . ReqRes
if rf , ok := ret . Get ( 0 ) . ( func ( string ) * abcicli . ReqRes ) ; ok {
r0 = rf ( msg )
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , string ) * abcicli . ReqRes ) ; ok {
r0 = rf ( ctx , msg )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * abcicli . ReqRes )
}
}
return r0
var r1 error
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , string ) error ) ; ok {
r1 = rf ( ctx , msg )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// EchoSync provides a mock function with given fields: msg
func ( _m * Client ) EchoSync ( msg string ) ( * types . ResponseEcho , error ) {
ret := _m . Called ( msg )
// EchoSync provides a mock function with given fields: ctx, msg
func ( _m * Client ) EchoSync ( ctx context . Context , msg string ) ( * types . ResponseEcho , error ) {
ret := _m . Called ( ctx , msg )
var r0 * types . ResponseEcho
if rf , ok := ret . Get ( 0 ) . ( func ( string ) * types . ResponseEcho ) ; ok {
r0 = rf ( msg )
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , string ) * types . ResponseEcho ) ; ok {
r0 = rf ( ctx , msg )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * types . ResponseEcho )
@ -241,8 +286,8 @@ func (_m *Client) EchoSync(msg string) (*types.ResponseEcho, error) {
}
var r1 error
if rf , ok := ret . Get ( 1 ) . ( func ( string ) error ) ; ok {
r1 = rf ( msg )
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , string ) error ) ; ok {
r1 = rf ( ctx , msg )
} else {
r1 = ret . Error ( 1 )
}
@ -250,29 +295,36 @@ func (_m *Client) EchoSync(msg string) (*types.ResponseEcho, error) {
return r0 , r1
}
// EndBlockAsync provides a mock function with given fields: _a0
func ( _m * Client ) EndBlockAsync ( _a0 types . RequestEndBlock ) * abcicli . ReqRes {
ret := _m . Called ( _a0 )
// EndBlockAsync provides a mock function with given fields: _a0, _a1
func ( _m * Client ) EndBlockAsync ( _a0 context . Context , _a1 types . RequestEndBlock ) ( * abcicli . ReqRes , error ) {
ret := _m . Called ( _a0 , _a1 )
var r0 * abcicli . ReqRes
if rf , ok := ret . Get ( 0 ) . ( func ( types . RequestEndBlock ) * abcicli . ReqRes ) ; ok {
r0 = rf ( _a0 )
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , types . RequestEndBlock ) * abcicli . ReqRes ) ; ok {
r0 = rf ( _a0 , _a1 )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * abcicli . ReqRes )
}
}
return r0
var r1 error
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , types . RequestEndBlock ) error ) ; ok {
r1 = rf ( _a0 , _a1 )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// EndBlockSync provides a mock function with given fields: _a0
func ( _m * Client ) EndBlockSync ( _a0 types . RequestEndBlock ) ( * types . ResponseEndBlock , error ) {
ret := _m . Called ( _a0 )
// EndBlockSync provides a mock function with given fields: _a0, _a1
func ( _m * Client ) EndBlockSync ( _a0 context . Context , _a1 types . RequestEndBlock ) ( * types . ResponseEndBlock , error ) {
ret := _m . Called ( _a0 , _a1 )
var r0 * types . ResponseEndBlock
if rf , ok := ret . Get ( 0 ) . ( func ( types . RequestEndBlock ) * types . ResponseEndBlock ) ; ok {
r0 = rf ( _a0 )
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , types . RequestEndBlock ) * types . ResponseEndBlock ) ; ok {
r0 = rf ( _a0 , _a1 )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * types . ResponseEndBlock )
@ -280,8 +332,8 @@ func (_m *Client) EndBlockSync(_a0 types.RequestEndBlock) (*types.ResponseEndBlo
}
var r1 error
if rf , ok := ret . Get ( 1 ) . ( func ( types . RequestEndBlock ) error ) ; ok {
r1 = rf ( _a0 )
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , types . RequestEndBlock ) error ) ; ok {
r1 = rf ( _a0 , _a1 )
} else {
r1 = ret . Error ( 1 )
}
@ -303,29 +355,36 @@ func (_m *Client) Error() error {
return r0
}
// FlushAsync provides a mock function with given fields:
func ( _m * Client ) FlushAsync ( ) * abcicli . ReqRes {
ret := _m . Called ( )
// FlushAsync provides a mock function with given fields: _a0
func ( _m * Client ) FlushAsync ( _a0 context . Context ) ( * abcicli . ReqRes , error ) {
ret := _m . Called ( _a0 )
var r0 * abcicli . ReqRes
if rf , ok := ret . Get ( 0 ) . ( func ( ) * abcicli . ReqRes ) ; ok {
r0 = rf ( )
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context ) * abcicli . ReqRes ) ; ok {
r0 = rf ( _a0 )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * abcicli . ReqRes )
}
}
return r0
var r1 error
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context ) error ) ; ok {
r1 = rf ( _a0 )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// FlushSync provides a mock function with given fields:
func ( _m * Client ) FlushSync ( ) error {
ret := _m . Called ( )
// FlushSync provides a mock function with given fields: _a0
func ( _m * Client ) FlushSync ( _a0 context . Context ) error {
ret := _m . Called ( _a0 )
var r0 error
if rf , ok := ret . Get ( 0 ) . ( func ( ) error ) ; ok {
r0 = rf ( )
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context ) error ) ; ok {
r0 = rf ( _a0 )
} else {
r0 = ret . Error ( 0 )
}
@ -333,29 +392,36 @@ func (_m *Client) FlushSync() error {
return r0
}
// InfoAsync provides a mock function with given fields: _a0
func ( _m * Client ) InfoAsync ( _a0 types . RequestInfo ) * abcicli . ReqRes {
ret := _m . Called ( _a0 )
// InfoAsync provides a mock function with given fields: _a0, _a1
func ( _m * Client ) InfoAsync ( _a0 context . Context , _a1 types . RequestInfo ) ( * abcicli . ReqRes , error ) {
ret := _m . Called ( _a0 , _a1 )
var r0 * abcicli . ReqRes
if rf , ok := ret . Get ( 0 ) . ( func ( types . RequestInfo ) * abcicli . ReqRes ) ; ok {
r0 = rf ( _a0 )
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , types . RequestInfo ) * abcicli . ReqRes ) ; ok {
r0 = rf ( _a0 , _a1 )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * abcicli . ReqRes )
}
}
return r0
var r1 error
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , types . RequestInfo ) error ) ; ok {
r1 = rf ( _a0 , _a1 )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// InfoSync provides a mock function with given fields: _a0
func ( _m * Client ) InfoSync ( _a0 types . RequestInfo ) ( * types . ResponseInfo , error ) {
ret := _m . Called ( _a0 )
// InfoSync provides a mock function with given fields: _a0, _a1
func ( _m * Client ) InfoSync ( _a0 context . Context , _a1 types . RequestInfo ) ( * types . ResponseInfo , error ) {
ret := _m . Called ( _a0 , _a1 )
var r0 * types . ResponseInfo
if rf , ok := ret . Get ( 0 ) . ( func ( types . RequestInfo ) * types . ResponseInfo ) ; ok {
r0 = rf ( _a0 )
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , types . RequestInfo ) * types . ResponseInfo ) ; ok {
r0 = rf ( _a0 , _a1 )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * types . ResponseInfo )
@ -363,8 +429,8 @@ func (_m *Client) InfoSync(_a0 types.RequestInfo) (*types.ResponseInfo, error) {
}
var r1 error
if rf , ok := ret . Get ( 1 ) . ( func ( types . RequestInfo ) error ) ; ok {
r1 = rf ( _a0 )
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , types . RequestInfo ) error ) ; ok {
r1 = rf ( _a0 , _a1 )
} else {
r1 = ret . Error ( 1 )
}
@ -372,29 +438,36 @@ func (_m *Client) InfoSync(_a0 types.RequestInfo) (*types.ResponseInfo, error) {
return r0 , r1
}
// InitChainAsync provides a mock function with given fields: _a0
func ( _m * Client ) InitChainAsync ( _a0 types . RequestInitChain ) * abcicli . ReqRes {
ret := _m . Called ( _a0 )
// InitChainAsync provides a mock function with given fields: _a0, _a1
func ( _m * Client ) InitChainAsync ( _a0 context . Context , _a1 types . RequestInitChain ) ( * abcicli . ReqRes , error ) {
ret := _m . Called ( _a0 , _a1 )
var r0 * abcicli . ReqRes
if rf , ok := ret . Get ( 0 ) . ( func ( types . RequestInitChain ) * abcicli . ReqRes ) ; ok {
r0 = rf ( _a0 )
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , types . RequestInitChain ) * abcicli . ReqRes ) ; ok {
r0 = rf ( _a0 , _a1 )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * abcicli . ReqRes )
}
}
return r0
var r1 error
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , types . RequestInitChain ) error ) ; ok {
r1 = rf ( _a0 , _a1 )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// InitChainSync provides a mock function with given fields: _a0
func ( _m * Client ) InitChainSync ( _a0 types . RequestInitChain ) ( * types . ResponseInitChain , error ) {
ret := _m . Called ( _a0 )
// InitChainSync provides a mock function with given fields: _a0, _a1
func ( _m * Client ) InitChainSync ( _a0 context . Context , _a1 types . RequestInitChain ) ( * types . ResponseInitChain , error ) {
ret := _m . Called ( _a0 , _a1 )
var r0 * types . ResponseInitChain
if rf , ok := ret . Get ( 0 ) . ( func ( types . RequestInitChain ) * types . ResponseInitChain ) ; ok {
r0 = rf ( _a0 )
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , types . RequestInitChain ) * types . ResponseInitChain ) ; ok {
r0 = rf ( _a0 , _a1 )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * types . ResponseInitChain )
@ -402,8 +475,8 @@ func (_m *Client) InitChainSync(_a0 types.RequestInitChain) (*types.ResponseInit
}
var r1 error
if rf , ok := ret . Get ( 1 ) . ( func ( types . RequestInitChain ) error ) ; ok {
r1 = rf ( _a0 )
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , types . RequestInitChain ) error ) ; ok {
r1 = rf ( _a0 , _a1 )
} else {
r1 = ret . Error ( 1 )
}
@ -425,29 +498,36 @@ func (_m *Client) IsRunning() bool {
return r0
}
// ListSnapshotsAsync provides a mock function with given fields: _a0
func ( _m * Client ) ListSnapshotsAsync ( _a0 types . RequestListSnapshots ) * abcicli . ReqRes {
ret := _m . Called ( _a0 )
// ListSnapshotsAsync provides a mock function with given fields: _a0, _a1
func ( _m * Client ) ListSnapshotsAsync ( _a0 context . Context , _a1 types . RequestListSnapshots ) ( * abcicli . ReqRes , error ) {
ret := _m . Called ( _a0 , _a1 )
var r0 * abcicli . ReqRes
if rf , ok := ret . Get ( 0 ) . ( func ( types . RequestListSnapshots ) * abcicli . ReqRes ) ; ok {
r0 = rf ( _a0 )
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , types . RequestListSnapshots ) * abcicli . ReqRes ) ; ok {
r0 = rf ( _a0 , _a1 )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * abcicli . ReqRes )
}
}
return r0
var r1 error
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , types . RequestListSnapshots ) error ) ; ok {
r1 = rf ( _a0 , _a1 )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// ListSnapshotsSync provides a mock function with given fields: _a0
func ( _m * Client ) ListSnapshotsSync ( _a0 types . RequestListSnapshots ) ( * types . ResponseListSnapshots , error ) {
ret := _m . Called ( _a0 )
// ListSnapshotsSync provides a mock function with given fields: _a0, _a1
func ( _m * Client ) ListSnapshotsSync ( _a0 context . Context , _a1 types . RequestListSnapshots ) ( * types . ResponseListSnapshots , error ) {
ret := _m . Called ( _a0 , _a1 )
var r0 * types . ResponseListSnapshots
if rf , ok := ret . Get ( 0 ) . ( func ( types . RequestListSnapshots ) * types . ResponseListSnapshots ) ; ok {
r0 = rf ( _a0 )
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , types . RequestListSnapshots ) * types . ResponseListSnapshots ) ; ok {
r0 = rf ( _a0 , _a1 )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * types . ResponseListSnapshots )
@ -455,8 +535,8 @@ func (_m *Client) ListSnapshotsSync(_a0 types.RequestListSnapshots) (*types.Resp
}
var r1 error
if rf , ok := ret . Get ( 1 ) . ( func ( types . RequestListSnapshots ) error ) ; ok {
r1 = rf ( _a0 )
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , types . RequestListSnapshots ) error ) ; ok {
r1 = rf ( _a0 , _a1 )
} else {
r1 = ret . Error ( 1 )
}
@ -464,29 +544,36 @@ func (_m *Client) ListSnapshotsSync(_a0 types.RequestListSnapshots) (*types.Resp
return r0 , r1
}
// LoadSnapshotChunkAsync provides a mock function with given fields: _a0
func ( _m * Client ) LoadSnapshotChunkAsync ( _a0 types . RequestLoadSnapshotChunk ) * abcicli . ReqRes {
ret := _m . Called ( _a0 )
// LoadSnapshotChunkAsync provides a mock function with given fields: _a0, _a1
func ( _m * Client ) LoadSnapshotChunkAsync ( _a0 context . Context , _a1 types . RequestLoadSnapshotChunk ) ( * abcicli . ReqRes , error ) {
ret := _m . Called ( _a0 , _a1 )
var r0 * abcicli . ReqRes
if rf , ok := ret . Get ( 0 ) . ( func ( types . RequestLoadSnapshotChunk ) * abcicli . ReqRes ) ; ok {
r0 = rf ( _a0 )
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , types . RequestLoadSnapshotChunk ) * abcicli . ReqRes ) ; ok {
r0 = rf ( _a0 , _a1 )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * abcicli . ReqRes )
}
}
return r0
var r1 error
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , types . RequestLoadSnapshotChunk ) error ) ; ok {
r1 = rf ( _a0 , _a1 )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// LoadSnapshotChunkSync provides a mock function with given fields: _a0
func ( _m * Client ) LoadSnapshotChunkSync ( _a0 types . RequestLoadSnapshotChunk ) ( * types . ResponseLoadSnapshotChunk , error ) {
ret := _m . Called ( _a0 )
// LoadSnapshotChunkSync provides a mock function with given fields: _a0, _a1
func ( _m * Client ) LoadSnapshotChunkSync ( _a0 context . Context , _a1 types . RequestLoadSnapshotChunk ) ( * types . ResponseLoadSnapshotChunk , error ) {
ret := _m . Called ( _a0 , _a1 )
var r0 * types . ResponseLoadSnapshotChunk
if rf , ok := ret . Get ( 0 ) . ( func ( types . RequestLoadSnapshotChunk ) * types . ResponseLoadSnapshotChunk ) ; ok {
r0 = rf ( _a0 )
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , types . RequestLoadSnapshotChunk ) * types . ResponseLoadSnapshotChunk ) ; ok {
r0 = rf ( _a0 , _a1 )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * types . ResponseLoadSnapshotChunk )
@ -494,8 +581,8 @@ func (_m *Client) LoadSnapshotChunkSync(_a0 types.RequestLoadSnapshotChunk) (*ty
}
var r1 error
if rf , ok := ret . Get ( 1 ) . ( func ( types . RequestLoadSnapshotChunk ) error ) ; ok {
r1 = rf ( _a0 )
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , types . RequestLoadSnapshotChunk ) error ) ; ok {
r1 = rf ( _a0 , _a1 )
} else {
r1 = ret . Error ( 1 )
}
@ -503,29 +590,36 @@ func (_m *Client) LoadSnapshotChunkSync(_a0 types.RequestLoadSnapshotChunk) (*ty
return r0 , r1
}
// OfferSnapshotAsync provides a mock function with given fields: _a0
func ( _m * Client ) OfferSnapshotAsync ( _a0 types . RequestOfferSnapshot ) * abcicli . ReqRes {
ret := _m . Called ( _a0 )
// OfferSnapshotAsync provides a mock function with given fields: _a0, _a1
func ( _m * Client ) OfferSnapshotAsync ( _a0 context . Context , _a1 types . RequestOfferSnapshot ) ( * abcicli . ReqRes , error ) {
ret := _m . Called ( _a0 , _a1 )
var r0 * abcicli . ReqRes
if rf , ok := ret . Get ( 0 ) . ( func ( types . RequestOfferSnapshot ) * abcicli . ReqRes ) ; ok {
r0 = rf ( _a0 )
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , types . RequestOfferSnapshot ) * abcicli . ReqRes ) ; ok {
r0 = rf ( _a0 , _a1 )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * abcicli . ReqRes )
}
}
return r0
var r1 error
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , types . RequestOfferSnapshot ) error ) ; ok {
r1 = rf ( _a0 , _a1 )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// OfferSnapshotSync provides a mock function with given fields: _a0
func ( _m * Client ) OfferSnapshotSync ( _a0 types . RequestOfferSnapshot ) ( * types . ResponseOfferSnapshot , error ) {
ret := _m . Called ( _a0 )
// OfferSnapshotSync provides a mock function with given fields: _a0, _a1
func ( _m * Client ) OfferSnapshotSync ( _a0 context . Context , _a1 types . RequestOfferSnapshot ) ( * types . ResponseOfferSnapshot , error ) {
ret := _m . Called ( _a0 , _a1 )
var r0 * types . ResponseOfferSnapshot
if rf , ok := ret . Get ( 0 ) . ( func ( types . RequestOfferSnapshot ) * types . ResponseOfferSnapshot ) ; ok {
r0 = rf ( _a0 )
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , types . RequestOfferSnapshot ) * types . ResponseOfferSnapshot ) ; ok {
r0 = rf ( _a0 , _a1 )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * types . ResponseOfferSnapshot )
@ -533,8 +627,8 @@ func (_m *Client) OfferSnapshotSync(_a0 types.RequestOfferSnapshot) (*types.Resp
}
var r1 error
if rf , ok := ret . Get ( 1 ) . ( func ( types . RequestOfferSnapshot ) error ) ; ok {
r1 = rf ( _a0 )
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , types . RequestOfferSnapshot ) error ) ; ok {
r1 = rf ( _a0 , _a1 )
} else {
r1 = ret . Error ( 1 )
}
@ -575,29 +669,36 @@ func (_m *Client) OnStop() {
_m . Called ( )
}
// QueryAsync provides a mock function with given fields: _a0
func ( _m * Client ) QueryAsync ( _a0 types . RequestQuery ) * abcicli . ReqRes {
ret := _m . Called ( _a0 )
// QueryAsync provides a mock function with given fields: _a0, _a1
func ( _m * Client ) QueryAsync ( _a0 context . Context , _a1 types . RequestQuery ) ( * abcicli . ReqRes , error ) {
ret := _m . Called ( _a0 , _a1 )
var r0 * abcicli . ReqRes
if rf , ok := ret . Get ( 0 ) . ( func ( types . RequestQuery ) * abcicli . ReqRes ) ; ok {
r0 = rf ( _a0 )
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , types . RequestQuery ) * abcicli . ReqRes ) ; ok {
r0 = rf ( _a0 , _a1 )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * abcicli . ReqRes )
}
}
return r0
var r1 error
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , types . RequestQuery ) error ) ; ok {
r1 = rf ( _a0 , _a1 )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// QuerySync provides a mock function with given fields: _a0
func ( _m * Client ) QuerySync ( _a0 types . RequestQuery ) ( * types . ResponseQuery , error ) {
ret := _m . Called ( _a0 )
// QuerySync provides a mock function with given fields: _a0, _a1
func ( _m * Client ) QuerySync ( _a0 context . Context , _a1 types . RequestQuery ) ( * types . ResponseQuery , error ) {
ret := _m . Called ( _a0 , _a1 )
var r0 * types . ResponseQuery
if rf , ok := ret . Get ( 0 ) . ( func ( types . RequestQuery ) * types . ResponseQuery ) ; ok {
r0 = rf ( _a0 )
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , types . RequestQuery ) * types . ResponseQuery ) ; ok {
r0 = rf ( _a0 , _a1 )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * types . ResponseQuery )
@ -605,8 +706,8 @@ func (_m *Client) QuerySync(_a0 types.RequestQuery) (*types.ResponseQuery, error
}
var r1 error
if rf , ok := ret . Get ( 1 ) . ( func ( types . RequestQuery ) error ) ; ok {
r1 = rf ( _a0 )
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , types . RequestQuery ) error ) ; ok {
r1 = rf ( _a0 , _a1 )
} else {
r1 = ret . Error ( 1 )
}