// Code generated by mockery v2.52.3. DO NOT EDIT. package queryapimock import ( context "context" io "io" mock "github.com/stretchr/testify/mock" queryapi "queryorchestration/pkg/queryAPI" uuid "github.com/google/uuid" ) // MockClientWithResponsesInterface is an autogenerated mock type for the ClientWithResponsesInterface type type MockClientWithResponsesInterface struct { mock.Mock } type MockClientWithResponsesInterface_Expecter struct { mock *mock.Mock } func (_m *MockClientWithResponsesInterface) EXPECT() *MockClientWithResponsesInterface_Expecter { return &MockClientWithResponsesInterface_Expecter{mock: &_m.Mock} } // CreateClientWithBodyWithResponse provides a mock function with given fields: ctx, contentType, body, reqEditors func (_m *MockClientWithResponsesInterface) CreateClientWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...queryapi.RequestEditorFn) (*queryapi.CreateClientResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} _ca = append(_ca, ctx, contentType, body) _ca = append(_ca, _va...) ret := _m.Called(_ca...) if len(ret) == 0 { panic("no return value specified for CreateClientWithBodyWithResponse") } var r0 *queryapi.CreateClientResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, string, io.Reader, ...queryapi.RequestEditorFn) (*queryapi.CreateClientResponse, error)); ok { return rf(ctx, contentType, body, reqEditors...) } if rf, ok := ret.Get(0).(func(context.Context, string, io.Reader, ...queryapi.RequestEditorFn) *queryapi.CreateClientResponse); ok { r0 = rf(ctx, contentType, body, reqEditors...) } else { if ret.Get(0) != nil { r0 = ret.Get(0).(*queryapi.CreateClientResponse) } } if rf, ok := ret.Get(1).(func(context.Context, string, io.Reader, ...queryapi.RequestEditorFn) error); ok { r1 = rf(ctx, contentType, body, reqEditors...) } else { r1 = ret.Error(1) } return r0, r1 } // MockClientWithResponsesInterface_CreateClientWithBodyWithResponse_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateClientWithBodyWithResponse' type MockClientWithResponsesInterface_CreateClientWithBodyWithResponse_Call struct { *mock.Call } // CreateClientWithBodyWithResponse is a helper method to define mock.On call // - ctx context.Context // - contentType string // - body io.Reader // - reqEditors ...queryapi.RequestEditorFn func (_e *MockClientWithResponsesInterface_Expecter) CreateClientWithBodyWithResponse(ctx interface{}, contentType interface{}, body interface{}, reqEditors ...interface{}) *MockClientWithResponsesInterface_CreateClientWithBodyWithResponse_Call { return &MockClientWithResponsesInterface_CreateClientWithBodyWithResponse_Call{Call: _e.mock.On("CreateClientWithBodyWithResponse", append([]interface{}{ctx, contentType, body}, reqEditors...)...)} } func (_c *MockClientWithResponsesInterface_CreateClientWithBodyWithResponse_Call) Run(run func(ctx context.Context, contentType string, body io.Reader, reqEditors ...queryapi.RequestEditorFn)) *MockClientWithResponsesInterface_CreateClientWithBodyWithResponse_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]queryapi.RequestEditorFn, len(args)-3) for i, a := range args[3:] { if a != nil { variadicArgs[i] = a.(queryapi.RequestEditorFn) } } run(args[0].(context.Context), args[1].(string), args[2].(io.Reader), variadicArgs...) }) return _c } func (_c *MockClientWithResponsesInterface_CreateClientWithBodyWithResponse_Call) Return(_a0 *queryapi.CreateClientResponse, _a1 error) *MockClientWithResponsesInterface_CreateClientWithBodyWithResponse_Call { _c.Call.Return(_a0, _a1) return _c } func (_c *MockClientWithResponsesInterface_CreateClientWithBodyWithResponse_Call) RunAndReturn(run func(context.Context, string, io.Reader, ...queryapi.RequestEditorFn) (*queryapi.CreateClientResponse, error)) *MockClientWithResponsesInterface_CreateClientWithBodyWithResponse_Call { _c.Call.Return(run) return _c } // CreateClientWithResponse provides a mock function with given fields: ctx, body, reqEditors func (_m *MockClientWithResponsesInterface) CreateClientWithResponse(ctx context.Context, body queryapi.ClientCreate, reqEditors ...queryapi.RequestEditorFn) (*queryapi.CreateClientResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} _ca = append(_ca, ctx, body) _ca = append(_ca, _va...) ret := _m.Called(_ca...) if len(ret) == 0 { panic("no return value specified for CreateClientWithResponse") } var r0 *queryapi.CreateClientResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, queryapi.ClientCreate, ...queryapi.RequestEditorFn) (*queryapi.CreateClientResponse, error)); ok { return rf(ctx, body, reqEditors...) } if rf, ok := ret.Get(0).(func(context.Context, queryapi.ClientCreate, ...queryapi.RequestEditorFn) *queryapi.CreateClientResponse); ok { r0 = rf(ctx, body, reqEditors...) } else { if ret.Get(0) != nil { r0 = ret.Get(0).(*queryapi.CreateClientResponse) } } if rf, ok := ret.Get(1).(func(context.Context, queryapi.ClientCreate, ...queryapi.RequestEditorFn) error); ok { r1 = rf(ctx, body, reqEditors...) } else { r1 = ret.Error(1) } return r0, r1 } // MockClientWithResponsesInterface_CreateClientWithResponse_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateClientWithResponse' type MockClientWithResponsesInterface_CreateClientWithResponse_Call struct { *mock.Call } // CreateClientWithResponse is a helper method to define mock.On call // - ctx context.Context // - body queryapi.ClientCreate // - reqEditors ...queryapi.RequestEditorFn func (_e *MockClientWithResponsesInterface_Expecter) CreateClientWithResponse(ctx interface{}, body interface{}, reqEditors ...interface{}) *MockClientWithResponsesInterface_CreateClientWithResponse_Call { return &MockClientWithResponsesInterface_CreateClientWithResponse_Call{Call: _e.mock.On("CreateClientWithResponse", append([]interface{}{ctx, body}, reqEditors...)...)} } func (_c *MockClientWithResponsesInterface_CreateClientWithResponse_Call) Run(run func(ctx context.Context, body queryapi.ClientCreate, reqEditors ...queryapi.RequestEditorFn)) *MockClientWithResponsesInterface_CreateClientWithResponse_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]queryapi.RequestEditorFn, len(args)-2) for i, a := range args[2:] { if a != nil { variadicArgs[i] = a.(queryapi.RequestEditorFn) } } run(args[0].(context.Context), args[1].(queryapi.ClientCreate), variadicArgs...) }) return _c } func (_c *MockClientWithResponsesInterface_CreateClientWithResponse_Call) Return(_a0 *queryapi.CreateClientResponse, _a1 error) *MockClientWithResponsesInterface_CreateClientWithResponse_Call { _c.Call.Return(_a0, _a1) return _c } func (_c *MockClientWithResponsesInterface_CreateClientWithResponse_Call) RunAndReturn(run func(context.Context, queryapi.ClientCreate, ...queryapi.RequestEditorFn) (*queryapi.CreateClientResponse, error)) *MockClientWithResponsesInterface_CreateClientWithResponse_Call { _c.Call.Return(run) return _c } // CreateQueryWithBodyWithResponse provides a mock function with given fields: ctx, contentType, body, reqEditors func (_m *MockClientWithResponsesInterface) CreateQueryWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...queryapi.RequestEditorFn) (*queryapi.CreateQueryResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} _ca = append(_ca, ctx, contentType, body) _ca = append(_ca, _va...) ret := _m.Called(_ca...) if len(ret) == 0 { panic("no return value specified for CreateQueryWithBodyWithResponse") } var r0 *queryapi.CreateQueryResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, string, io.Reader, ...queryapi.RequestEditorFn) (*queryapi.CreateQueryResponse, error)); ok { return rf(ctx, contentType, body, reqEditors...) } if rf, ok := ret.Get(0).(func(context.Context, string, io.Reader, ...queryapi.RequestEditorFn) *queryapi.CreateQueryResponse); ok { r0 = rf(ctx, contentType, body, reqEditors...) } else { if ret.Get(0) != nil { r0 = ret.Get(0).(*queryapi.CreateQueryResponse) } } if rf, ok := ret.Get(1).(func(context.Context, string, io.Reader, ...queryapi.RequestEditorFn) error); ok { r1 = rf(ctx, contentType, body, reqEditors...) } else { r1 = ret.Error(1) } return r0, r1 } // MockClientWithResponsesInterface_CreateQueryWithBodyWithResponse_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateQueryWithBodyWithResponse' type MockClientWithResponsesInterface_CreateQueryWithBodyWithResponse_Call struct { *mock.Call } // CreateQueryWithBodyWithResponse is a helper method to define mock.On call // - ctx context.Context // - contentType string // - body io.Reader // - reqEditors ...queryapi.RequestEditorFn func (_e *MockClientWithResponsesInterface_Expecter) CreateQueryWithBodyWithResponse(ctx interface{}, contentType interface{}, body interface{}, reqEditors ...interface{}) *MockClientWithResponsesInterface_CreateQueryWithBodyWithResponse_Call { return &MockClientWithResponsesInterface_CreateQueryWithBodyWithResponse_Call{Call: _e.mock.On("CreateQueryWithBodyWithResponse", append([]interface{}{ctx, contentType, body}, reqEditors...)...)} } func (_c *MockClientWithResponsesInterface_CreateQueryWithBodyWithResponse_Call) Run(run func(ctx context.Context, contentType string, body io.Reader, reqEditors ...queryapi.RequestEditorFn)) *MockClientWithResponsesInterface_CreateQueryWithBodyWithResponse_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]queryapi.RequestEditorFn, len(args)-3) for i, a := range args[3:] { if a != nil { variadicArgs[i] = a.(queryapi.RequestEditorFn) } } run(args[0].(context.Context), args[1].(string), args[2].(io.Reader), variadicArgs...) }) return _c } func (_c *MockClientWithResponsesInterface_CreateQueryWithBodyWithResponse_Call) Return(_a0 *queryapi.CreateQueryResponse, _a1 error) *MockClientWithResponsesInterface_CreateQueryWithBodyWithResponse_Call { _c.Call.Return(_a0, _a1) return _c } func (_c *MockClientWithResponsesInterface_CreateQueryWithBodyWithResponse_Call) RunAndReturn(run func(context.Context, string, io.Reader, ...queryapi.RequestEditorFn) (*queryapi.CreateQueryResponse, error)) *MockClientWithResponsesInterface_CreateQueryWithBodyWithResponse_Call { _c.Call.Return(run) return _c } // CreateQueryWithResponse provides a mock function with given fields: ctx, body, reqEditors func (_m *MockClientWithResponsesInterface) CreateQueryWithResponse(ctx context.Context, body queryapi.QueryCreate, reqEditors ...queryapi.RequestEditorFn) (*queryapi.CreateQueryResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} _ca = append(_ca, ctx, body) _ca = append(_ca, _va...) ret := _m.Called(_ca...) if len(ret) == 0 { panic("no return value specified for CreateQueryWithResponse") } var r0 *queryapi.CreateQueryResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, queryapi.QueryCreate, ...queryapi.RequestEditorFn) (*queryapi.CreateQueryResponse, error)); ok { return rf(ctx, body, reqEditors...) } if rf, ok := ret.Get(0).(func(context.Context, queryapi.QueryCreate, ...queryapi.RequestEditorFn) *queryapi.CreateQueryResponse); ok { r0 = rf(ctx, body, reqEditors...) } else { if ret.Get(0) != nil { r0 = ret.Get(0).(*queryapi.CreateQueryResponse) } } if rf, ok := ret.Get(1).(func(context.Context, queryapi.QueryCreate, ...queryapi.RequestEditorFn) error); ok { r1 = rf(ctx, body, reqEditors...) } else { r1 = ret.Error(1) } return r0, r1 } // MockClientWithResponsesInterface_CreateQueryWithResponse_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateQueryWithResponse' type MockClientWithResponsesInterface_CreateQueryWithResponse_Call struct { *mock.Call } // CreateQueryWithResponse is a helper method to define mock.On call // - ctx context.Context // - body queryapi.QueryCreate // - reqEditors ...queryapi.RequestEditorFn func (_e *MockClientWithResponsesInterface_Expecter) CreateQueryWithResponse(ctx interface{}, body interface{}, reqEditors ...interface{}) *MockClientWithResponsesInterface_CreateQueryWithResponse_Call { return &MockClientWithResponsesInterface_CreateQueryWithResponse_Call{Call: _e.mock.On("CreateQueryWithResponse", append([]interface{}{ctx, body}, reqEditors...)...)} } func (_c *MockClientWithResponsesInterface_CreateQueryWithResponse_Call) Run(run func(ctx context.Context, body queryapi.QueryCreate, reqEditors ...queryapi.RequestEditorFn)) *MockClientWithResponsesInterface_CreateQueryWithResponse_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]queryapi.RequestEditorFn, len(args)-2) for i, a := range args[2:] { if a != nil { variadicArgs[i] = a.(queryapi.RequestEditorFn) } } run(args[0].(context.Context), args[1].(queryapi.QueryCreate), variadicArgs...) }) return _c } func (_c *MockClientWithResponsesInterface_CreateQueryWithResponse_Call) Return(_a0 *queryapi.CreateQueryResponse, _a1 error) *MockClientWithResponsesInterface_CreateQueryWithResponse_Call { _c.Call.Return(_a0, _a1) return _c } func (_c *MockClientWithResponsesInterface_CreateQueryWithResponse_Call) RunAndReturn(run func(context.Context, queryapi.QueryCreate, ...queryapi.RequestEditorFn) (*queryapi.CreateQueryResponse, error)) *MockClientWithResponsesInterface_CreateQueryWithResponse_Call { _c.Call.Return(run) return _c } // ExportStateWithResponse provides a mock function with given fields: ctx, id, reqEditors func (_m *MockClientWithResponsesInterface) ExportStateWithResponse(ctx context.Context, id uuid.UUID, reqEditors ...queryapi.RequestEditorFn) (*queryapi.ExportStateResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} _ca = append(_ca, ctx, id) _ca = append(_ca, _va...) ret := _m.Called(_ca...) if len(ret) == 0 { panic("no return value specified for ExportStateWithResponse") } var r0 *queryapi.ExportStateResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, uuid.UUID, ...queryapi.RequestEditorFn) (*queryapi.ExportStateResponse, error)); ok { return rf(ctx, id, reqEditors...) } if rf, ok := ret.Get(0).(func(context.Context, uuid.UUID, ...queryapi.RequestEditorFn) *queryapi.ExportStateResponse); ok { r0 = rf(ctx, id, reqEditors...) } else { if ret.Get(0) != nil { r0 = ret.Get(0).(*queryapi.ExportStateResponse) } } if rf, ok := ret.Get(1).(func(context.Context, uuid.UUID, ...queryapi.RequestEditorFn) error); ok { r1 = rf(ctx, id, reqEditors...) } else { r1 = ret.Error(1) } return r0, r1 } // MockClientWithResponsesInterface_ExportStateWithResponse_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ExportStateWithResponse' type MockClientWithResponsesInterface_ExportStateWithResponse_Call struct { *mock.Call } // ExportStateWithResponse is a helper method to define mock.On call // - ctx context.Context // - id uuid.UUID // - reqEditors ...queryapi.RequestEditorFn func (_e *MockClientWithResponsesInterface_Expecter) ExportStateWithResponse(ctx interface{}, id interface{}, reqEditors ...interface{}) *MockClientWithResponsesInterface_ExportStateWithResponse_Call { return &MockClientWithResponsesInterface_ExportStateWithResponse_Call{Call: _e.mock.On("ExportStateWithResponse", append([]interface{}{ctx, id}, reqEditors...)...)} } func (_c *MockClientWithResponsesInterface_ExportStateWithResponse_Call) Run(run func(ctx context.Context, id uuid.UUID, reqEditors ...queryapi.RequestEditorFn)) *MockClientWithResponsesInterface_ExportStateWithResponse_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]queryapi.RequestEditorFn, len(args)-2) for i, a := range args[2:] { if a != nil { variadicArgs[i] = a.(queryapi.RequestEditorFn) } } run(args[0].(context.Context), args[1].(uuid.UUID), variadicArgs...) }) return _c } func (_c *MockClientWithResponsesInterface_ExportStateWithResponse_Call) Return(_a0 *queryapi.ExportStateResponse, _a1 error) *MockClientWithResponsesInterface_ExportStateWithResponse_Call { _c.Call.Return(_a0, _a1) return _c } func (_c *MockClientWithResponsesInterface_ExportStateWithResponse_Call) RunAndReturn(run func(context.Context, uuid.UUID, ...queryapi.RequestEditorFn) (*queryapi.ExportStateResponse, error)) *MockClientWithResponsesInterface_ExportStateWithResponse_Call { _c.Call.Return(run) return _c } // GetClientWithResponse provides a mock function with given fields: ctx, id, reqEditors func (_m *MockClientWithResponsesInterface) GetClientWithResponse(ctx context.Context, id string, reqEditors ...queryapi.RequestEditorFn) (*queryapi.GetClientResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} _ca = append(_ca, ctx, id) _ca = append(_ca, _va...) ret := _m.Called(_ca...) if len(ret) == 0 { panic("no return value specified for GetClientWithResponse") } var r0 *queryapi.GetClientResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, string, ...queryapi.RequestEditorFn) (*queryapi.GetClientResponse, error)); ok { return rf(ctx, id, reqEditors...) } if rf, ok := ret.Get(0).(func(context.Context, string, ...queryapi.RequestEditorFn) *queryapi.GetClientResponse); ok { r0 = rf(ctx, id, reqEditors...) } else { if ret.Get(0) != nil { r0 = ret.Get(0).(*queryapi.GetClientResponse) } } if rf, ok := ret.Get(1).(func(context.Context, string, ...queryapi.RequestEditorFn) error); ok { r1 = rf(ctx, id, reqEditors...) } else { r1 = ret.Error(1) } return r0, r1 } // MockClientWithResponsesInterface_GetClientWithResponse_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetClientWithResponse' type MockClientWithResponsesInterface_GetClientWithResponse_Call struct { *mock.Call } // GetClientWithResponse is a helper method to define mock.On call // - ctx context.Context // - id string // - reqEditors ...queryapi.RequestEditorFn func (_e *MockClientWithResponsesInterface_Expecter) GetClientWithResponse(ctx interface{}, id interface{}, reqEditors ...interface{}) *MockClientWithResponsesInterface_GetClientWithResponse_Call { return &MockClientWithResponsesInterface_GetClientWithResponse_Call{Call: _e.mock.On("GetClientWithResponse", append([]interface{}{ctx, id}, reqEditors...)...)} } func (_c *MockClientWithResponsesInterface_GetClientWithResponse_Call) Run(run func(ctx context.Context, id string, reqEditors ...queryapi.RequestEditorFn)) *MockClientWithResponsesInterface_GetClientWithResponse_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]queryapi.RequestEditorFn, len(args)-2) for i, a := range args[2:] { if a != nil { variadicArgs[i] = a.(queryapi.RequestEditorFn) } } run(args[0].(context.Context), args[1].(string), variadicArgs...) }) return _c } func (_c *MockClientWithResponsesInterface_GetClientWithResponse_Call) Return(_a0 *queryapi.GetClientResponse, _a1 error) *MockClientWithResponsesInterface_GetClientWithResponse_Call { _c.Call.Return(_a0, _a1) return _c } func (_c *MockClientWithResponsesInterface_GetClientWithResponse_Call) RunAndReturn(run func(context.Context, string, ...queryapi.RequestEditorFn) (*queryapi.GetClientResponse, error)) *MockClientWithResponsesInterface_GetClientWithResponse_Call { _c.Call.Return(run) return _c } // GetCollectorByClientIdWithResponse provides a mock function with given fields: ctx, id, reqEditors func (_m *MockClientWithResponsesInterface) GetCollectorByClientIdWithResponse(ctx context.Context, id string, reqEditors ...queryapi.RequestEditorFn) (*queryapi.GetCollectorByClientIdResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} _ca = append(_ca, ctx, id) _ca = append(_ca, _va...) ret := _m.Called(_ca...) if len(ret) == 0 { panic("no return value specified for GetCollectorByClientIdWithResponse") } var r0 *queryapi.GetCollectorByClientIdResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, string, ...queryapi.RequestEditorFn) (*queryapi.GetCollectorByClientIdResponse, error)); ok { return rf(ctx, id, reqEditors...) } if rf, ok := ret.Get(0).(func(context.Context, string, ...queryapi.RequestEditorFn) *queryapi.GetCollectorByClientIdResponse); ok { r0 = rf(ctx, id, reqEditors...) } else { if ret.Get(0) != nil { r0 = ret.Get(0).(*queryapi.GetCollectorByClientIdResponse) } } if rf, ok := ret.Get(1).(func(context.Context, string, ...queryapi.RequestEditorFn) error); ok { r1 = rf(ctx, id, reqEditors...) } else { r1 = ret.Error(1) } return r0, r1 } // MockClientWithResponsesInterface_GetCollectorByClientIdWithResponse_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCollectorByClientIdWithResponse' type MockClientWithResponsesInterface_GetCollectorByClientIdWithResponse_Call struct { *mock.Call } // GetCollectorByClientIdWithResponse is a helper method to define mock.On call // - ctx context.Context // - id string // - reqEditors ...queryapi.RequestEditorFn func (_e *MockClientWithResponsesInterface_Expecter) GetCollectorByClientIdWithResponse(ctx interface{}, id interface{}, reqEditors ...interface{}) *MockClientWithResponsesInterface_GetCollectorByClientIdWithResponse_Call { return &MockClientWithResponsesInterface_GetCollectorByClientIdWithResponse_Call{Call: _e.mock.On("GetCollectorByClientIdWithResponse", append([]interface{}{ctx, id}, reqEditors...)...)} } func (_c *MockClientWithResponsesInterface_GetCollectorByClientIdWithResponse_Call) Run(run func(ctx context.Context, id string, reqEditors ...queryapi.RequestEditorFn)) *MockClientWithResponsesInterface_GetCollectorByClientIdWithResponse_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]queryapi.RequestEditorFn, len(args)-2) for i, a := range args[2:] { if a != nil { variadicArgs[i] = a.(queryapi.RequestEditorFn) } } run(args[0].(context.Context), args[1].(string), variadicArgs...) }) return _c } func (_c *MockClientWithResponsesInterface_GetCollectorByClientIdWithResponse_Call) Return(_a0 *queryapi.GetCollectorByClientIdResponse, _a1 error) *MockClientWithResponsesInterface_GetCollectorByClientIdWithResponse_Call { _c.Call.Return(_a0, _a1) return _c } func (_c *MockClientWithResponsesInterface_GetCollectorByClientIdWithResponse_Call) RunAndReturn(run func(context.Context, string, ...queryapi.RequestEditorFn) (*queryapi.GetCollectorByClientIdResponse, error)) *MockClientWithResponsesInterface_GetCollectorByClientIdWithResponse_Call { _c.Call.Return(run) return _c } // GetDocumentWithResponse provides a mock function with given fields: ctx, id, reqEditors func (_m *MockClientWithResponsesInterface) GetDocumentWithResponse(ctx context.Context, id uuid.UUID, reqEditors ...queryapi.RequestEditorFn) (*queryapi.GetDocumentResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} _ca = append(_ca, ctx, id) _ca = append(_ca, _va...) ret := _m.Called(_ca...) if len(ret) == 0 { panic("no return value specified for GetDocumentWithResponse") } var r0 *queryapi.GetDocumentResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, uuid.UUID, ...queryapi.RequestEditorFn) (*queryapi.GetDocumentResponse, error)); ok { return rf(ctx, id, reqEditors...) } if rf, ok := ret.Get(0).(func(context.Context, uuid.UUID, ...queryapi.RequestEditorFn) *queryapi.GetDocumentResponse); ok { r0 = rf(ctx, id, reqEditors...) } else { if ret.Get(0) != nil { r0 = ret.Get(0).(*queryapi.GetDocumentResponse) } } if rf, ok := ret.Get(1).(func(context.Context, uuid.UUID, ...queryapi.RequestEditorFn) error); ok { r1 = rf(ctx, id, reqEditors...) } else { r1 = ret.Error(1) } return r0, r1 } // MockClientWithResponsesInterface_GetDocumentWithResponse_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDocumentWithResponse' type MockClientWithResponsesInterface_GetDocumentWithResponse_Call struct { *mock.Call } // GetDocumentWithResponse is a helper method to define mock.On call // - ctx context.Context // - id uuid.UUID // - reqEditors ...queryapi.RequestEditorFn func (_e *MockClientWithResponsesInterface_Expecter) GetDocumentWithResponse(ctx interface{}, id interface{}, reqEditors ...interface{}) *MockClientWithResponsesInterface_GetDocumentWithResponse_Call { return &MockClientWithResponsesInterface_GetDocumentWithResponse_Call{Call: _e.mock.On("GetDocumentWithResponse", append([]interface{}{ctx, id}, reqEditors...)...)} } func (_c *MockClientWithResponsesInterface_GetDocumentWithResponse_Call) Run(run func(ctx context.Context, id uuid.UUID, reqEditors ...queryapi.RequestEditorFn)) *MockClientWithResponsesInterface_GetDocumentWithResponse_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]queryapi.RequestEditorFn, len(args)-2) for i, a := range args[2:] { if a != nil { variadicArgs[i] = a.(queryapi.RequestEditorFn) } } run(args[0].(context.Context), args[1].(uuid.UUID), variadicArgs...) }) return _c } func (_c *MockClientWithResponsesInterface_GetDocumentWithResponse_Call) Return(_a0 *queryapi.GetDocumentResponse, _a1 error) *MockClientWithResponsesInterface_GetDocumentWithResponse_Call { _c.Call.Return(_a0, _a1) return _c } func (_c *MockClientWithResponsesInterface_GetDocumentWithResponse_Call) RunAndReturn(run func(context.Context, uuid.UUID, ...queryapi.RequestEditorFn) (*queryapi.GetDocumentResponse, error)) *MockClientWithResponsesInterface_GetDocumentWithResponse_Call { _c.Call.Return(run) return _c } // GetQueryWithResponse provides a mock function with given fields: ctx, id, reqEditors func (_m *MockClientWithResponsesInterface) GetQueryWithResponse(ctx context.Context, id uuid.UUID, reqEditors ...queryapi.RequestEditorFn) (*queryapi.GetQueryResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} _ca = append(_ca, ctx, id) _ca = append(_ca, _va...) ret := _m.Called(_ca...) if len(ret) == 0 { panic("no return value specified for GetQueryWithResponse") } var r0 *queryapi.GetQueryResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, uuid.UUID, ...queryapi.RequestEditorFn) (*queryapi.GetQueryResponse, error)); ok { return rf(ctx, id, reqEditors...) } if rf, ok := ret.Get(0).(func(context.Context, uuid.UUID, ...queryapi.RequestEditorFn) *queryapi.GetQueryResponse); ok { r0 = rf(ctx, id, reqEditors...) } else { if ret.Get(0) != nil { r0 = ret.Get(0).(*queryapi.GetQueryResponse) } } if rf, ok := ret.Get(1).(func(context.Context, uuid.UUID, ...queryapi.RequestEditorFn) error); ok { r1 = rf(ctx, id, reqEditors...) } else { r1 = ret.Error(1) } return r0, r1 } // MockClientWithResponsesInterface_GetQueryWithResponse_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetQueryWithResponse' type MockClientWithResponsesInterface_GetQueryWithResponse_Call struct { *mock.Call } // GetQueryWithResponse is a helper method to define mock.On call // - ctx context.Context // - id uuid.UUID // - reqEditors ...queryapi.RequestEditorFn func (_e *MockClientWithResponsesInterface_Expecter) GetQueryWithResponse(ctx interface{}, id interface{}, reqEditors ...interface{}) *MockClientWithResponsesInterface_GetQueryWithResponse_Call { return &MockClientWithResponsesInterface_GetQueryWithResponse_Call{Call: _e.mock.On("GetQueryWithResponse", append([]interface{}{ctx, id}, reqEditors...)...)} } func (_c *MockClientWithResponsesInterface_GetQueryWithResponse_Call) Run(run func(ctx context.Context, id uuid.UUID, reqEditors ...queryapi.RequestEditorFn)) *MockClientWithResponsesInterface_GetQueryWithResponse_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]queryapi.RequestEditorFn, len(args)-2) for i, a := range args[2:] { if a != nil { variadicArgs[i] = a.(queryapi.RequestEditorFn) } } run(args[0].(context.Context), args[1].(uuid.UUID), variadicArgs...) }) return _c } func (_c *MockClientWithResponsesInterface_GetQueryWithResponse_Call) Return(_a0 *queryapi.GetQueryResponse, _a1 error) *MockClientWithResponsesInterface_GetQueryWithResponse_Call { _c.Call.Return(_a0, _a1) return _c } func (_c *MockClientWithResponsesInterface_GetQueryWithResponse_Call) RunAndReturn(run func(context.Context, uuid.UUID, ...queryapi.RequestEditorFn) (*queryapi.GetQueryResponse, error)) *MockClientWithResponsesInterface_GetQueryWithResponse_Call { _c.Call.Return(run) return _c } // GetStatusByClientIdWithResponse provides a mock function with given fields: ctx, id, reqEditors func (_m *MockClientWithResponsesInterface) GetStatusByClientIdWithResponse(ctx context.Context, id string, reqEditors ...queryapi.RequestEditorFn) (*queryapi.GetStatusByClientIdResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} _ca = append(_ca, ctx, id) _ca = append(_ca, _va...) ret := _m.Called(_ca...) if len(ret) == 0 { panic("no return value specified for GetStatusByClientIdWithResponse") } var r0 *queryapi.GetStatusByClientIdResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, string, ...queryapi.RequestEditorFn) (*queryapi.GetStatusByClientIdResponse, error)); ok { return rf(ctx, id, reqEditors...) } if rf, ok := ret.Get(0).(func(context.Context, string, ...queryapi.RequestEditorFn) *queryapi.GetStatusByClientIdResponse); ok { r0 = rf(ctx, id, reqEditors...) } else { if ret.Get(0) != nil { r0 = ret.Get(0).(*queryapi.GetStatusByClientIdResponse) } } if rf, ok := ret.Get(1).(func(context.Context, string, ...queryapi.RequestEditorFn) error); ok { r1 = rf(ctx, id, reqEditors...) } else { r1 = ret.Error(1) } return r0, r1 } // MockClientWithResponsesInterface_GetStatusByClientIdWithResponse_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetStatusByClientIdWithResponse' type MockClientWithResponsesInterface_GetStatusByClientIdWithResponse_Call struct { *mock.Call } // GetStatusByClientIdWithResponse is a helper method to define mock.On call // - ctx context.Context // - id string // - reqEditors ...queryapi.RequestEditorFn func (_e *MockClientWithResponsesInterface_Expecter) GetStatusByClientIdWithResponse(ctx interface{}, id interface{}, reqEditors ...interface{}) *MockClientWithResponsesInterface_GetStatusByClientIdWithResponse_Call { return &MockClientWithResponsesInterface_GetStatusByClientIdWithResponse_Call{Call: _e.mock.On("GetStatusByClientIdWithResponse", append([]interface{}{ctx, id}, reqEditors...)...)} } func (_c *MockClientWithResponsesInterface_GetStatusByClientIdWithResponse_Call) Run(run func(ctx context.Context, id string, reqEditors ...queryapi.RequestEditorFn)) *MockClientWithResponsesInterface_GetStatusByClientIdWithResponse_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]queryapi.RequestEditorFn, len(args)-2) for i, a := range args[2:] { if a != nil { variadicArgs[i] = a.(queryapi.RequestEditorFn) } } run(args[0].(context.Context), args[1].(string), variadicArgs...) }) return _c } func (_c *MockClientWithResponsesInterface_GetStatusByClientIdWithResponse_Call) Return(_a0 *queryapi.GetStatusByClientIdResponse, _a1 error) *MockClientWithResponsesInterface_GetStatusByClientIdWithResponse_Call { _c.Call.Return(_a0, _a1) return _c } func (_c *MockClientWithResponsesInterface_GetStatusByClientIdWithResponse_Call) RunAndReturn(run func(context.Context, string, ...queryapi.RequestEditorFn) (*queryapi.GetStatusByClientIdResponse, error)) *MockClientWithResponsesInterface_GetStatusByClientIdWithResponse_Call { _c.Call.Return(run) return _c } // ListDocumentsByClientIdWithResponse provides a mock function with given fields: ctx, id, reqEditors func (_m *MockClientWithResponsesInterface) ListDocumentsByClientIdWithResponse(ctx context.Context, id string, reqEditors ...queryapi.RequestEditorFn) (*queryapi.ListDocumentsByClientIdResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} _ca = append(_ca, ctx, id) _ca = append(_ca, _va...) ret := _m.Called(_ca...) if len(ret) == 0 { panic("no return value specified for ListDocumentsByClientIdWithResponse") } var r0 *queryapi.ListDocumentsByClientIdResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, string, ...queryapi.RequestEditorFn) (*queryapi.ListDocumentsByClientIdResponse, error)); ok { return rf(ctx, id, reqEditors...) } if rf, ok := ret.Get(0).(func(context.Context, string, ...queryapi.RequestEditorFn) *queryapi.ListDocumentsByClientIdResponse); ok { r0 = rf(ctx, id, reqEditors...) } else { if ret.Get(0) != nil { r0 = ret.Get(0).(*queryapi.ListDocumentsByClientIdResponse) } } if rf, ok := ret.Get(1).(func(context.Context, string, ...queryapi.RequestEditorFn) error); ok { r1 = rf(ctx, id, reqEditors...) } else { r1 = ret.Error(1) } return r0, r1 } // MockClientWithResponsesInterface_ListDocumentsByClientIdWithResponse_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListDocumentsByClientIdWithResponse' type MockClientWithResponsesInterface_ListDocumentsByClientIdWithResponse_Call struct { *mock.Call } // ListDocumentsByClientIdWithResponse is a helper method to define mock.On call // - ctx context.Context // - id string // - reqEditors ...queryapi.RequestEditorFn func (_e *MockClientWithResponsesInterface_Expecter) ListDocumentsByClientIdWithResponse(ctx interface{}, id interface{}, reqEditors ...interface{}) *MockClientWithResponsesInterface_ListDocumentsByClientIdWithResponse_Call { return &MockClientWithResponsesInterface_ListDocumentsByClientIdWithResponse_Call{Call: _e.mock.On("ListDocumentsByClientIdWithResponse", append([]interface{}{ctx, id}, reqEditors...)...)} } func (_c *MockClientWithResponsesInterface_ListDocumentsByClientIdWithResponse_Call) Run(run func(ctx context.Context, id string, reqEditors ...queryapi.RequestEditorFn)) *MockClientWithResponsesInterface_ListDocumentsByClientIdWithResponse_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]queryapi.RequestEditorFn, len(args)-2) for i, a := range args[2:] { if a != nil { variadicArgs[i] = a.(queryapi.RequestEditorFn) } } run(args[0].(context.Context), args[1].(string), variadicArgs...) }) return _c } func (_c *MockClientWithResponsesInterface_ListDocumentsByClientIdWithResponse_Call) Return(_a0 *queryapi.ListDocumentsByClientIdResponse, _a1 error) *MockClientWithResponsesInterface_ListDocumentsByClientIdWithResponse_Call { _c.Call.Return(_a0, _a1) return _c } func (_c *MockClientWithResponsesInterface_ListDocumentsByClientIdWithResponse_Call) RunAndReturn(run func(context.Context, string, ...queryapi.RequestEditorFn) (*queryapi.ListDocumentsByClientIdResponse, error)) *MockClientWithResponsesInterface_ListDocumentsByClientIdWithResponse_Call { _c.Call.Return(run) return _c } // ListQueriesWithResponse provides a mock function with given fields: ctx, reqEditors func (_m *MockClientWithResponsesInterface) ListQueriesWithResponse(ctx context.Context, reqEditors ...queryapi.RequestEditorFn) (*queryapi.ListQueriesResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} _ca = append(_ca, ctx) _ca = append(_ca, _va...) ret := _m.Called(_ca...) if len(ret) == 0 { panic("no return value specified for ListQueriesWithResponse") } var r0 *queryapi.ListQueriesResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, ...queryapi.RequestEditorFn) (*queryapi.ListQueriesResponse, error)); ok { return rf(ctx, reqEditors...) } if rf, ok := ret.Get(0).(func(context.Context, ...queryapi.RequestEditorFn) *queryapi.ListQueriesResponse); ok { r0 = rf(ctx, reqEditors...) } else { if ret.Get(0) != nil { r0 = ret.Get(0).(*queryapi.ListQueriesResponse) } } if rf, ok := ret.Get(1).(func(context.Context, ...queryapi.RequestEditorFn) error); ok { r1 = rf(ctx, reqEditors...) } else { r1 = ret.Error(1) } return r0, r1 } // MockClientWithResponsesInterface_ListQueriesWithResponse_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListQueriesWithResponse' type MockClientWithResponsesInterface_ListQueriesWithResponse_Call struct { *mock.Call } // ListQueriesWithResponse is a helper method to define mock.On call // - ctx context.Context // - reqEditors ...queryapi.RequestEditorFn func (_e *MockClientWithResponsesInterface_Expecter) ListQueriesWithResponse(ctx interface{}, reqEditors ...interface{}) *MockClientWithResponsesInterface_ListQueriesWithResponse_Call { return &MockClientWithResponsesInterface_ListQueriesWithResponse_Call{Call: _e.mock.On("ListQueriesWithResponse", append([]interface{}{ctx}, reqEditors...)...)} } func (_c *MockClientWithResponsesInterface_ListQueriesWithResponse_Call) Run(run func(ctx context.Context, reqEditors ...queryapi.RequestEditorFn)) *MockClientWithResponsesInterface_ListQueriesWithResponse_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]queryapi.RequestEditorFn, len(args)-1) for i, a := range args[1:] { if a != nil { variadicArgs[i] = a.(queryapi.RequestEditorFn) } } run(args[0].(context.Context), variadicArgs...) }) return _c } func (_c *MockClientWithResponsesInterface_ListQueriesWithResponse_Call) Return(_a0 *queryapi.ListQueriesResponse, _a1 error) *MockClientWithResponsesInterface_ListQueriesWithResponse_Call { _c.Call.Return(_a0, _a1) return _c } func (_c *MockClientWithResponsesInterface_ListQueriesWithResponse_Call) RunAndReturn(run func(context.Context, ...queryapi.RequestEditorFn) (*queryapi.ListQueriesResponse, error)) *MockClientWithResponsesInterface_ListQueriesWithResponse_Call { _c.Call.Return(run) return _c } // SetCollectorByClientIdWithBodyWithResponse provides a mock function with given fields: ctx, id, contentType, body, reqEditors func (_m *MockClientWithResponsesInterface) SetCollectorByClientIdWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...queryapi.RequestEditorFn) (*queryapi.SetCollectorByClientIdResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} _ca = append(_ca, ctx, id, contentType, body) _ca = append(_ca, _va...) ret := _m.Called(_ca...) if len(ret) == 0 { panic("no return value specified for SetCollectorByClientIdWithBodyWithResponse") } var r0 *queryapi.SetCollectorByClientIdResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, string, string, io.Reader, ...queryapi.RequestEditorFn) (*queryapi.SetCollectorByClientIdResponse, error)); ok { return rf(ctx, id, contentType, body, reqEditors...) } if rf, ok := ret.Get(0).(func(context.Context, string, string, io.Reader, ...queryapi.RequestEditorFn) *queryapi.SetCollectorByClientIdResponse); ok { r0 = rf(ctx, id, contentType, body, reqEditors...) } else { if ret.Get(0) != nil { r0 = ret.Get(0).(*queryapi.SetCollectorByClientIdResponse) } } if rf, ok := ret.Get(1).(func(context.Context, string, string, io.Reader, ...queryapi.RequestEditorFn) error); ok { r1 = rf(ctx, id, contentType, body, reqEditors...) } else { r1 = ret.Error(1) } return r0, r1 } // MockClientWithResponsesInterface_SetCollectorByClientIdWithBodyWithResponse_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetCollectorByClientIdWithBodyWithResponse' type MockClientWithResponsesInterface_SetCollectorByClientIdWithBodyWithResponse_Call struct { *mock.Call } // SetCollectorByClientIdWithBodyWithResponse is a helper method to define mock.On call // - ctx context.Context // - id string // - contentType string // - body io.Reader // - reqEditors ...queryapi.RequestEditorFn func (_e *MockClientWithResponsesInterface_Expecter) SetCollectorByClientIdWithBodyWithResponse(ctx interface{}, id interface{}, contentType interface{}, body interface{}, reqEditors ...interface{}) *MockClientWithResponsesInterface_SetCollectorByClientIdWithBodyWithResponse_Call { return &MockClientWithResponsesInterface_SetCollectorByClientIdWithBodyWithResponse_Call{Call: _e.mock.On("SetCollectorByClientIdWithBodyWithResponse", append([]interface{}{ctx, id, contentType, body}, reqEditors...)...)} } func (_c *MockClientWithResponsesInterface_SetCollectorByClientIdWithBodyWithResponse_Call) Run(run func(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...queryapi.RequestEditorFn)) *MockClientWithResponsesInterface_SetCollectorByClientIdWithBodyWithResponse_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]queryapi.RequestEditorFn, len(args)-4) for i, a := range args[4:] { if a != nil { variadicArgs[i] = a.(queryapi.RequestEditorFn) } } run(args[0].(context.Context), args[1].(string), args[2].(string), args[3].(io.Reader), variadicArgs...) }) return _c } func (_c *MockClientWithResponsesInterface_SetCollectorByClientIdWithBodyWithResponse_Call) Return(_a0 *queryapi.SetCollectorByClientIdResponse, _a1 error) *MockClientWithResponsesInterface_SetCollectorByClientIdWithBodyWithResponse_Call { _c.Call.Return(_a0, _a1) return _c } func (_c *MockClientWithResponsesInterface_SetCollectorByClientIdWithBodyWithResponse_Call) RunAndReturn(run func(context.Context, string, string, io.Reader, ...queryapi.RequestEditorFn) (*queryapi.SetCollectorByClientIdResponse, error)) *MockClientWithResponsesInterface_SetCollectorByClientIdWithBodyWithResponse_Call { _c.Call.Return(run) return _c } // SetCollectorByClientIdWithResponse provides a mock function with given fields: ctx, id, body, reqEditors func (_m *MockClientWithResponsesInterface) SetCollectorByClientIdWithResponse(ctx context.Context, id string, body queryapi.CollectorSet, reqEditors ...queryapi.RequestEditorFn) (*queryapi.SetCollectorByClientIdResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} _ca = append(_ca, ctx, id, body) _ca = append(_ca, _va...) ret := _m.Called(_ca...) if len(ret) == 0 { panic("no return value specified for SetCollectorByClientIdWithResponse") } var r0 *queryapi.SetCollectorByClientIdResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, string, queryapi.CollectorSet, ...queryapi.RequestEditorFn) (*queryapi.SetCollectorByClientIdResponse, error)); ok { return rf(ctx, id, body, reqEditors...) } if rf, ok := ret.Get(0).(func(context.Context, string, queryapi.CollectorSet, ...queryapi.RequestEditorFn) *queryapi.SetCollectorByClientIdResponse); ok { r0 = rf(ctx, id, body, reqEditors...) } else { if ret.Get(0) != nil { r0 = ret.Get(0).(*queryapi.SetCollectorByClientIdResponse) } } if rf, ok := ret.Get(1).(func(context.Context, string, queryapi.CollectorSet, ...queryapi.RequestEditorFn) error); ok { r1 = rf(ctx, id, body, reqEditors...) } else { r1 = ret.Error(1) } return r0, r1 } // MockClientWithResponsesInterface_SetCollectorByClientIdWithResponse_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetCollectorByClientIdWithResponse' type MockClientWithResponsesInterface_SetCollectorByClientIdWithResponse_Call struct { *mock.Call } // SetCollectorByClientIdWithResponse is a helper method to define mock.On call // - ctx context.Context // - id string // - body queryapi.CollectorSet // - reqEditors ...queryapi.RequestEditorFn func (_e *MockClientWithResponsesInterface_Expecter) SetCollectorByClientIdWithResponse(ctx interface{}, id interface{}, body interface{}, reqEditors ...interface{}) *MockClientWithResponsesInterface_SetCollectorByClientIdWithResponse_Call { return &MockClientWithResponsesInterface_SetCollectorByClientIdWithResponse_Call{Call: _e.mock.On("SetCollectorByClientIdWithResponse", append([]interface{}{ctx, id, body}, reqEditors...)...)} } func (_c *MockClientWithResponsesInterface_SetCollectorByClientIdWithResponse_Call) Run(run func(ctx context.Context, id string, body queryapi.CollectorSet, reqEditors ...queryapi.RequestEditorFn)) *MockClientWithResponsesInterface_SetCollectorByClientIdWithResponse_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]queryapi.RequestEditorFn, len(args)-3) for i, a := range args[3:] { if a != nil { variadicArgs[i] = a.(queryapi.RequestEditorFn) } } run(args[0].(context.Context), args[1].(string), args[2].(queryapi.CollectorSet), variadicArgs...) }) return _c } func (_c *MockClientWithResponsesInterface_SetCollectorByClientIdWithResponse_Call) Return(_a0 *queryapi.SetCollectorByClientIdResponse, _a1 error) *MockClientWithResponsesInterface_SetCollectorByClientIdWithResponse_Call { _c.Call.Return(_a0, _a1) return _c } func (_c *MockClientWithResponsesInterface_SetCollectorByClientIdWithResponse_Call) RunAndReturn(run func(context.Context, string, queryapi.CollectorSet, ...queryapi.RequestEditorFn) (*queryapi.SetCollectorByClientIdResponse, error)) *MockClientWithResponsesInterface_SetCollectorByClientIdWithResponse_Call { _c.Call.Return(run) return _c } // TestQueryWithBodyWithResponse provides a mock function with given fields: ctx, id, contentType, body, reqEditors func (_m *MockClientWithResponsesInterface) TestQueryWithBodyWithResponse(ctx context.Context, id uuid.UUID, contentType string, body io.Reader, reqEditors ...queryapi.RequestEditorFn) (*queryapi.TestQueryResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} _ca = append(_ca, ctx, id, contentType, body) _ca = append(_ca, _va...) ret := _m.Called(_ca...) if len(ret) == 0 { panic("no return value specified for TestQueryWithBodyWithResponse") } var r0 *queryapi.TestQueryResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, uuid.UUID, string, io.Reader, ...queryapi.RequestEditorFn) (*queryapi.TestQueryResponse, error)); ok { return rf(ctx, id, contentType, body, reqEditors...) } if rf, ok := ret.Get(0).(func(context.Context, uuid.UUID, string, io.Reader, ...queryapi.RequestEditorFn) *queryapi.TestQueryResponse); ok { r0 = rf(ctx, id, contentType, body, reqEditors...) } else { if ret.Get(0) != nil { r0 = ret.Get(0).(*queryapi.TestQueryResponse) } } if rf, ok := ret.Get(1).(func(context.Context, uuid.UUID, string, io.Reader, ...queryapi.RequestEditorFn) error); ok { r1 = rf(ctx, id, contentType, body, reqEditors...) } else { r1 = ret.Error(1) } return r0, r1 } // MockClientWithResponsesInterface_TestQueryWithBodyWithResponse_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TestQueryWithBodyWithResponse' type MockClientWithResponsesInterface_TestQueryWithBodyWithResponse_Call struct { *mock.Call } // TestQueryWithBodyWithResponse is a helper method to define mock.On call // - ctx context.Context // - id uuid.UUID // - contentType string // - body io.Reader // - reqEditors ...queryapi.RequestEditorFn func (_e *MockClientWithResponsesInterface_Expecter) TestQueryWithBodyWithResponse(ctx interface{}, id interface{}, contentType interface{}, body interface{}, reqEditors ...interface{}) *MockClientWithResponsesInterface_TestQueryWithBodyWithResponse_Call { return &MockClientWithResponsesInterface_TestQueryWithBodyWithResponse_Call{Call: _e.mock.On("TestQueryWithBodyWithResponse", append([]interface{}{ctx, id, contentType, body}, reqEditors...)...)} } func (_c *MockClientWithResponsesInterface_TestQueryWithBodyWithResponse_Call) Run(run func(ctx context.Context, id uuid.UUID, contentType string, body io.Reader, reqEditors ...queryapi.RequestEditorFn)) *MockClientWithResponsesInterface_TestQueryWithBodyWithResponse_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]queryapi.RequestEditorFn, len(args)-4) for i, a := range args[4:] { if a != nil { variadicArgs[i] = a.(queryapi.RequestEditorFn) } } run(args[0].(context.Context), args[1].(uuid.UUID), args[2].(string), args[3].(io.Reader), variadicArgs...) }) return _c } func (_c *MockClientWithResponsesInterface_TestQueryWithBodyWithResponse_Call) Return(_a0 *queryapi.TestQueryResponse, _a1 error) *MockClientWithResponsesInterface_TestQueryWithBodyWithResponse_Call { _c.Call.Return(_a0, _a1) return _c } func (_c *MockClientWithResponsesInterface_TestQueryWithBodyWithResponse_Call) RunAndReturn(run func(context.Context, uuid.UUID, string, io.Reader, ...queryapi.RequestEditorFn) (*queryapi.TestQueryResponse, error)) *MockClientWithResponsesInterface_TestQueryWithBodyWithResponse_Call { _c.Call.Return(run) return _c } // TestQueryWithResponse provides a mock function with given fields: ctx, id, body, reqEditors func (_m *MockClientWithResponsesInterface) TestQueryWithResponse(ctx context.Context, id uuid.UUID, body queryapi.QueryTestRequest, reqEditors ...queryapi.RequestEditorFn) (*queryapi.TestQueryResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} _ca = append(_ca, ctx, id, body) _ca = append(_ca, _va...) ret := _m.Called(_ca...) if len(ret) == 0 { panic("no return value specified for TestQueryWithResponse") } var r0 *queryapi.TestQueryResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, uuid.UUID, queryapi.QueryTestRequest, ...queryapi.RequestEditorFn) (*queryapi.TestQueryResponse, error)); ok { return rf(ctx, id, body, reqEditors...) } if rf, ok := ret.Get(0).(func(context.Context, uuid.UUID, queryapi.QueryTestRequest, ...queryapi.RequestEditorFn) *queryapi.TestQueryResponse); ok { r0 = rf(ctx, id, body, reqEditors...) } else { if ret.Get(0) != nil { r0 = ret.Get(0).(*queryapi.TestQueryResponse) } } if rf, ok := ret.Get(1).(func(context.Context, uuid.UUID, queryapi.QueryTestRequest, ...queryapi.RequestEditorFn) error); ok { r1 = rf(ctx, id, body, reqEditors...) } else { r1 = ret.Error(1) } return r0, r1 } // MockClientWithResponsesInterface_TestQueryWithResponse_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TestQueryWithResponse' type MockClientWithResponsesInterface_TestQueryWithResponse_Call struct { *mock.Call } // TestQueryWithResponse is a helper method to define mock.On call // - ctx context.Context // - id uuid.UUID // - body queryapi.QueryTestRequest // - reqEditors ...queryapi.RequestEditorFn func (_e *MockClientWithResponsesInterface_Expecter) TestQueryWithResponse(ctx interface{}, id interface{}, body interface{}, reqEditors ...interface{}) *MockClientWithResponsesInterface_TestQueryWithResponse_Call { return &MockClientWithResponsesInterface_TestQueryWithResponse_Call{Call: _e.mock.On("TestQueryWithResponse", append([]interface{}{ctx, id, body}, reqEditors...)...)} } func (_c *MockClientWithResponsesInterface_TestQueryWithResponse_Call) Run(run func(ctx context.Context, id uuid.UUID, body queryapi.QueryTestRequest, reqEditors ...queryapi.RequestEditorFn)) *MockClientWithResponsesInterface_TestQueryWithResponse_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]queryapi.RequestEditorFn, len(args)-3) for i, a := range args[3:] { if a != nil { variadicArgs[i] = a.(queryapi.RequestEditorFn) } } run(args[0].(context.Context), args[1].(uuid.UUID), args[2].(queryapi.QueryTestRequest), variadicArgs...) }) return _c } func (_c *MockClientWithResponsesInterface_TestQueryWithResponse_Call) Return(_a0 *queryapi.TestQueryResponse, _a1 error) *MockClientWithResponsesInterface_TestQueryWithResponse_Call { _c.Call.Return(_a0, _a1) return _c } func (_c *MockClientWithResponsesInterface_TestQueryWithResponse_Call) RunAndReturn(run func(context.Context, uuid.UUID, queryapi.QueryTestRequest, ...queryapi.RequestEditorFn) (*queryapi.TestQueryResponse, error)) *MockClientWithResponsesInterface_TestQueryWithResponse_Call { _c.Call.Return(run) return _c } // TriggerExportWithBodyWithResponse provides a mock function with given fields: ctx, id, contentType, body, reqEditors func (_m *MockClientWithResponsesInterface) TriggerExportWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...queryapi.RequestEditorFn) (*queryapi.TriggerExportResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} _ca = append(_ca, ctx, id, contentType, body) _ca = append(_ca, _va...) ret := _m.Called(_ca...) if len(ret) == 0 { panic("no return value specified for TriggerExportWithBodyWithResponse") } var r0 *queryapi.TriggerExportResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, string, string, io.Reader, ...queryapi.RequestEditorFn) (*queryapi.TriggerExportResponse, error)); ok { return rf(ctx, id, contentType, body, reqEditors...) } if rf, ok := ret.Get(0).(func(context.Context, string, string, io.Reader, ...queryapi.RequestEditorFn) *queryapi.TriggerExportResponse); ok { r0 = rf(ctx, id, contentType, body, reqEditors...) } else { if ret.Get(0) != nil { r0 = ret.Get(0).(*queryapi.TriggerExportResponse) } } if rf, ok := ret.Get(1).(func(context.Context, string, string, io.Reader, ...queryapi.RequestEditorFn) error); ok { r1 = rf(ctx, id, contentType, body, reqEditors...) } else { r1 = ret.Error(1) } return r0, r1 } // MockClientWithResponsesInterface_TriggerExportWithBodyWithResponse_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TriggerExportWithBodyWithResponse' type MockClientWithResponsesInterface_TriggerExportWithBodyWithResponse_Call struct { *mock.Call } // TriggerExportWithBodyWithResponse is a helper method to define mock.On call // - ctx context.Context // - id string // - contentType string // - body io.Reader // - reqEditors ...queryapi.RequestEditorFn func (_e *MockClientWithResponsesInterface_Expecter) TriggerExportWithBodyWithResponse(ctx interface{}, id interface{}, contentType interface{}, body interface{}, reqEditors ...interface{}) *MockClientWithResponsesInterface_TriggerExportWithBodyWithResponse_Call { return &MockClientWithResponsesInterface_TriggerExportWithBodyWithResponse_Call{Call: _e.mock.On("TriggerExportWithBodyWithResponse", append([]interface{}{ctx, id, contentType, body}, reqEditors...)...)} } func (_c *MockClientWithResponsesInterface_TriggerExportWithBodyWithResponse_Call) Run(run func(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...queryapi.RequestEditorFn)) *MockClientWithResponsesInterface_TriggerExportWithBodyWithResponse_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]queryapi.RequestEditorFn, len(args)-4) for i, a := range args[4:] { if a != nil { variadicArgs[i] = a.(queryapi.RequestEditorFn) } } run(args[0].(context.Context), args[1].(string), args[2].(string), args[3].(io.Reader), variadicArgs...) }) return _c } func (_c *MockClientWithResponsesInterface_TriggerExportWithBodyWithResponse_Call) Return(_a0 *queryapi.TriggerExportResponse, _a1 error) *MockClientWithResponsesInterface_TriggerExportWithBodyWithResponse_Call { _c.Call.Return(_a0, _a1) return _c } func (_c *MockClientWithResponsesInterface_TriggerExportWithBodyWithResponse_Call) RunAndReturn(run func(context.Context, string, string, io.Reader, ...queryapi.RequestEditorFn) (*queryapi.TriggerExportResponse, error)) *MockClientWithResponsesInterface_TriggerExportWithBodyWithResponse_Call { _c.Call.Return(run) return _c } // TriggerExportWithResponse provides a mock function with given fields: ctx, id, body, reqEditors func (_m *MockClientWithResponsesInterface) TriggerExportWithResponse(ctx context.Context, id string, body queryapi.ExportTrigger, reqEditors ...queryapi.RequestEditorFn) (*queryapi.TriggerExportResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} _ca = append(_ca, ctx, id, body) _ca = append(_ca, _va...) ret := _m.Called(_ca...) if len(ret) == 0 { panic("no return value specified for TriggerExportWithResponse") } var r0 *queryapi.TriggerExportResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, string, queryapi.ExportTrigger, ...queryapi.RequestEditorFn) (*queryapi.TriggerExportResponse, error)); ok { return rf(ctx, id, body, reqEditors...) } if rf, ok := ret.Get(0).(func(context.Context, string, queryapi.ExportTrigger, ...queryapi.RequestEditorFn) *queryapi.TriggerExportResponse); ok { r0 = rf(ctx, id, body, reqEditors...) } else { if ret.Get(0) != nil { r0 = ret.Get(0).(*queryapi.TriggerExportResponse) } } if rf, ok := ret.Get(1).(func(context.Context, string, queryapi.ExportTrigger, ...queryapi.RequestEditorFn) error); ok { r1 = rf(ctx, id, body, reqEditors...) } else { r1 = ret.Error(1) } return r0, r1 } // MockClientWithResponsesInterface_TriggerExportWithResponse_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TriggerExportWithResponse' type MockClientWithResponsesInterface_TriggerExportWithResponse_Call struct { *mock.Call } // TriggerExportWithResponse is a helper method to define mock.On call // - ctx context.Context // - id string // - body queryapi.ExportTrigger // - reqEditors ...queryapi.RequestEditorFn func (_e *MockClientWithResponsesInterface_Expecter) TriggerExportWithResponse(ctx interface{}, id interface{}, body interface{}, reqEditors ...interface{}) *MockClientWithResponsesInterface_TriggerExportWithResponse_Call { return &MockClientWithResponsesInterface_TriggerExportWithResponse_Call{Call: _e.mock.On("TriggerExportWithResponse", append([]interface{}{ctx, id, body}, reqEditors...)...)} } func (_c *MockClientWithResponsesInterface_TriggerExportWithResponse_Call) Run(run func(ctx context.Context, id string, body queryapi.ExportTrigger, reqEditors ...queryapi.RequestEditorFn)) *MockClientWithResponsesInterface_TriggerExportWithResponse_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]queryapi.RequestEditorFn, len(args)-3) for i, a := range args[3:] { if a != nil { variadicArgs[i] = a.(queryapi.RequestEditorFn) } } run(args[0].(context.Context), args[1].(string), args[2].(queryapi.ExportTrigger), variadicArgs...) }) return _c } func (_c *MockClientWithResponsesInterface_TriggerExportWithResponse_Call) Return(_a0 *queryapi.TriggerExportResponse, _a1 error) *MockClientWithResponsesInterface_TriggerExportWithResponse_Call { _c.Call.Return(_a0, _a1) return _c } func (_c *MockClientWithResponsesInterface_TriggerExportWithResponse_Call) RunAndReturn(run func(context.Context, string, queryapi.ExportTrigger, ...queryapi.RequestEditorFn) (*queryapi.TriggerExportResponse, error)) *MockClientWithResponsesInterface_TriggerExportWithResponse_Call { _c.Call.Return(run) return _c } // UpdateClientWithBodyWithResponse provides a mock function with given fields: ctx, id, contentType, body, reqEditors func (_m *MockClientWithResponsesInterface) UpdateClientWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...queryapi.RequestEditorFn) (*queryapi.UpdateClientResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} _ca = append(_ca, ctx, id, contentType, body) _ca = append(_ca, _va...) ret := _m.Called(_ca...) if len(ret) == 0 { panic("no return value specified for UpdateClientWithBodyWithResponse") } var r0 *queryapi.UpdateClientResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, string, string, io.Reader, ...queryapi.RequestEditorFn) (*queryapi.UpdateClientResponse, error)); ok { return rf(ctx, id, contentType, body, reqEditors...) } if rf, ok := ret.Get(0).(func(context.Context, string, string, io.Reader, ...queryapi.RequestEditorFn) *queryapi.UpdateClientResponse); ok { r0 = rf(ctx, id, contentType, body, reqEditors...) } else { if ret.Get(0) != nil { r0 = ret.Get(0).(*queryapi.UpdateClientResponse) } } if rf, ok := ret.Get(1).(func(context.Context, string, string, io.Reader, ...queryapi.RequestEditorFn) error); ok { r1 = rf(ctx, id, contentType, body, reqEditors...) } else { r1 = ret.Error(1) } return r0, r1 } // MockClientWithResponsesInterface_UpdateClientWithBodyWithResponse_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateClientWithBodyWithResponse' type MockClientWithResponsesInterface_UpdateClientWithBodyWithResponse_Call struct { *mock.Call } // UpdateClientWithBodyWithResponse is a helper method to define mock.On call // - ctx context.Context // - id string // - contentType string // - body io.Reader // - reqEditors ...queryapi.RequestEditorFn func (_e *MockClientWithResponsesInterface_Expecter) UpdateClientWithBodyWithResponse(ctx interface{}, id interface{}, contentType interface{}, body interface{}, reqEditors ...interface{}) *MockClientWithResponsesInterface_UpdateClientWithBodyWithResponse_Call { return &MockClientWithResponsesInterface_UpdateClientWithBodyWithResponse_Call{Call: _e.mock.On("UpdateClientWithBodyWithResponse", append([]interface{}{ctx, id, contentType, body}, reqEditors...)...)} } func (_c *MockClientWithResponsesInterface_UpdateClientWithBodyWithResponse_Call) Run(run func(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...queryapi.RequestEditorFn)) *MockClientWithResponsesInterface_UpdateClientWithBodyWithResponse_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]queryapi.RequestEditorFn, len(args)-4) for i, a := range args[4:] { if a != nil { variadicArgs[i] = a.(queryapi.RequestEditorFn) } } run(args[0].(context.Context), args[1].(string), args[2].(string), args[3].(io.Reader), variadicArgs...) }) return _c } func (_c *MockClientWithResponsesInterface_UpdateClientWithBodyWithResponse_Call) Return(_a0 *queryapi.UpdateClientResponse, _a1 error) *MockClientWithResponsesInterface_UpdateClientWithBodyWithResponse_Call { _c.Call.Return(_a0, _a1) return _c } func (_c *MockClientWithResponsesInterface_UpdateClientWithBodyWithResponse_Call) RunAndReturn(run func(context.Context, string, string, io.Reader, ...queryapi.RequestEditorFn) (*queryapi.UpdateClientResponse, error)) *MockClientWithResponsesInterface_UpdateClientWithBodyWithResponse_Call { _c.Call.Return(run) return _c } // UpdateClientWithResponse provides a mock function with given fields: ctx, id, body, reqEditors func (_m *MockClientWithResponsesInterface) UpdateClientWithResponse(ctx context.Context, id string, body queryapi.ClientUpdate, reqEditors ...queryapi.RequestEditorFn) (*queryapi.UpdateClientResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} _ca = append(_ca, ctx, id, body) _ca = append(_ca, _va...) ret := _m.Called(_ca...) if len(ret) == 0 { panic("no return value specified for UpdateClientWithResponse") } var r0 *queryapi.UpdateClientResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, string, queryapi.ClientUpdate, ...queryapi.RequestEditorFn) (*queryapi.UpdateClientResponse, error)); ok { return rf(ctx, id, body, reqEditors...) } if rf, ok := ret.Get(0).(func(context.Context, string, queryapi.ClientUpdate, ...queryapi.RequestEditorFn) *queryapi.UpdateClientResponse); ok { r0 = rf(ctx, id, body, reqEditors...) } else { if ret.Get(0) != nil { r0 = ret.Get(0).(*queryapi.UpdateClientResponse) } } if rf, ok := ret.Get(1).(func(context.Context, string, queryapi.ClientUpdate, ...queryapi.RequestEditorFn) error); ok { r1 = rf(ctx, id, body, reqEditors...) } else { r1 = ret.Error(1) } return r0, r1 } // MockClientWithResponsesInterface_UpdateClientWithResponse_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateClientWithResponse' type MockClientWithResponsesInterface_UpdateClientWithResponse_Call struct { *mock.Call } // UpdateClientWithResponse is a helper method to define mock.On call // - ctx context.Context // - id string // - body queryapi.ClientUpdate // - reqEditors ...queryapi.RequestEditorFn func (_e *MockClientWithResponsesInterface_Expecter) UpdateClientWithResponse(ctx interface{}, id interface{}, body interface{}, reqEditors ...interface{}) *MockClientWithResponsesInterface_UpdateClientWithResponse_Call { return &MockClientWithResponsesInterface_UpdateClientWithResponse_Call{Call: _e.mock.On("UpdateClientWithResponse", append([]interface{}{ctx, id, body}, reqEditors...)...)} } func (_c *MockClientWithResponsesInterface_UpdateClientWithResponse_Call) Run(run func(ctx context.Context, id string, body queryapi.ClientUpdate, reqEditors ...queryapi.RequestEditorFn)) *MockClientWithResponsesInterface_UpdateClientWithResponse_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]queryapi.RequestEditorFn, len(args)-3) for i, a := range args[3:] { if a != nil { variadicArgs[i] = a.(queryapi.RequestEditorFn) } } run(args[0].(context.Context), args[1].(string), args[2].(queryapi.ClientUpdate), variadicArgs...) }) return _c } func (_c *MockClientWithResponsesInterface_UpdateClientWithResponse_Call) Return(_a0 *queryapi.UpdateClientResponse, _a1 error) *MockClientWithResponsesInterface_UpdateClientWithResponse_Call { _c.Call.Return(_a0, _a1) return _c } func (_c *MockClientWithResponsesInterface_UpdateClientWithResponse_Call) RunAndReturn(run func(context.Context, string, queryapi.ClientUpdate, ...queryapi.RequestEditorFn) (*queryapi.UpdateClientResponse, error)) *MockClientWithResponsesInterface_UpdateClientWithResponse_Call { _c.Call.Return(run) return _c } // UpdateQueryWithBodyWithResponse provides a mock function with given fields: ctx, id, contentType, body, reqEditors func (_m *MockClientWithResponsesInterface) UpdateQueryWithBodyWithResponse(ctx context.Context, id uuid.UUID, contentType string, body io.Reader, reqEditors ...queryapi.RequestEditorFn) (*queryapi.UpdateQueryResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} _ca = append(_ca, ctx, id, contentType, body) _ca = append(_ca, _va...) ret := _m.Called(_ca...) if len(ret) == 0 { panic("no return value specified for UpdateQueryWithBodyWithResponse") } var r0 *queryapi.UpdateQueryResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, uuid.UUID, string, io.Reader, ...queryapi.RequestEditorFn) (*queryapi.UpdateQueryResponse, error)); ok { return rf(ctx, id, contentType, body, reqEditors...) } if rf, ok := ret.Get(0).(func(context.Context, uuid.UUID, string, io.Reader, ...queryapi.RequestEditorFn) *queryapi.UpdateQueryResponse); ok { r0 = rf(ctx, id, contentType, body, reqEditors...) } else { if ret.Get(0) != nil { r0 = ret.Get(0).(*queryapi.UpdateQueryResponse) } } if rf, ok := ret.Get(1).(func(context.Context, uuid.UUID, string, io.Reader, ...queryapi.RequestEditorFn) error); ok { r1 = rf(ctx, id, contentType, body, reqEditors...) } else { r1 = ret.Error(1) } return r0, r1 } // MockClientWithResponsesInterface_UpdateQueryWithBodyWithResponse_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateQueryWithBodyWithResponse' type MockClientWithResponsesInterface_UpdateQueryWithBodyWithResponse_Call struct { *mock.Call } // UpdateQueryWithBodyWithResponse is a helper method to define mock.On call // - ctx context.Context // - id uuid.UUID // - contentType string // - body io.Reader // - reqEditors ...queryapi.RequestEditorFn func (_e *MockClientWithResponsesInterface_Expecter) UpdateQueryWithBodyWithResponse(ctx interface{}, id interface{}, contentType interface{}, body interface{}, reqEditors ...interface{}) *MockClientWithResponsesInterface_UpdateQueryWithBodyWithResponse_Call { return &MockClientWithResponsesInterface_UpdateQueryWithBodyWithResponse_Call{Call: _e.mock.On("UpdateQueryWithBodyWithResponse", append([]interface{}{ctx, id, contentType, body}, reqEditors...)...)} } func (_c *MockClientWithResponsesInterface_UpdateQueryWithBodyWithResponse_Call) Run(run func(ctx context.Context, id uuid.UUID, contentType string, body io.Reader, reqEditors ...queryapi.RequestEditorFn)) *MockClientWithResponsesInterface_UpdateQueryWithBodyWithResponse_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]queryapi.RequestEditorFn, len(args)-4) for i, a := range args[4:] { if a != nil { variadicArgs[i] = a.(queryapi.RequestEditorFn) } } run(args[0].(context.Context), args[1].(uuid.UUID), args[2].(string), args[3].(io.Reader), variadicArgs...) }) return _c } func (_c *MockClientWithResponsesInterface_UpdateQueryWithBodyWithResponse_Call) Return(_a0 *queryapi.UpdateQueryResponse, _a1 error) *MockClientWithResponsesInterface_UpdateQueryWithBodyWithResponse_Call { _c.Call.Return(_a0, _a1) return _c } func (_c *MockClientWithResponsesInterface_UpdateQueryWithBodyWithResponse_Call) RunAndReturn(run func(context.Context, uuid.UUID, string, io.Reader, ...queryapi.RequestEditorFn) (*queryapi.UpdateQueryResponse, error)) *MockClientWithResponsesInterface_UpdateQueryWithBodyWithResponse_Call { _c.Call.Return(run) return _c } // UpdateQueryWithResponse provides a mock function with given fields: ctx, id, body, reqEditors func (_m *MockClientWithResponsesInterface) UpdateQueryWithResponse(ctx context.Context, id uuid.UUID, body queryapi.QueryUpdate, reqEditors ...queryapi.RequestEditorFn) (*queryapi.UpdateQueryResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} _ca = append(_ca, ctx, id, body) _ca = append(_ca, _va...) ret := _m.Called(_ca...) if len(ret) == 0 { panic("no return value specified for UpdateQueryWithResponse") } var r0 *queryapi.UpdateQueryResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, uuid.UUID, queryapi.QueryUpdate, ...queryapi.RequestEditorFn) (*queryapi.UpdateQueryResponse, error)); ok { return rf(ctx, id, body, reqEditors...) } if rf, ok := ret.Get(0).(func(context.Context, uuid.UUID, queryapi.QueryUpdate, ...queryapi.RequestEditorFn) *queryapi.UpdateQueryResponse); ok { r0 = rf(ctx, id, body, reqEditors...) } else { if ret.Get(0) != nil { r0 = ret.Get(0).(*queryapi.UpdateQueryResponse) } } if rf, ok := ret.Get(1).(func(context.Context, uuid.UUID, queryapi.QueryUpdate, ...queryapi.RequestEditorFn) error); ok { r1 = rf(ctx, id, body, reqEditors...) } else { r1 = ret.Error(1) } return r0, r1 } // MockClientWithResponsesInterface_UpdateQueryWithResponse_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateQueryWithResponse' type MockClientWithResponsesInterface_UpdateQueryWithResponse_Call struct { *mock.Call } // UpdateQueryWithResponse is a helper method to define mock.On call // - ctx context.Context // - id uuid.UUID // - body queryapi.QueryUpdate // - reqEditors ...queryapi.RequestEditorFn func (_e *MockClientWithResponsesInterface_Expecter) UpdateQueryWithResponse(ctx interface{}, id interface{}, body interface{}, reqEditors ...interface{}) *MockClientWithResponsesInterface_UpdateQueryWithResponse_Call { return &MockClientWithResponsesInterface_UpdateQueryWithResponse_Call{Call: _e.mock.On("UpdateQueryWithResponse", append([]interface{}{ctx, id, body}, reqEditors...)...)} } func (_c *MockClientWithResponsesInterface_UpdateQueryWithResponse_Call) Run(run func(ctx context.Context, id uuid.UUID, body queryapi.QueryUpdate, reqEditors ...queryapi.RequestEditorFn)) *MockClientWithResponsesInterface_UpdateQueryWithResponse_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]queryapi.RequestEditorFn, len(args)-3) for i, a := range args[3:] { if a != nil { variadicArgs[i] = a.(queryapi.RequestEditorFn) } } run(args[0].(context.Context), args[1].(uuid.UUID), args[2].(queryapi.QueryUpdate), variadicArgs...) }) return _c } func (_c *MockClientWithResponsesInterface_UpdateQueryWithResponse_Call) Return(_a0 *queryapi.UpdateQueryResponse, _a1 error) *MockClientWithResponsesInterface_UpdateQueryWithResponse_Call { _c.Call.Return(_a0, _a1) return _c } func (_c *MockClientWithResponsesInterface_UpdateQueryWithResponse_Call) RunAndReturn(run func(context.Context, uuid.UUID, queryapi.QueryUpdate, ...queryapi.RequestEditorFn) (*queryapi.UpdateQueryResponse, error)) *MockClientWithResponsesInterface_UpdateQueryWithResponse_Call { _c.Call.Return(run) return _c } // NewMockClientWithResponsesInterface creates a new instance of MockClientWithResponsesInterface. 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 NewMockClientWithResponsesInterface(t interface { mock.TestingT Cleanup(func()) }) *MockClientWithResponsesInterface { mock := &MockClientWithResponsesInterface{} mock.Mock.Test(t) t.Cleanup(func() { mock.AssertExpectations(t) }) return mock }