// Code generated by mockery v2.42.1. DO NOT EDIT. package mocks import ( context "context" sravni "git.loyso.art/frx/kurious/internal/common/client/sravni" mock "github.com/stretchr/testify/mock" ) // Client is an autogenerated mock type for the Client type type Client struct { mock.Mock } type Client_Expecter struct { mock *mock.Mock } func (_m *Client) EXPECT() *Client_Expecter { return &Client_Expecter{mock: &_m.Mock} } // GetMainPageState provides a mock function with given fields: func (_m *Client) GetMainPageState() (*sravni.PageState, error) { ret := _m.Called() if len(ret) == 0 { panic("no return value specified for GetMainPageState") } var r0 *sravni.PageState var r1 error if rf, ok := ret.Get(0).(func() (*sravni.PageState, error)); ok { return rf() } if rf, ok := ret.Get(0).(func() *sravni.PageState); ok { r0 = rf() } else { if ret.Get(0) != nil { r0 = ret.Get(0).(*sravni.PageState) } } if rf, ok := ret.Get(1).(func() error); ok { r1 = rf() } else { r1 = ret.Error(1) } return r0, r1 } // Client_GetMainPageState_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetMainPageState' type Client_GetMainPageState_Call struct { *mock.Call } // GetMainPageState is a helper method to define mock.On call func (_e *Client_Expecter) GetMainPageState() *Client_GetMainPageState_Call { return &Client_GetMainPageState_Call{Call: _e.mock.On("GetMainPageState")} } func (_c *Client_GetMainPageState_Call) Run(run func()) *Client_GetMainPageState_Call { _c.Call.Run(func(args mock.Arguments) { run() }) return _c } func (_c *Client_GetMainPageState_Call) Return(_a0 *sravni.PageState, _a1 error) *Client_GetMainPageState_Call { _c.Call.Return(_a0, _a1) return _c } func (_c *Client_GetMainPageState_Call) RunAndReturn(run func() (*sravni.PageState, error)) *Client_GetMainPageState_Call { _c.Call.Return(run) return _c } // ListEducationalProducts provides a mock function with given fields: ctx, params func (_m *Client) ListEducationalProducts(ctx context.Context, params sravni.ListEducationProductsParams) (sravni.ListEducationProductsResponse, error) { ret := _m.Called(ctx, params) if len(ret) == 0 { panic("no return value specified for ListEducationalProducts") } var r0 sravni.ListEducationProductsResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, sravni.ListEducationProductsParams) (sravni.ListEducationProductsResponse, error)); ok { return rf(ctx, params) } if rf, ok := ret.Get(0).(func(context.Context, sravni.ListEducationProductsParams) sravni.ListEducationProductsResponse); ok { r0 = rf(ctx, params) } else { r0 = ret.Get(0).(sravni.ListEducationProductsResponse) } if rf, ok := ret.Get(1).(func(context.Context, sravni.ListEducationProductsParams) error); ok { r1 = rf(ctx, params) } else { r1 = ret.Error(1) } return r0, r1 } // Client_ListEducationalProducts_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListEducationalProducts' type Client_ListEducationalProducts_Call struct { *mock.Call } // ListEducationalProducts is a helper method to define mock.On call // - ctx context.Context // - params sravni.ListEducationProductsParams func (_e *Client_Expecter) ListEducationalProducts(ctx interface{}, params interface{}) *Client_ListEducationalProducts_Call { return &Client_ListEducationalProducts_Call{Call: _e.mock.On("ListEducationalProducts", ctx, params)} } func (_c *Client_ListEducationalProducts_Call) Run(run func(ctx context.Context, params sravni.ListEducationProductsParams)) *Client_ListEducationalProducts_Call { _c.Call.Run(func(args mock.Arguments) { run(args[0].(context.Context), args[1].(sravni.ListEducationProductsParams)) }) return _c } func (_c *Client_ListEducationalProducts_Call) Return(result sravni.ListEducationProductsResponse, err error) *Client_ListEducationalProducts_Call { _c.Call.Return(result, err) return _c } func (_c *Client_ListEducationalProducts_Call) RunAndReturn(run func(context.Context, sravni.ListEducationProductsParams) (sravni.ListEducationProductsResponse, error)) *Client_ListEducationalProducts_Call { _c.Call.Return(run) return _c } // ListEducationalProductsFilterCount provides a mock function with given fields: ctx, params func (_m *Client) ListEducationalProductsFilterCount(ctx context.Context, params sravni.ListEducationProductsParams) (sravni.ProductsFilterCount, error) { ret := _m.Called(ctx, params) if len(ret) == 0 { panic("no return value specified for ListEducationalProductsFilterCount") } var r0 sravni.ProductsFilterCount var r1 error if rf, ok := ret.Get(0).(func(context.Context, sravni.ListEducationProductsParams) (sravni.ProductsFilterCount, error)); ok { return rf(ctx, params) } if rf, ok := ret.Get(0).(func(context.Context, sravni.ListEducationProductsParams) sravni.ProductsFilterCount); ok { r0 = rf(ctx, params) } else { r0 = ret.Get(0).(sravni.ProductsFilterCount) } if rf, ok := ret.Get(1).(func(context.Context, sravni.ListEducationProductsParams) error); ok { r1 = rf(ctx, params) } else { r1 = ret.Error(1) } return r0, r1 } // Client_ListEducationalProductsFilterCount_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListEducationalProductsFilterCount' type Client_ListEducationalProductsFilterCount_Call struct { *mock.Call } // ListEducationalProductsFilterCount is a helper method to define mock.On call // - ctx context.Context // - params sravni.ListEducationProductsParams func (_e *Client_Expecter) ListEducationalProductsFilterCount(ctx interface{}, params interface{}) *Client_ListEducationalProductsFilterCount_Call { return &Client_ListEducationalProductsFilterCount_Call{Call: _e.mock.On("ListEducationalProductsFilterCount", ctx, params)} } func (_c *Client_ListEducationalProductsFilterCount_Call) Run(run func(ctx context.Context, params sravni.ListEducationProductsParams)) *Client_ListEducationalProductsFilterCount_Call { _c.Call.Run(func(args mock.Arguments) { run(args[0].(context.Context), args[1].(sravni.ListEducationProductsParams)) }) return _c } func (_c *Client_ListEducationalProductsFilterCount_Call) Return(result sravni.ProductsFilterCount, err error) *Client_ListEducationalProductsFilterCount_Call { _c.Call.Return(result, err) return _c } func (_c *Client_ListEducationalProductsFilterCount_Call) RunAndReturn(run func(context.Context, sravni.ListEducationProductsParams) (sravni.ProductsFilterCount, error)) *Client_ListEducationalProductsFilterCount_Call { _c.Call.Return(run) return _c } // NewClient creates a new instance of Client. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // The first argument is typically a *testing.T value. func NewClient(t interface { mock.TestingT Cleanup(func()) }) *Client { mock := &Client{} mock.Mock.Test(t) t.Cleanup(func() { mock.AssertExpectations(t) }) return mock }