1/* SPDX-License-Identifier: BSD-3-Clause 2 */ 3 4// Code generated by mockery v2.34.2. DO NOT EDIT. 5 6package mocks 7 8import ( 9 client "github.com/spdk/spdk/go/rpc/client" 10 mock "github.com/stretchr/testify/mock" 11) 12 13// IClient is an autogenerated mock type for the IClient type 14type IClient struct { 15 mock.Mock 16} 17 18type IClient_Expecter struct { 19 mock *mock.Mock 20} 21 22func (_m *IClient) EXPECT() *IClient_Expecter { 23 return &IClient_Expecter{mock: &_m.Mock} 24} 25 26// Call provides a mock function with given fields: method, params 27func (_m *IClient) Call(method string, params interface{}) (*client.Response, error) { 28 ret := _m.Called(method, params) 29 30 var r0 *client.Response 31 var r1 error 32 if rf, ok := ret.Get(0).(func(string, interface{}) (*client.Response, error)); ok { 33 return rf(method, params) 34 } 35 if rf, ok := ret.Get(0).(func(string, interface{}) *client.Response); ok { 36 r0 = rf(method, params) 37 } else { 38 if ret.Get(0) != nil { 39 r0 = ret.Get(0).(*client.Response) 40 } 41 } 42 43 if rf, ok := ret.Get(1).(func(string, interface{}) error); ok { 44 r1 = rf(method, params) 45 } else { 46 r1 = ret.Error(1) 47 } 48 49 return r0, r1 50} 51 52// IClient_Call_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Call' 53type IClient_Call_Call struct { 54 *mock.Call 55} 56 57// Call is a helper method to define mock.On call 58// - method string 59// - params interface{} 60func (_e *IClient_Expecter) Call(method interface{}, params interface{}) *IClient_Call_Call { 61 return &IClient_Call_Call{Call: _e.mock.On("Call", method, params)} 62} 63 64func (_c *IClient_Call_Call) Run(run func(method string, params interface{})) *IClient_Call_Call { 65 _c.Call.Run(func(args mock.Arguments) { 66 run(args[0].(string), args[1].(interface{})) 67 }) 68 return _c 69} 70 71func (_c *IClient_Call_Call) Return(_a0 *client.Response, _a1 error) *IClient_Call_Call { 72 _c.Call.Return(_a0, _a1) 73 return _c 74} 75 76func (_c *IClient_Call_Call) RunAndReturn(run func(string, interface{}) (*client.Response, error)) *IClient_Call_Call { 77 _c.Call.Return(run) 78 return _c 79} 80 81// NewIClient creates a new instance of IClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. 82// The first argument is typically a *testing.T value. 83func NewIClient(t interface { 84 mock.TestingT 85 Cleanup(func()) 86}) *IClient { 87 mock := &IClient{} 88 mock.Mock.Test(t) 89 90 t.Cleanup(func() { mock.AssertExpectations(t) }) 91 92 return mock 93} 94