github.com/aakash4dev/cometbft@v0.38.2/proxy/mocks/app_conn_mempool.go (about)

     1  // Code generated by mockery. DO NOT EDIT.
     2  
     3  package mocks
     4  
     5  import (
     6  	context "context"
     7  
     8  	abcicli "github.com/aakash4dev/cometbft/abci/client"
     9  
    10  	mock "github.com/stretchr/testify/mock"
    11  
    12  	types "github.com/aakash4dev/cometbft/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  // CheckTx provides a mock function with given fields: _a0, _a1
    21  func (_m *AppConnMempool) CheckTx(_a0 context.Context, _a1 *types.RequestCheckTx) (*types.ResponseCheckTx, error) {
    22  	ret := _m.Called(_a0, _a1)
    23  
    24  	var r0 *types.ResponseCheckTx
    25  	var r1 error
    26  	if rf, ok := ret.Get(0).(func(context.Context, *types.RequestCheckTx) (*types.ResponseCheckTx, error)); ok {
    27  		return rf(_a0, _a1)
    28  	}
    29  	if rf, ok := ret.Get(0).(func(context.Context, *types.RequestCheckTx) *types.ResponseCheckTx); ok {
    30  		r0 = rf(_a0, _a1)
    31  	} else {
    32  		if ret.Get(0) != nil {
    33  			r0 = ret.Get(0).(*types.ResponseCheckTx)
    34  		}
    35  	}
    36  
    37  	if rf, ok := ret.Get(1).(func(context.Context, *types.RequestCheckTx) error); ok {
    38  		r1 = rf(_a0, _a1)
    39  	} else {
    40  		r1 = ret.Error(1)
    41  	}
    42  
    43  	return r0, r1
    44  }
    45  
    46  // CheckTxAsync provides a mock function with given fields: _a0, _a1
    47  func (_m *AppConnMempool) CheckTxAsync(_a0 context.Context, _a1 *types.RequestCheckTx) (*abcicli.ReqRes, error) {
    48  	ret := _m.Called(_a0, _a1)
    49  
    50  	var r0 *abcicli.ReqRes
    51  	var r1 error
    52  	if rf, ok := ret.Get(0).(func(context.Context, *types.RequestCheckTx) (*abcicli.ReqRes, error)); ok {
    53  		return rf(_a0, _a1)
    54  	}
    55  	if rf, ok := ret.Get(0).(func(context.Context, *types.RequestCheckTx) *abcicli.ReqRes); ok {
    56  		r0 = rf(_a0, _a1)
    57  	} else {
    58  		if ret.Get(0) != nil {
    59  			r0 = ret.Get(0).(*abcicli.ReqRes)
    60  		}
    61  	}
    62  
    63  	if rf, ok := ret.Get(1).(func(context.Context, *types.RequestCheckTx) error); ok {
    64  		r1 = rf(_a0, _a1)
    65  	} else {
    66  		r1 = ret.Error(1)
    67  	}
    68  
    69  	return r0, r1
    70  }
    71  
    72  // Error provides a mock function with given fields:
    73  func (_m *AppConnMempool) Error() error {
    74  	ret := _m.Called()
    75  
    76  	var r0 error
    77  	if rf, ok := ret.Get(0).(func() error); ok {
    78  		r0 = rf()
    79  	} else {
    80  		r0 = ret.Error(0)
    81  	}
    82  
    83  	return r0
    84  }
    85  
    86  // Flush provides a mock function with given fields: _a0
    87  func (_m *AppConnMempool) Flush(_a0 context.Context) error {
    88  	ret := _m.Called(_a0)
    89  
    90  	var r0 error
    91  	if rf, ok := ret.Get(0).(func(context.Context) error); ok {
    92  		r0 = rf(_a0)
    93  	} else {
    94  		r0 = ret.Error(0)
    95  	}
    96  
    97  	return r0
    98  }
    99  
   100  // SetResponseCallback provides a mock function with given fields: _a0
   101  func (_m *AppConnMempool) SetResponseCallback(_a0 abcicli.Callback) {
   102  	_m.Called(_a0)
   103  }
   104  
   105  // 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.
   106  // The first argument is typically a *testing.T value.
   107  func NewAppConnMempool(t interface {
   108  	mock.TestingT
   109  	Cleanup(func())
   110  }) *AppConnMempool {
   111  	mock := &AppConnMempool{}
   112  	mock.Mock.Test(t)
   113  
   114  	t.Cleanup(func() { mock.AssertExpectations(t) })
   115  
   116  	return mock
   117  }