bitbucket.org/number571/tendermint@v0.8.14/proxy/mocks/app_conn_mempool.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  	abcicli "bitbucket.org/number571/tendermint/abci/client"
     9  
    10  	mock "github.com/stretchr/testify/mock"
    11  
    12  	types "bitbucket.org/number571/tendermint/abci/types"
    13  )
    14  
    15  // AppConnMempool is an autogenerated mock type for the AppConnMempool type
    16  type AppConnMempool struct {
    17  	mock.Mock
    18  }
    19  
    20  // CheckTxAsync provides a mock function with given fields: _a0, _a1
    21  func (_m *AppConnMempool) CheckTxAsync(_a0 context.Context, _a1 types.RequestCheckTx) (*abcicli.ReqRes, error) {
    22  	ret := _m.Called(_a0, _a1)
    23  
    24  	var r0 *abcicli.ReqRes
    25  	if rf, ok := ret.Get(0).(func(context.Context, types.RequestCheckTx) *abcicli.ReqRes); ok {
    26  		r0 = rf(_a0, _a1)
    27  	} else {
    28  		if ret.Get(0) != nil {
    29  			r0 = ret.Get(0).(*abcicli.ReqRes)
    30  		}
    31  	}
    32  
    33  	var r1 error
    34  	if rf, ok := ret.Get(1).(func(context.Context, types.RequestCheckTx) error); ok {
    35  		r1 = rf(_a0, _a1)
    36  	} else {
    37  		r1 = ret.Error(1)
    38  	}
    39  
    40  	return r0, r1
    41  }
    42  
    43  // CheckTxSync provides a mock function with given fields: _a0, _a1
    44  func (_m *AppConnMempool) CheckTxSync(_a0 context.Context, _a1 types.RequestCheckTx) (*types.ResponseCheckTx, error) {
    45  	ret := _m.Called(_a0, _a1)
    46  
    47  	var r0 *types.ResponseCheckTx
    48  	if rf, ok := ret.Get(0).(func(context.Context, types.RequestCheckTx) *types.ResponseCheckTx); ok {
    49  		r0 = rf(_a0, _a1)
    50  	} else {
    51  		if ret.Get(0) != nil {
    52  			r0 = ret.Get(0).(*types.ResponseCheckTx)
    53  		}
    54  	}
    55  
    56  	var r1 error
    57  	if rf, ok := ret.Get(1).(func(context.Context, types.RequestCheckTx) error); ok {
    58  		r1 = rf(_a0, _a1)
    59  	} else {
    60  		r1 = ret.Error(1)
    61  	}
    62  
    63  	return r0, r1
    64  }
    65  
    66  // Error provides a mock function with given fields:
    67  func (_m *AppConnMempool) Error() error {
    68  	ret := _m.Called()
    69  
    70  	var r0 error
    71  	if rf, ok := ret.Get(0).(func() error); ok {
    72  		r0 = rf()
    73  	} else {
    74  		r0 = ret.Error(0)
    75  	}
    76  
    77  	return r0
    78  }
    79  
    80  // FlushAsync provides a mock function with given fields: _a0
    81  func (_m *AppConnMempool) FlushAsync(_a0 context.Context) (*abcicli.ReqRes, error) {
    82  	ret := _m.Called(_a0)
    83  
    84  	var r0 *abcicli.ReqRes
    85  	if rf, ok := ret.Get(0).(func(context.Context) *abcicli.ReqRes); ok {
    86  		r0 = rf(_a0)
    87  	} else {
    88  		if ret.Get(0) != nil {
    89  			r0 = ret.Get(0).(*abcicli.ReqRes)
    90  		}
    91  	}
    92  
    93  	var r1 error
    94  	if rf, ok := ret.Get(1).(func(context.Context) error); ok {
    95  		r1 = rf(_a0)
    96  	} else {
    97  		r1 = ret.Error(1)
    98  	}
    99  
   100  	return r0, r1
   101  }
   102  
   103  // FlushSync provides a mock function with given fields: _a0
   104  func (_m *AppConnMempool) FlushSync(_a0 context.Context) error {
   105  	ret := _m.Called(_a0)
   106  
   107  	var r0 error
   108  	if rf, ok := ret.Get(0).(func(context.Context) error); ok {
   109  		r0 = rf(_a0)
   110  	} else {
   111  		r0 = ret.Error(0)
   112  	}
   113  
   114  	return r0
   115  }
   116  
   117  // SetResponseCallback provides a mock function with given fields: _a0
   118  func (_m *AppConnMempool) SetResponseCallback(_a0 abcicli.Callback) {
   119  	_m.Called(_a0)
   120  }