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

     1  // Code generated by mockery. DO NOT EDIT.
     2  
     3  package mocks
     4  
     5  import (
     6  	context "context"
     7  
     8  	mock "github.com/stretchr/testify/mock"
     9  
    10  	types "github.com/aakash4dev/cometbft/abci/types"
    11  )
    12  
    13  // AppConnQuery is an autogenerated mock type for the AppConnQuery type
    14  type AppConnQuery struct {
    15  	mock.Mock
    16  }
    17  
    18  // Echo provides a mock function with given fields: _a0, _a1
    19  func (_m *AppConnQuery) Echo(_a0 context.Context, _a1 string) (*types.ResponseEcho, error) {
    20  	ret := _m.Called(_a0, _a1)
    21  
    22  	var r0 *types.ResponseEcho
    23  	var r1 error
    24  	if rf, ok := ret.Get(0).(func(context.Context, string) (*types.ResponseEcho, error)); ok {
    25  		return rf(_a0, _a1)
    26  	}
    27  	if rf, ok := ret.Get(0).(func(context.Context, string) *types.ResponseEcho); ok {
    28  		r0 = rf(_a0, _a1)
    29  	} else {
    30  		if ret.Get(0) != nil {
    31  			r0 = ret.Get(0).(*types.ResponseEcho)
    32  		}
    33  	}
    34  
    35  	if rf, ok := ret.Get(1).(func(context.Context, string) error); ok {
    36  		r1 = rf(_a0, _a1)
    37  	} else {
    38  		r1 = ret.Error(1)
    39  	}
    40  
    41  	return r0, r1
    42  }
    43  
    44  // Error provides a mock function with given fields:
    45  func (_m *AppConnQuery) Error() error {
    46  	ret := _m.Called()
    47  
    48  	var r0 error
    49  	if rf, ok := ret.Get(0).(func() error); ok {
    50  		r0 = rf()
    51  	} else {
    52  		r0 = ret.Error(0)
    53  	}
    54  
    55  	return r0
    56  }
    57  
    58  // Info provides a mock function with given fields: _a0, _a1
    59  func (_m *AppConnQuery) Info(_a0 context.Context, _a1 *types.RequestInfo) (*types.ResponseInfo, error) {
    60  	ret := _m.Called(_a0, _a1)
    61  
    62  	var r0 *types.ResponseInfo
    63  	var r1 error
    64  	if rf, ok := ret.Get(0).(func(context.Context, *types.RequestInfo) (*types.ResponseInfo, error)); ok {
    65  		return rf(_a0, _a1)
    66  	}
    67  	if rf, ok := ret.Get(0).(func(context.Context, *types.RequestInfo) *types.ResponseInfo); ok {
    68  		r0 = rf(_a0, _a1)
    69  	} else {
    70  		if ret.Get(0) != nil {
    71  			r0 = ret.Get(0).(*types.ResponseInfo)
    72  		}
    73  	}
    74  
    75  	if rf, ok := ret.Get(1).(func(context.Context, *types.RequestInfo) error); ok {
    76  		r1 = rf(_a0, _a1)
    77  	} else {
    78  		r1 = ret.Error(1)
    79  	}
    80  
    81  	return r0, r1
    82  }
    83  
    84  // Query provides a mock function with given fields: _a0, _a1
    85  func (_m *AppConnQuery) Query(_a0 context.Context, _a1 *types.RequestQuery) (*types.ResponseQuery, error) {
    86  	ret := _m.Called(_a0, _a1)
    87  
    88  	var r0 *types.ResponseQuery
    89  	var r1 error
    90  	if rf, ok := ret.Get(0).(func(context.Context, *types.RequestQuery) (*types.ResponseQuery, error)); ok {
    91  		return rf(_a0, _a1)
    92  	}
    93  	if rf, ok := ret.Get(0).(func(context.Context, *types.RequestQuery) *types.ResponseQuery); ok {
    94  		r0 = rf(_a0, _a1)
    95  	} else {
    96  		if ret.Get(0) != nil {
    97  			r0 = ret.Get(0).(*types.ResponseQuery)
    98  		}
    99  	}
   100  
   101  	if rf, ok := ret.Get(1).(func(context.Context, *types.RequestQuery) error); ok {
   102  		r1 = rf(_a0, _a1)
   103  	} else {
   104  		r1 = ret.Error(1)
   105  	}
   106  
   107  	return r0, r1
   108  }
   109  
   110  // NewAppConnQuery creates a new instance of AppConnQuery. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
   111  // The first argument is typically a *testing.T value.
   112  func NewAppConnQuery(t interface {
   113  	mock.TestingT
   114  	Cleanup(func())
   115  }) *AppConnQuery {
   116  	mock := &AppConnQuery{}
   117  	mock.Mock.Test(t)
   118  
   119  	t.Cleanup(func() { mock.AssertExpectations(t) })
   120  
   121  	return mock
   122  }