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