2025-03-11 16:31:06 +00:00
// Code generated by mockery v2.52.3. DO NOT EDIT.
2025-03-17 18:14:15 +00:00
package queryapimock
2025-03-11 16:31:06 +00:00
import (
context "context"
io "io"
mock "github.com/stretchr/testify/mock"
2025-03-17 18:14:15 +00:00
queryapi "queryorchestration/pkg/queryAPI"
2025-03-11 16:31:06 +00:00
)
// 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 }
}
2025-08-05 07:03:35 -07:00
// CancelDocumentBatchWithResponse provides a mock function with given fields: ctx, id, batchId, reqEditors
func ( _m * MockClientWithResponsesInterface ) CancelDocumentBatchWithResponse ( ctx context . Context , id queryapi . ClientID , batchId queryapi . BatchID , reqEditors ... queryapi . RequestEditorFn ) ( * queryapi . CancelDocumentBatchResponse , error ) {
_va := make ( [ ] interface { } , len ( reqEditors ) )
for _i := range reqEditors {
_va [ _i ] = reqEditors [ _i ]
}
var _ca [ ] interface { }
_ca = append ( _ca , ctx , id , batchId )
_ca = append ( _ca , _va ... )
ret := _m . Called ( _ca ... )
if len ( ret ) == 0 {
panic ( "no return value specified for CancelDocumentBatchWithResponse" )
}
var r0 * queryapi . CancelDocumentBatchResponse
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . ClientID , queryapi . BatchID , ... queryapi . RequestEditorFn ) ( * queryapi . CancelDocumentBatchResponse , error ) ) ; ok {
return rf ( ctx , id , batchId , reqEditors ... )
}
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . ClientID , queryapi . BatchID , ... queryapi . RequestEditorFn ) * queryapi . CancelDocumentBatchResponse ) ; ok {
r0 = rf ( ctx , id , batchId , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * queryapi . CancelDocumentBatchResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , queryapi . ClientID , queryapi . BatchID , ... queryapi . RequestEditorFn ) error ) ; ok {
r1 = rf ( ctx , id , batchId , reqEditors ... )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// MockClientWithResponsesInterface_CancelDocumentBatchWithResponse_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CancelDocumentBatchWithResponse'
type MockClientWithResponsesInterface_CancelDocumentBatchWithResponse_Call struct {
* mock . Call
}
// CancelDocumentBatchWithResponse is a helper method to define mock.On call
// - ctx context.Context
// - id queryapi.ClientID
// - batchId queryapi.BatchID
// - reqEditors ...queryapi.RequestEditorFn
func ( _e * MockClientWithResponsesInterface_Expecter ) CancelDocumentBatchWithResponse ( ctx interface { } , id interface { } , batchId interface { } , reqEditors ... interface { } ) * MockClientWithResponsesInterface_CancelDocumentBatchWithResponse_Call {
return & MockClientWithResponsesInterface_CancelDocumentBatchWithResponse_Call { Call : _e . mock . On ( "CancelDocumentBatchWithResponse" ,
append ( [ ] interface { } { ctx , id , batchId } , reqEditors ... ) ... ) }
}
func ( _c * MockClientWithResponsesInterface_CancelDocumentBatchWithResponse_Call ) Run ( run func ( ctx context . Context , id queryapi . ClientID , batchId queryapi . BatchID , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientWithResponsesInterface_CancelDocumentBatchWithResponse_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 ] . ( queryapi . ClientID ) , args [ 2 ] . ( queryapi . BatchID ) , variadicArgs ... )
} )
return _c
}
func ( _c * MockClientWithResponsesInterface_CancelDocumentBatchWithResponse_Call ) Return ( _a0 * queryapi . CancelDocumentBatchResponse , _a1 error ) * MockClientWithResponsesInterface_CancelDocumentBatchWithResponse_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
func ( _c * MockClientWithResponsesInterface_CancelDocumentBatchWithResponse_Call ) RunAndReturn ( run func ( context . Context , queryapi . ClientID , queryapi . BatchID , ... queryapi . RequestEditorFn ) ( * queryapi . CancelDocumentBatchResponse , error ) ) * MockClientWithResponsesInterface_CancelDocumentBatchWithResponse_Call {
_c . Call . Return ( run )
return _c
}
2025-03-11 16:31:06 +00:00
// CreateClientWithBodyWithResponse provides a mock function with given fields: ctx, contentType, body, reqEditors
2025-03-17 18:14:15 +00:00
func ( _m * MockClientWithResponsesInterface ) CreateClientWithBodyWithResponse ( ctx context . Context , contentType string , body io . Reader , reqEditors ... queryapi . RequestEditorFn ) ( * queryapi . CreateClientResponse , error ) {
2025-03-11 16:31:06 +00:00
_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" )
}
2025-03-17 18:14:15 +00:00
var r0 * queryapi . CreateClientResponse
2025-03-11 16:31:06 +00:00
var r1 error
2025-03-17 18:14:15 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , string , io . Reader , ... queryapi . RequestEditorFn ) ( * queryapi . CreateClientResponse , error ) ) ; ok {
2025-03-11 16:31:06 +00:00
return rf ( ctx , contentType , body , reqEditors ... )
}
2025-03-17 18:14:15 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , string , io . Reader , ... queryapi . RequestEditorFn ) * queryapi . CreateClientResponse ) ; ok {
2025-03-11 16:31:06 +00:00
r0 = rf ( ctx , contentType , body , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
2025-03-17 18:14:15 +00:00
r0 = ret . Get ( 0 ) . ( * queryapi . CreateClientResponse )
2025-03-11 16:31:06 +00:00
}
}
2025-03-17 18:14:15 +00:00
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , string , io . Reader , ... queryapi . RequestEditorFn ) error ) ; ok {
2025-03-11 16:31:06 +00:00
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
2025-03-17 18:14:15 +00:00
// - reqEditors ...queryapi.RequestEditorFn
2025-03-11 16:31:06 +00:00
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 ... ) ... ) }
}
2025-03-17 18:14:15 +00:00
func ( _c * MockClientWithResponsesInterface_CreateClientWithBodyWithResponse_Call ) Run ( run func ( ctx context . Context , contentType string , body io . Reader , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientWithResponsesInterface_CreateClientWithBodyWithResponse_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Run ( func ( args mock . Arguments ) {
2025-03-17 18:14:15 +00:00
variadicArgs := make ( [ ] queryapi . RequestEditorFn , len ( args ) - 3 )
2025-03-11 16:31:06 +00:00
for i , a := range args [ 3 : ] {
if a != nil {
2025-03-17 18:14:15 +00:00
variadicArgs [ i ] = a . ( queryapi . RequestEditorFn )
2025-03-11 16:31:06 +00:00
}
}
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( string ) , args [ 2 ] . ( io . Reader ) , variadicArgs ... )
} )
return _c
}
2025-03-17 18:14:15 +00:00
func ( _c * MockClientWithResponsesInterface_CreateClientWithBodyWithResponse_Call ) Return ( _a0 * queryapi . CreateClientResponse , _a1 error ) * MockClientWithResponsesInterface_CreateClientWithBodyWithResponse_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2025-03-17 18:14:15 +00:00
func ( _c * MockClientWithResponsesInterface_CreateClientWithBodyWithResponse_Call ) RunAndReturn ( run func ( context . Context , string , io . Reader , ... queryapi . RequestEditorFn ) ( * queryapi . CreateClientResponse , error ) ) * MockClientWithResponsesInterface_CreateClientWithBodyWithResponse_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Return ( run )
return _c
}
// CreateClientWithResponse provides a mock function with given fields: ctx, body, reqEditors
2025-05-08 16:04:45 +00:00
func ( _m * MockClientWithResponsesInterface ) CreateClientWithResponse ( ctx context . Context , body queryapi . CreateClientJSONRequestBody , reqEditors ... queryapi . RequestEditorFn ) ( * queryapi . CreateClientResponse , error ) {
2025-03-11 16:31:06 +00:00
_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" )
}
2025-03-17 18:14:15 +00:00
var r0 * queryapi . CreateClientResponse
2025-03-11 16:31:06 +00:00
var r1 error
2025-05-08 16:04:45 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . CreateClientJSONRequestBody , ... queryapi . RequestEditorFn ) ( * queryapi . CreateClientResponse , error ) ) ; ok {
2025-03-11 16:31:06 +00:00
return rf ( ctx , body , reqEditors ... )
}
2025-05-08 16:04:45 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . CreateClientJSONRequestBody , ... queryapi . RequestEditorFn ) * queryapi . CreateClientResponse ) ; ok {
2025-03-11 16:31:06 +00:00
r0 = rf ( ctx , body , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
2025-03-17 18:14:15 +00:00
r0 = ret . Get ( 0 ) . ( * queryapi . CreateClientResponse )
2025-03-11 16:31:06 +00:00
}
}
2025-05-08 16:04:45 +00:00
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , queryapi . CreateClientJSONRequestBody , ... queryapi . RequestEditorFn ) error ) ; ok {
2025-03-11 16:31:06 +00:00
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
2025-05-08 16:04:45 +00:00
// - body queryapi.CreateClientJSONRequestBody
2025-03-17 18:14:15 +00:00
// - reqEditors ...queryapi.RequestEditorFn
2025-03-11 16:31:06 +00:00
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 ... ) ... ) }
}
2025-05-08 16:04:45 +00:00
func ( _c * MockClientWithResponsesInterface_CreateClientWithResponse_Call ) Run ( run func ( ctx context . Context , body queryapi . CreateClientJSONRequestBody , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientWithResponsesInterface_CreateClientWithResponse_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Run ( func ( args mock . Arguments ) {
2025-03-17 18:14:15 +00:00
variadicArgs := make ( [ ] queryapi . RequestEditorFn , len ( args ) - 2 )
2025-03-11 16:31:06 +00:00
for i , a := range args [ 2 : ] {
if a != nil {
2025-03-17 18:14:15 +00:00
variadicArgs [ i ] = a . ( queryapi . RequestEditorFn )
2025-03-11 16:31:06 +00:00
}
}
2025-05-08 16:04:45 +00:00
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( queryapi . CreateClientJSONRequestBody ) , variadicArgs ... )
2025-03-11 16:31:06 +00:00
} )
return _c
}
2025-03-17 18:14:15 +00:00
func ( _c * MockClientWithResponsesInterface_CreateClientWithResponse_Call ) Return ( _a0 * queryapi . CreateClientResponse , _a1 error ) * MockClientWithResponsesInterface_CreateClientWithResponse_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2025-05-08 16:04:45 +00:00
func ( _c * MockClientWithResponsesInterface_CreateClientWithResponse_Call ) RunAndReturn ( run func ( context . Context , queryapi . CreateClientJSONRequestBody , ... queryapi . RequestEditorFn ) ( * queryapi . CreateClientResponse , error ) ) * MockClientWithResponsesInterface_CreateClientWithResponse_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Return ( run )
return _c
}
// CreateQueryWithBodyWithResponse provides a mock function with given fields: ctx, contentType, body, reqEditors
2025-03-17 18:14:15 +00:00
func ( _m * MockClientWithResponsesInterface ) CreateQueryWithBodyWithResponse ( ctx context . Context , contentType string , body io . Reader , reqEditors ... queryapi . RequestEditorFn ) ( * queryapi . CreateQueryResponse , error ) {
2025-03-11 16:31:06 +00:00
_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" )
}
2025-03-17 18:14:15 +00:00
var r0 * queryapi . CreateQueryResponse
2025-03-11 16:31:06 +00:00
var r1 error
2025-03-17 18:14:15 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , string , io . Reader , ... queryapi . RequestEditorFn ) ( * queryapi . CreateQueryResponse , error ) ) ; ok {
2025-03-11 16:31:06 +00:00
return rf ( ctx , contentType , body , reqEditors ... )
}
2025-03-17 18:14:15 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , string , io . Reader , ... queryapi . RequestEditorFn ) * queryapi . CreateQueryResponse ) ; ok {
2025-03-11 16:31:06 +00:00
r0 = rf ( ctx , contentType , body , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
2025-03-17 18:14:15 +00:00
r0 = ret . Get ( 0 ) . ( * queryapi . CreateQueryResponse )
2025-03-11 16:31:06 +00:00
}
}
2025-03-17 18:14:15 +00:00
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , string , io . Reader , ... queryapi . RequestEditorFn ) error ) ; ok {
2025-03-11 16:31:06 +00:00
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
2025-03-17 18:14:15 +00:00
// - reqEditors ...queryapi.RequestEditorFn
2025-03-11 16:31:06 +00:00
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 ... ) ... ) }
}
2025-03-17 18:14:15 +00:00
func ( _c * MockClientWithResponsesInterface_CreateQueryWithBodyWithResponse_Call ) Run ( run func ( ctx context . Context , contentType string , body io . Reader , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientWithResponsesInterface_CreateQueryWithBodyWithResponse_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Run ( func ( args mock . Arguments ) {
2025-03-17 18:14:15 +00:00
variadicArgs := make ( [ ] queryapi . RequestEditorFn , len ( args ) - 3 )
2025-03-11 16:31:06 +00:00
for i , a := range args [ 3 : ] {
if a != nil {
2025-03-17 18:14:15 +00:00
variadicArgs [ i ] = a . ( queryapi . RequestEditorFn )
2025-03-11 16:31:06 +00:00
}
}
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( string ) , args [ 2 ] . ( io . Reader ) , variadicArgs ... )
} )
return _c
}
2025-03-17 18:14:15 +00:00
func ( _c * MockClientWithResponsesInterface_CreateQueryWithBodyWithResponse_Call ) Return ( _a0 * queryapi . CreateQueryResponse , _a1 error ) * MockClientWithResponsesInterface_CreateQueryWithBodyWithResponse_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2025-03-17 18:14:15 +00:00
func ( _c * MockClientWithResponsesInterface_CreateQueryWithBodyWithResponse_Call ) RunAndReturn ( run func ( context . Context , string , io . Reader , ... queryapi . RequestEditorFn ) ( * queryapi . CreateQueryResponse , error ) ) * MockClientWithResponsesInterface_CreateQueryWithBodyWithResponse_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Return ( run )
return _c
}
// CreateQueryWithResponse provides a mock function with given fields: ctx, body, reqEditors
2025-05-08 16:04:45 +00:00
func ( _m * MockClientWithResponsesInterface ) CreateQueryWithResponse ( ctx context . Context , body queryapi . CreateQueryJSONRequestBody , reqEditors ... queryapi . RequestEditorFn ) ( * queryapi . CreateQueryResponse , error ) {
2025-03-11 16:31:06 +00:00
_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" )
}
2025-03-17 18:14:15 +00:00
var r0 * queryapi . CreateQueryResponse
2025-03-11 16:31:06 +00:00
var r1 error
2025-05-08 16:04:45 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . CreateQueryJSONRequestBody , ... queryapi . RequestEditorFn ) ( * queryapi . CreateQueryResponse , error ) ) ; ok {
2025-03-11 16:31:06 +00:00
return rf ( ctx , body , reqEditors ... )
}
2025-05-08 16:04:45 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . CreateQueryJSONRequestBody , ... queryapi . RequestEditorFn ) * queryapi . CreateQueryResponse ) ; ok {
2025-03-11 16:31:06 +00:00
r0 = rf ( ctx , body , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
2025-03-17 18:14:15 +00:00
r0 = ret . Get ( 0 ) . ( * queryapi . CreateQueryResponse )
2025-03-11 16:31:06 +00:00
}
}
2025-05-08 16:04:45 +00:00
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , queryapi . CreateQueryJSONRequestBody , ... queryapi . RequestEditorFn ) error ) ; ok {
2025-03-11 16:31:06 +00:00
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
2025-05-08 16:04:45 +00:00
// - body queryapi.CreateQueryJSONRequestBody
2025-03-17 18:14:15 +00:00
// - reqEditors ...queryapi.RequestEditorFn
2025-03-11 16:31:06 +00:00
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 ... ) ... ) }
}
2025-05-08 16:04:45 +00:00
func ( _c * MockClientWithResponsesInterface_CreateQueryWithResponse_Call ) Run ( run func ( ctx context . Context , body queryapi . CreateQueryJSONRequestBody , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientWithResponsesInterface_CreateQueryWithResponse_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Run ( func ( args mock . Arguments ) {
2025-03-17 18:14:15 +00:00
variadicArgs := make ( [ ] queryapi . RequestEditorFn , len ( args ) - 2 )
2025-03-11 16:31:06 +00:00
for i , a := range args [ 2 : ] {
if a != nil {
2025-03-17 18:14:15 +00:00
variadicArgs [ i ] = a . ( queryapi . RequestEditorFn )
2025-03-11 16:31:06 +00:00
}
}
2025-05-08 16:04:45 +00:00
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( queryapi . CreateQueryJSONRequestBody ) , variadicArgs ... )
2025-03-11 16:31:06 +00:00
} )
return _c
}
2025-03-17 18:14:15 +00:00
func ( _c * MockClientWithResponsesInterface_CreateQueryWithResponse_Call ) Return ( _a0 * queryapi . CreateQueryResponse , _a1 error ) * MockClientWithResponsesInterface_CreateQueryWithResponse_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2025-05-08 16:04:45 +00:00
func ( _c * MockClientWithResponsesInterface_CreateQueryWithResponse_Call ) RunAndReturn ( run func ( context . Context , queryapi . CreateQueryJSONRequestBody , ... queryapi . RequestEditorFn ) ( * queryapi . CreateQueryResponse , error ) ) * MockClientWithResponsesInterface_CreateQueryWithResponse_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Return ( run )
return _c
}
// ExportStateWithResponse provides a mock function with given fields: ctx, id, reqEditors
2025-05-08 16:04:45 +00:00
func ( _m * MockClientWithResponsesInterface ) ExportStateWithResponse ( ctx context . Context , id queryapi . ExportID , reqEditors ... queryapi . RequestEditorFn ) ( * queryapi . ExportStateResponse , error ) {
2025-03-11 16:31:06 +00:00
_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" )
}
2025-03-17 18:14:15 +00:00
var r0 * queryapi . ExportStateResponse
2025-03-11 16:31:06 +00:00
var r1 error
2025-05-08 16:04:45 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . ExportID , ... queryapi . RequestEditorFn ) ( * queryapi . ExportStateResponse , error ) ) ; ok {
2025-03-11 16:31:06 +00:00
return rf ( ctx , id , reqEditors ... )
}
2025-05-08 16:04:45 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . ExportID , ... queryapi . RequestEditorFn ) * queryapi . ExportStateResponse ) ; ok {
2025-03-11 16:31:06 +00:00
r0 = rf ( ctx , id , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
2025-03-17 18:14:15 +00:00
r0 = ret . Get ( 0 ) . ( * queryapi . ExportStateResponse )
2025-03-11 16:31:06 +00:00
}
}
2025-05-08 16:04:45 +00:00
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , queryapi . ExportID , ... queryapi . RequestEditorFn ) error ) ; ok {
2025-03-11 16:31:06 +00:00
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
2025-05-08 16:04:45 +00:00
// - id queryapi.ExportID
2025-03-17 18:14:15 +00:00
// - reqEditors ...queryapi.RequestEditorFn
2025-03-11 16:31:06 +00:00
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 ... ) ... ) }
}
2025-05-08 16:04:45 +00:00
func ( _c * MockClientWithResponsesInterface_ExportStateWithResponse_Call ) Run ( run func ( ctx context . Context , id queryapi . ExportID , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientWithResponsesInterface_ExportStateWithResponse_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Run ( func ( args mock . Arguments ) {
2025-03-17 18:14:15 +00:00
variadicArgs := make ( [ ] queryapi . RequestEditorFn , len ( args ) - 2 )
2025-03-11 16:31:06 +00:00
for i , a := range args [ 2 : ] {
if a != nil {
2025-03-17 18:14:15 +00:00
variadicArgs [ i ] = a . ( queryapi . RequestEditorFn )
2025-03-11 16:31:06 +00:00
}
}
2025-05-08 16:04:45 +00:00
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( queryapi . ExportID ) , variadicArgs ... )
2025-03-11 16:31:06 +00:00
} )
return _c
}
2025-03-17 18:14:15 +00:00
func ( _c * MockClientWithResponsesInterface_ExportStateWithResponse_Call ) Return ( _a0 * queryapi . ExportStateResponse , _a1 error ) * MockClientWithResponsesInterface_ExportStateWithResponse_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2025-05-08 16:04:45 +00:00
func ( _c * MockClientWithResponsesInterface_ExportStateWithResponse_Call ) RunAndReturn ( run func ( context . Context , queryapi . ExportID , ... queryapi . RequestEditorFn ) ( * queryapi . ExportStateResponse , error ) ) * MockClientWithResponsesInterface_ExportStateWithResponse_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Return ( run )
return _c
}
// GetClientWithResponse provides a mock function with given fields: ctx, id, reqEditors
2025-05-08 16:04:45 +00:00
func ( _m * MockClientWithResponsesInterface ) GetClientWithResponse ( ctx context . Context , id queryapi . ClientID , reqEditors ... queryapi . RequestEditorFn ) ( * queryapi . GetClientResponse , error ) {
2025-03-11 16:31:06 +00:00
_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" )
}
2025-03-17 18:14:15 +00:00
var r0 * queryapi . GetClientResponse
2025-03-11 16:31:06 +00:00
var r1 error
2025-05-08 16:04:45 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . ClientID , ... queryapi . RequestEditorFn ) ( * queryapi . GetClientResponse , error ) ) ; ok {
2025-03-11 16:31:06 +00:00
return rf ( ctx , id , reqEditors ... )
}
2025-05-08 16:04:45 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . ClientID , ... queryapi . RequestEditorFn ) * queryapi . GetClientResponse ) ; ok {
2025-03-11 16:31:06 +00:00
r0 = rf ( ctx , id , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
2025-03-17 18:14:15 +00:00
r0 = ret . Get ( 0 ) . ( * queryapi . GetClientResponse )
2025-03-11 16:31:06 +00:00
}
}
2025-05-08 16:04:45 +00:00
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , queryapi . ClientID , ... queryapi . RequestEditorFn ) error ) ; ok {
2025-03-11 16:31:06 +00:00
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
2025-05-08 16:04:45 +00:00
// - id queryapi.ClientID
2025-03-17 18:14:15 +00:00
// - reqEditors ...queryapi.RequestEditorFn
2025-03-11 16:31:06 +00:00
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 ... ) ... ) }
}
2025-05-08 16:04:45 +00:00
func ( _c * MockClientWithResponsesInterface_GetClientWithResponse_Call ) Run ( run func ( ctx context . Context , id queryapi . ClientID , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientWithResponsesInterface_GetClientWithResponse_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Run ( func ( args mock . Arguments ) {
2025-03-17 18:14:15 +00:00
variadicArgs := make ( [ ] queryapi . RequestEditorFn , len ( args ) - 2 )
2025-03-11 16:31:06 +00:00
for i , a := range args [ 2 : ] {
if a != nil {
2025-03-17 18:14:15 +00:00
variadicArgs [ i ] = a . ( queryapi . RequestEditorFn )
2025-03-11 16:31:06 +00:00
}
}
2025-05-08 16:04:45 +00:00
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( queryapi . ClientID ) , variadicArgs ... )
2025-03-11 16:31:06 +00:00
} )
return _c
}
2025-03-17 18:14:15 +00:00
func ( _c * MockClientWithResponsesInterface_GetClientWithResponse_Call ) Return ( _a0 * queryapi . GetClientResponse , _a1 error ) * MockClientWithResponsesInterface_GetClientWithResponse_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2025-05-08 16:04:45 +00:00
func ( _c * MockClientWithResponsesInterface_GetClientWithResponse_Call ) RunAndReturn ( run func ( context . Context , queryapi . ClientID , ... queryapi . RequestEditorFn ) ( * queryapi . GetClientResponse , error ) ) * MockClientWithResponsesInterface_GetClientWithResponse_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Return ( run )
return _c
}
// GetCollectorByClientIdWithResponse provides a mock function with given fields: ctx, id, reqEditors
2025-05-08 16:04:45 +00:00
func ( _m * MockClientWithResponsesInterface ) GetCollectorByClientIdWithResponse ( ctx context . Context , id queryapi . ClientID , reqEditors ... queryapi . RequestEditorFn ) ( * queryapi . GetCollectorByClientIdResponse , error ) {
2025-03-11 16:31:06 +00:00
_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" )
}
2025-03-17 18:14:15 +00:00
var r0 * queryapi . GetCollectorByClientIdResponse
2025-03-11 16:31:06 +00:00
var r1 error
2025-05-08 16:04:45 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . ClientID , ... queryapi . RequestEditorFn ) ( * queryapi . GetCollectorByClientIdResponse , error ) ) ; ok {
2025-03-11 16:31:06 +00:00
return rf ( ctx , id , reqEditors ... )
}
2025-05-08 16:04:45 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . ClientID , ... queryapi . RequestEditorFn ) * queryapi . GetCollectorByClientIdResponse ) ; ok {
2025-03-11 16:31:06 +00:00
r0 = rf ( ctx , id , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
2025-03-17 18:14:15 +00:00
r0 = ret . Get ( 0 ) . ( * queryapi . GetCollectorByClientIdResponse )
2025-03-11 16:31:06 +00:00
}
}
2025-05-08 16:04:45 +00:00
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , queryapi . ClientID , ... queryapi . RequestEditorFn ) error ) ; ok {
2025-03-11 16:31:06 +00:00
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
2025-05-08 16:04:45 +00:00
// - id queryapi.ClientID
2025-03-17 18:14:15 +00:00
// - reqEditors ...queryapi.RequestEditorFn
2025-03-11 16:31:06 +00:00
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 ... ) ... ) }
}
2025-05-08 16:04:45 +00:00
func ( _c * MockClientWithResponsesInterface_GetCollectorByClientIdWithResponse_Call ) Run ( run func ( ctx context . Context , id queryapi . ClientID , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientWithResponsesInterface_GetCollectorByClientIdWithResponse_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Run ( func ( args mock . Arguments ) {
2025-03-17 18:14:15 +00:00
variadicArgs := make ( [ ] queryapi . RequestEditorFn , len ( args ) - 2 )
2025-03-11 16:31:06 +00:00
for i , a := range args [ 2 : ] {
if a != nil {
2025-03-17 18:14:15 +00:00
variadicArgs [ i ] = a . ( queryapi . RequestEditorFn )
2025-03-11 16:31:06 +00:00
}
}
2025-05-08 16:04:45 +00:00
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( queryapi . ClientID ) , variadicArgs ... )
2025-03-11 16:31:06 +00:00
} )
return _c
}
2025-03-17 18:14:15 +00:00
func ( _c * MockClientWithResponsesInterface_GetCollectorByClientIdWithResponse_Call ) Return ( _a0 * queryapi . GetCollectorByClientIdResponse , _a1 error ) * MockClientWithResponsesInterface_GetCollectorByClientIdWithResponse_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2025-05-08 16:04:45 +00:00
func ( _c * MockClientWithResponsesInterface_GetCollectorByClientIdWithResponse_Call ) RunAndReturn ( run func ( context . Context , queryapi . ClientID , ... queryapi . RequestEditorFn ) ( * queryapi . GetCollectorByClientIdResponse , error ) ) * MockClientWithResponsesInterface_GetCollectorByClientIdWithResponse_Call {
2025-03-17 18:14:15 +00:00
_c . Call . Return ( run )
return _c
}
2025-08-05 07:03:35 -07:00
// GetDocumentBatchWithResponse provides a mock function with given fields: ctx, id, batchId, reqEditors
func ( _m * MockClientWithResponsesInterface ) GetDocumentBatchWithResponse ( ctx context . Context , id queryapi . ClientID , batchId queryapi . BatchID , reqEditors ... queryapi . RequestEditorFn ) ( * queryapi . GetDocumentBatchResponse , error ) {
_va := make ( [ ] interface { } , len ( reqEditors ) )
for _i := range reqEditors {
_va [ _i ] = reqEditors [ _i ]
}
var _ca [ ] interface { }
_ca = append ( _ca , ctx , id , batchId )
_ca = append ( _ca , _va ... )
ret := _m . Called ( _ca ... )
if len ( ret ) == 0 {
panic ( "no return value specified for GetDocumentBatchWithResponse" )
}
var r0 * queryapi . GetDocumentBatchResponse
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . ClientID , queryapi . BatchID , ... queryapi . RequestEditorFn ) ( * queryapi . GetDocumentBatchResponse , error ) ) ; ok {
return rf ( ctx , id , batchId , reqEditors ... )
}
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . ClientID , queryapi . BatchID , ... queryapi . RequestEditorFn ) * queryapi . GetDocumentBatchResponse ) ; ok {
r0 = rf ( ctx , id , batchId , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * queryapi . GetDocumentBatchResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , queryapi . ClientID , queryapi . BatchID , ... queryapi . RequestEditorFn ) error ) ; ok {
r1 = rf ( ctx , id , batchId , reqEditors ... )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// MockClientWithResponsesInterface_GetDocumentBatchWithResponse_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDocumentBatchWithResponse'
type MockClientWithResponsesInterface_GetDocumentBatchWithResponse_Call struct {
* mock . Call
}
// GetDocumentBatchWithResponse is a helper method to define mock.On call
// - ctx context.Context
// - id queryapi.ClientID
// - batchId queryapi.BatchID
// - reqEditors ...queryapi.RequestEditorFn
func ( _e * MockClientWithResponsesInterface_Expecter ) GetDocumentBatchWithResponse ( ctx interface { } , id interface { } , batchId interface { } , reqEditors ... interface { } ) * MockClientWithResponsesInterface_GetDocumentBatchWithResponse_Call {
return & MockClientWithResponsesInterface_GetDocumentBatchWithResponse_Call { Call : _e . mock . On ( "GetDocumentBatchWithResponse" ,
append ( [ ] interface { } { ctx , id , batchId } , reqEditors ... ) ... ) }
}
func ( _c * MockClientWithResponsesInterface_GetDocumentBatchWithResponse_Call ) Run ( run func ( ctx context . Context , id queryapi . ClientID , batchId queryapi . BatchID , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientWithResponsesInterface_GetDocumentBatchWithResponse_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 ] . ( queryapi . ClientID ) , args [ 2 ] . ( queryapi . BatchID ) , variadicArgs ... )
} )
return _c
}
func ( _c * MockClientWithResponsesInterface_GetDocumentBatchWithResponse_Call ) Return ( _a0 * queryapi . GetDocumentBatchResponse , _a1 error ) * MockClientWithResponsesInterface_GetDocumentBatchWithResponse_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
func ( _c * MockClientWithResponsesInterface_GetDocumentBatchWithResponse_Call ) RunAndReturn ( run func ( context . Context , queryapi . ClientID , queryapi . BatchID , ... queryapi . RequestEditorFn ) ( * queryapi . GetDocumentBatchResponse , error ) ) * MockClientWithResponsesInterface_GetDocumentBatchWithResponse_Call {
_c . Call . Return ( run )
return _c
}
2025-03-17 18:14:15 +00:00
// GetDocumentWithResponse provides a mock function with given fields: ctx, id, reqEditors
2025-05-08 16:04:45 +00:00
func ( _m * MockClientWithResponsesInterface ) GetDocumentWithResponse ( ctx context . Context , id queryapi . DocumentID , reqEditors ... queryapi . RequestEditorFn ) ( * queryapi . GetDocumentResponse , error ) {
2025-03-17 18:14:15 +00:00
_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
2025-05-08 16:04:45 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . DocumentID , ... queryapi . RequestEditorFn ) ( * queryapi . GetDocumentResponse , error ) ) ; ok {
2025-03-17 18:14:15 +00:00
return rf ( ctx , id , reqEditors ... )
}
2025-05-08 16:04:45 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . DocumentID , ... queryapi . RequestEditorFn ) * queryapi . GetDocumentResponse ) ; ok {
2025-03-17 18:14:15 +00:00
r0 = rf ( ctx , id , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * queryapi . GetDocumentResponse )
}
}
2025-05-08 16:04:45 +00:00
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , queryapi . DocumentID , ... queryapi . RequestEditorFn ) error ) ; ok {
2025-03-17 18:14:15 +00:00
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
2025-05-08 16:04:45 +00:00
// - id queryapi.DocumentID
2025-03-17 18:14:15 +00:00
// - 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 ... ) ... ) }
}
2025-05-08 16:04:45 +00:00
func ( _c * MockClientWithResponsesInterface_GetDocumentWithResponse_Call ) Run ( run func ( ctx context . Context , id queryapi . DocumentID , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientWithResponsesInterface_GetDocumentWithResponse_Call {
2025-03-17 18:14:15 +00:00
_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 )
}
}
2025-05-08 16:04:45 +00:00
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( queryapi . DocumentID ) , variadicArgs ... )
2025-03-17 18:14:15 +00:00
} )
return _c
}
func ( _c * MockClientWithResponsesInterface_GetDocumentWithResponse_Call ) Return ( _a0 * queryapi . GetDocumentResponse , _a1 error ) * MockClientWithResponsesInterface_GetDocumentWithResponse_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2025-05-08 16:04:45 +00:00
func ( _c * MockClientWithResponsesInterface_GetDocumentWithResponse_Call ) RunAndReturn ( run func ( context . Context , queryapi . DocumentID , ... queryapi . RequestEditorFn ) ( * queryapi . GetDocumentResponse , error ) ) * MockClientWithResponsesInterface_GetDocumentWithResponse_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Return ( run )
return _c
}
2025-04-07 14:10:39 -07:00
// GetHomePageWithResponse provides a mock function with given fields: ctx, reqEditors
func ( _m * MockClientWithResponsesInterface ) GetHomePageWithResponse ( ctx context . Context , reqEditors ... queryapi . RequestEditorFn ) ( * queryapi . GetHomePageResponse , 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 GetHomePageWithResponse" )
}
var r0 * queryapi . GetHomePageResponse
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , ... queryapi . RequestEditorFn ) ( * queryapi . GetHomePageResponse , error ) ) ; ok {
return rf ( ctx , reqEditors ... )
}
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , ... queryapi . RequestEditorFn ) * queryapi . GetHomePageResponse ) ; ok {
r0 = rf ( ctx , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * queryapi . GetHomePageResponse )
}
}
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_GetHomePageWithResponse_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetHomePageWithResponse'
type MockClientWithResponsesInterface_GetHomePageWithResponse_Call struct {
* mock . Call
}
// GetHomePageWithResponse is a helper method to define mock.On call
// - ctx context.Context
// - reqEditors ...queryapi.RequestEditorFn
func ( _e * MockClientWithResponsesInterface_Expecter ) GetHomePageWithResponse ( ctx interface { } , reqEditors ... interface { } ) * MockClientWithResponsesInterface_GetHomePageWithResponse_Call {
return & MockClientWithResponsesInterface_GetHomePageWithResponse_Call { Call : _e . mock . On ( "GetHomePageWithResponse" ,
append ( [ ] interface { } { ctx } , reqEditors ... ) ... ) }
}
func ( _c * MockClientWithResponsesInterface_GetHomePageWithResponse_Call ) Run ( run func ( ctx context . Context , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientWithResponsesInterface_GetHomePageWithResponse_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_GetHomePageWithResponse_Call ) Return ( _a0 * queryapi . GetHomePageResponse , _a1 error ) * MockClientWithResponsesInterface_GetHomePageWithResponse_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
func ( _c * MockClientWithResponsesInterface_GetHomePageWithResponse_Call ) RunAndReturn ( run func ( context . Context , ... queryapi . RequestEditorFn ) ( * queryapi . GetHomePageResponse , error ) ) * MockClientWithResponsesInterface_GetHomePageWithResponse_Call {
_c . Call . Return ( run )
return _c
}
2025-03-11 16:31:06 +00:00
// GetQueryWithResponse provides a mock function with given fields: ctx, id, reqEditors
2025-05-08 16:04:45 +00:00
func ( _m * MockClientWithResponsesInterface ) GetQueryWithResponse ( ctx context . Context , id queryapi . QueryID , reqEditors ... queryapi . RequestEditorFn ) ( * queryapi . GetQueryResponse , error ) {
2025-03-11 16:31:06 +00:00
_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" )
}
2025-03-17 18:14:15 +00:00
var r0 * queryapi . GetQueryResponse
2025-03-11 16:31:06 +00:00
var r1 error
2025-05-08 16:04:45 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . QueryID , ... queryapi . RequestEditorFn ) ( * queryapi . GetQueryResponse , error ) ) ; ok {
2025-03-11 16:31:06 +00:00
return rf ( ctx , id , reqEditors ... )
}
2025-05-08 16:04:45 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . QueryID , ... queryapi . RequestEditorFn ) * queryapi . GetQueryResponse ) ; ok {
2025-03-11 16:31:06 +00:00
r0 = rf ( ctx , id , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
2025-03-17 18:14:15 +00:00
r0 = ret . Get ( 0 ) . ( * queryapi . GetQueryResponse )
2025-03-11 16:31:06 +00:00
}
}
2025-05-08 16:04:45 +00:00
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , queryapi . QueryID , ... queryapi . RequestEditorFn ) error ) ; ok {
2025-03-11 16:31:06 +00:00
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
2025-05-08 16:04:45 +00:00
// - id queryapi.QueryID
2025-03-17 18:14:15 +00:00
// - reqEditors ...queryapi.RequestEditorFn
2025-03-11 16:31:06 +00:00
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 ... ) ... ) }
}
2025-05-08 16:04:45 +00:00
func ( _c * MockClientWithResponsesInterface_GetQueryWithResponse_Call ) Run ( run func ( ctx context . Context , id queryapi . QueryID , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientWithResponsesInterface_GetQueryWithResponse_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Run ( func ( args mock . Arguments ) {
2025-03-17 18:14:15 +00:00
variadicArgs := make ( [ ] queryapi . RequestEditorFn , len ( args ) - 2 )
2025-03-11 16:31:06 +00:00
for i , a := range args [ 2 : ] {
if a != nil {
2025-03-17 18:14:15 +00:00
variadicArgs [ i ] = a . ( queryapi . RequestEditorFn )
2025-03-11 16:31:06 +00:00
}
}
2025-05-08 16:04:45 +00:00
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( queryapi . QueryID ) , variadicArgs ... )
2025-03-11 16:31:06 +00:00
} )
return _c
}
2025-03-17 18:14:15 +00:00
func ( _c * MockClientWithResponsesInterface_GetQueryWithResponse_Call ) Return ( _a0 * queryapi . GetQueryResponse , _a1 error ) * MockClientWithResponsesInterface_GetQueryWithResponse_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2025-05-08 16:04:45 +00:00
func ( _c * MockClientWithResponsesInterface_GetQueryWithResponse_Call ) RunAndReturn ( run func ( context . Context , queryapi . QueryID , ... queryapi . RequestEditorFn ) ( * queryapi . GetQueryResponse , error ) ) * MockClientWithResponsesInterface_GetQueryWithResponse_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Return ( run )
return _c
}
// GetStatusByClientIdWithResponse provides a mock function with given fields: ctx, id, reqEditors
2025-05-08 16:04:45 +00:00
func ( _m * MockClientWithResponsesInterface ) GetStatusByClientIdWithResponse ( ctx context . Context , id queryapi . ClientID , reqEditors ... queryapi . RequestEditorFn ) ( * queryapi . GetStatusByClientIdResponse , error ) {
2025-03-11 16:31:06 +00:00
_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" )
}
2025-03-17 18:14:15 +00:00
var r0 * queryapi . GetStatusByClientIdResponse
2025-03-11 16:31:06 +00:00
var r1 error
2025-05-08 16:04:45 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . ClientID , ... queryapi . RequestEditorFn ) ( * queryapi . GetStatusByClientIdResponse , error ) ) ; ok {
2025-03-11 16:31:06 +00:00
return rf ( ctx , id , reqEditors ... )
}
2025-05-08 16:04:45 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . ClientID , ... queryapi . RequestEditorFn ) * queryapi . GetStatusByClientIdResponse ) ; ok {
2025-03-11 16:31:06 +00:00
r0 = rf ( ctx , id , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
2025-03-17 18:14:15 +00:00
r0 = ret . Get ( 0 ) . ( * queryapi . GetStatusByClientIdResponse )
2025-03-11 16:31:06 +00:00
}
}
2025-05-08 16:04:45 +00:00
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , queryapi . ClientID , ... queryapi . RequestEditorFn ) error ) ; ok {
2025-03-11 16:31:06 +00:00
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
2025-05-08 16:04:45 +00:00
// - id queryapi.ClientID
2025-03-17 18:14:15 +00:00
// - reqEditors ...queryapi.RequestEditorFn
2025-03-11 16:31:06 +00:00
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 ... ) ... ) }
}
2025-05-08 16:04:45 +00:00
func ( _c * MockClientWithResponsesInterface_GetStatusByClientIdWithResponse_Call ) Run ( run func ( ctx context . Context , id queryapi . ClientID , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientWithResponsesInterface_GetStatusByClientIdWithResponse_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Run ( func ( args mock . Arguments ) {
2025-03-17 18:14:15 +00:00
variadicArgs := make ( [ ] queryapi . RequestEditorFn , len ( args ) - 2 )
2025-03-11 16:31:06 +00:00
for i , a := range args [ 2 : ] {
if a != nil {
2025-03-17 18:14:15 +00:00
variadicArgs [ i ] = a . ( queryapi . RequestEditorFn )
2025-03-11 16:31:06 +00:00
}
}
2025-05-08 16:04:45 +00:00
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( queryapi . ClientID ) , variadicArgs ... )
2025-03-11 16:31:06 +00:00
} )
return _c
}
2025-03-17 18:14:15 +00:00
func ( _c * MockClientWithResponsesInterface_GetStatusByClientIdWithResponse_Call ) Return ( _a0 * queryapi . GetStatusByClientIdResponse , _a1 error ) * MockClientWithResponsesInterface_GetStatusByClientIdWithResponse_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2025-05-08 16:04:45 +00:00
func ( _c * MockClientWithResponsesInterface_GetStatusByClientIdWithResponse_Call ) RunAndReturn ( run func ( context . Context , queryapi . ClientID , ... queryapi . RequestEditorFn ) ( * queryapi . GetStatusByClientIdResponse , error ) ) * MockClientWithResponsesInterface_GetStatusByClientIdWithResponse_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Return ( run )
return _c
}
2025-08-05 07:03:35 -07:00
// ListDocumentBatchesWithResponse provides a mock function with given fields: ctx, id, params, reqEditors
func ( _m * MockClientWithResponsesInterface ) ListDocumentBatchesWithResponse ( ctx context . Context , id queryapi . ClientID , params * queryapi . ListDocumentBatchesParams , reqEditors ... queryapi . RequestEditorFn ) ( * queryapi . ListDocumentBatchesResponse , error ) {
_va := make ( [ ] interface { } , len ( reqEditors ) )
for _i := range reqEditors {
_va [ _i ] = reqEditors [ _i ]
}
var _ca [ ] interface { }
_ca = append ( _ca , ctx , id , params )
_ca = append ( _ca , _va ... )
ret := _m . Called ( _ca ... )
if len ( ret ) == 0 {
panic ( "no return value specified for ListDocumentBatchesWithResponse" )
}
var r0 * queryapi . ListDocumentBatchesResponse
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . ClientID , * queryapi . ListDocumentBatchesParams , ... queryapi . RequestEditorFn ) ( * queryapi . ListDocumentBatchesResponse , error ) ) ; ok {
return rf ( ctx , id , params , reqEditors ... )
}
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . ClientID , * queryapi . ListDocumentBatchesParams , ... queryapi . RequestEditorFn ) * queryapi . ListDocumentBatchesResponse ) ; ok {
r0 = rf ( ctx , id , params , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * queryapi . ListDocumentBatchesResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , queryapi . ClientID , * queryapi . ListDocumentBatchesParams , ... queryapi . RequestEditorFn ) error ) ; ok {
r1 = rf ( ctx , id , params , reqEditors ... )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// MockClientWithResponsesInterface_ListDocumentBatchesWithResponse_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListDocumentBatchesWithResponse'
type MockClientWithResponsesInterface_ListDocumentBatchesWithResponse_Call struct {
* mock . Call
}
// ListDocumentBatchesWithResponse is a helper method to define mock.On call
// - ctx context.Context
// - id queryapi.ClientID
// - params *queryapi.ListDocumentBatchesParams
// - reqEditors ...queryapi.RequestEditorFn
func ( _e * MockClientWithResponsesInterface_Expecter ) ListDocumentBatchesWithResponse ( ctx interface { } , id interface { } , params interface { } , reqEditors ... interface { } ) * MockClientWithResponsesInterface_ListDocumentBatchesWithResponse_Call {
return & MockClientWithResponsesInterface_ListDocumentBatchesWithResponse_Call { Call : _e . mock . On ( "ListDocumentBatchesWithResponse" ,
append ( [ ] interface { } { ctx , id , params } , reqEditors ... ) ... ) }
}
func ( _c * MockClientWithResponsesInterface_ListDocumentBatchesWithResponse_Call ) Run ( run func ( ctx context . Context , id queryapi . ClientID , params * queryapi . ListDocumentBatchesParams , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientWithResponsesInterface_ListDocumentBatchesWithResponse_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 ] . ( queryapi . ClientID ) , args [ 2 ] . ( * queryapi . ListDocumentBatchesParams ) , variadicArgs ... )
} )
return _c
}
func ( _c * MockClientWithResponsesInterface_ListDocumentBatchesWithResponse_Call ) Return ( _a0 * queryapi . ListDocumentBatchesResponse , _a1 error ) * MockClientWithResponsesInterface_ListDocumentBatchesWithResponse_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
func ( _c * MockClientWithResponsesInterface_ListDocumentBatchesWithResponse_Call ) RunAndReturn ( run func ( context . Context , queryapi . ClientID , * queryapi . ListDocumentBatchesParams , ... queryapi . RequestEditorFn ) ( * queryapi . ListDocumentBatchesResponse , error ) ) * MockClientWithResponsesInterface_ListDocumentBatchesWithResponse_Call {
_c . Call . Return ( run )
return _c
}
2025-03-11 16:31:06 +00:00
// ListDocumentsByClientIdWithResponse provides a mock function with given fields: ctx, id, reqEditors
2025-05-08 16:04:45 +00:00
func ( _m * MockClientWithResponsesInterface ) ListDocumentsByClientIdWithResponse ( ctx context . Context , id queryapi . ClientID , reqEditors ... queryapi . RequestEditorFn ) ( * queryapi . ListDocumentsByClientIdResponse , error ) {
2025-03-11 16:31:06 +00:00
_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" )
}
2025-03-17 18:14:15 +00:00
var r0 * queryapi . ListDocumentsByClientIdResponse
2025-03-11 16:31:06 +00:00
var r1 error
2025-05-08 16:04:45 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . ClientID , ... queryapi . RequestEditorFn ) ( * queryapi . ListDocumentsByClientIdResponse , error ) ) ; ok {
2025-03-11 16:31:06 +00:00
return rf ( ctx , id , reqEditors ... )
}
2025-05-08 16:04:45 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . ClientID , ... queryapi . RequestEditorFn ) * queryapi . ListDocumentsByClientIdResponse ) ; ok {
2025-03-11 16:31:06 +00:00
r0 = rf ( ctx , id , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
2025-03-17 18:14:15 +00:00
r0 = ret . Get ( 0 ) . ( * queryapi . ListDocumentsByClientIdResponse )
2025-03-11 16:31:06 +00:00
}
}
2025-05-08 16:04:45 +00:00
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , queryapi . ClientID , ... queryapi . RequestEditorFn ) error ) ; ok {
2025-03-11 16:31:06 +00:00
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
2025-05-08 16:04:45 +00:00
// - id queryapi.ClientID
2025-03-17 18:14:15 +00:00
// - reqEditors ...queryapi.RequestEditorFn
2025-03-11 16:31:06 +00:00
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 ... ) ... ) }
}
2025-05-08 16:04:45 +00:00
func ( _c * MockClientWithResponsesInterface_ListDocumentsByClientIdWithResponse_Call ) Run ( run func ( ctx context . Context , id queryapi . ClientID , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientWithResponsesInterface_ListDocumentsByClientIdWithResponse_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Run ( func ( args mock . Arguments ) {
2025-03-17 18:14:15 +00:00
variadicArgs := make ( [ ] queryapi . RequestEditorFn , len ( args ) - 2 )
2025-03-11 16:31:06 +00:00
for i , a := range args [ 2 : ] {
if a != nil {
2025-03-17 18:14:15 +00:00
variadicArgs [ i ] = a . ( queryapi . RequestEditorFn )
2025-03-11 16:31:06 +00:00
}
}
2025-05-08 16:04:45 +00:00
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( queryapi . ClientID ) , variadicArgs ... )
2025-03-11 16:31:06 +00:00
} )
return _c
}
2025-03-17 18:14:15 +00:00
func ( _c * MockClientWithResponsesInterface_ListDocumentsByClientIdWithResponse_Call ) Return ( _a0 * queryapi . ListDocumentsByClientIdResponse , _a1 error ) * MockClientWithResponsesInterface_ListDocumentsByClientIdWithResponse_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2025-05-08 16:04:45 +00:00
func ( _c * MockClientWithResponsesInterface_ListDocumentsByClientIdWithResponse_Call ) RunAndReturn ( run func ( context . Context , queryapi . ClientID , ... queryapi . RequestEditorFn ) ( * queryapi . ListDocumentsByClientIdResponse , error ) ) * MockClientWithResponsesInterface_ListDocumentsByClientIdWithResponse_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Return ( run )
return _c
}
// ListQueriesWithResponse provides a mock function with given fields: ctx, reqEditors
2025-03-17 18:14:15 +00:00
func ( _m * MockClientWithResponsesInterface ) ListQueriesWithResponse ( ctx context . Context , reqEditors ... queryapi . RequestEditorFn ) ( * queryapi . ListQueriesResponse , error ) {
2025-03-11 16:31:06 +00:00
_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" )
}
2025-03-17 18:14:15 +00:00
var r0 * queryapi . ListQueriesResponse
2025-03-11 16:31:06 +00:00
var r1 error
2025-03-17 18:14:15 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , ... queryapi . RequestEditorFn ) ( * queryapi . ListQueriesResponse , error ) ) ; ok {
2025-03-11 16:31:06 +00:00
return rf ( ctx , reqEditors ... )
}
2025-03-17 18:14:15 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , ... queryapi . RequestEditorFn ) * queryapi . ListQueriesResponse ) ; ok {
2025-03-11 16:31:06 +00:00
r0 = rf ( ctx , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
2025-03-17 18:14:15 +00:00
r0 = ret . Get ( 0 ) . ( * queryapi . ListQueriesResponse )
2025-03-11 16:31:06 +00:00
}
}
2025-03-17 18:14:15 +00:00
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , ... queryapi . RequestEditorFn ) error ) ; ok {
2025-03-11 16:31:06 +00:00
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
2025-03-17 18:14:15 +00:00
// - reqEditors ...queryapi.RequestEditorFn
2025-03-11 16:31:06 +00:00
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 ... ) ... ) }
}
2025-03-17 18:14:15 +00:00
func ( _c * MockClientWithResponsesInterface_ListQueriesWithResponse_Call ) Run ( run func ( ctx context . Context , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientWithResponsesInterface_ListQueriesWithResponse_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Run ( func ( args mock . Arguments ) {
2025-03-17 18:14:15 +00:00
variadicArgs := make ( [ ] queryapi . RequestEditorFn , len ( args ) - 1 )
2025-03-11 16:31:06 +00:00
for i , a := range args [ 1 : ] {
if a != nil {
2025-03-17 18:14:15 +00:00
variadicArgs [ i ] = a . ( queryapi . RequestEditorFn )
2025-03-11 16:31:06 +00:00
}
}
run ( args [ 0 ] . ( context . Context ) , variadicArgs ... )
} )
return _c
}
2025-03-17 18:14:15 +00:00
func ( _c * MockClientWithResponsesInterface_ListQueriesWithResponse_Call ) Return ( _a0 * queryapi . ListQueriesResponse , _a1 error ) * MockClientWithResponsesInterface_ListQueriesWithResponse_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2025-03-17 18:14:15 +00:00
func ( _c * MockClientWithResponsesInterface_ListQueriesWithResponse_Call ) RunAndReturn ( run func ( context . Context , ... queryapi . RequestEditorFn ) ( * queryapi . ListQueriesResponse , error ) ) * MockClientWithResponsesInterface_ListQueriesWithResponse_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Return ( run )
return _c
}
2025-04-07 14:10:39 -07:00
// LoginCallbackWithResponse provides a mock function with given fields: ctx, params, reqEditors
func ( _m * MockClientWithResponsesInterface ) LoginCallbackWithResponse ( ctx context . Context , params * queryapi . LoginCallbackParams , reqEditors ... queryapi . RequestEditorFn ) ( * queryapi . LoginCallbackResponse , error ) {
_va := make ( [ ] interface { } , len ( reqEditors ) )
for _i := range reqEditors {
_va [ _i ] = reqEditors [ _i ]
}
var _ca [ ] interface { }
_ca = append ( _ca , ctx , params )
_ca = append ( _ca , _va ... )
ret := _m . Called ( _ca ... )
if len ( ret ) == 0 {
panic ( "no return value specified for LoginCallbackWithResponse" )
}
var r0 * queryapi . LoginCallbackResponse
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * queryapi . LoginCallbackParams , ... queryapi . RequestEditorFn ) ( * queryapi . LoginCallbackResponse , error ) ) ; ok {
return rf ( ctx , params , reqEditors ... )
}
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * queryapi . LoginCallbackParams , ... queryapi . RequestEditorFn ) * queryapi . LoginCallbackResponse ) ; ok {
r0 = rf ( ctx , params , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * queryapi . LoginCallbackResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * queryapi . LoginCallbackParams , ... queryapi . RequestEditorFn ) error ) ; ok {
r1 = rf ( ctx , params , reqEditors ... )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// MockClientWithResponsesInterface_LoginCallbackWithResponse_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LoginCallbackWithResponse'
type MockClientWithResponsesInterface_LoginCallbackWithResponse_Call struct {
* mock . Call
}
// LoginCallbackWithResponse is a helper method to define mock.On call
// - ctx context.Context
// - params *queryapi.LoginCallbackParams
// - reqEditors ...queryapi.RequestEditorFn
func ( _e * MockClientWithResponsesInterface_Expecter ) LoginCallbackWithResponse ( ctx interface { } , params interface { } , reqEditors ... interface { } ) * MockClientWithResponsesInterface_LoginCallbackWithResponse_Call {
return & MockClientWithResponsesInterface_LoginCallbackWithResponse_Call { Call : _e . mock . On ( "LoginCallbackWithResponse" ,
append ( [ ] interface { } { ctx , params } , reqEditors ... ) ... ) }
}
func ( _c * MockClientWithResponsesInterface_LoginCallbackWithResponse_Call ) Run ( run func ( ctx context . Context , params * queryapi . LoginCallbackParams , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientWithResponsesInterface_LoginCallbackWithResponse_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 . LoginCallbackParams ) , variadicArgs ... )
} )
return _c
}
func ( _c * MockClientWithResponsesInterface_LoginCallbackWithResponse_Call ) Return ( _a0 * queryapi . LoginCallbackResponse , _a1 error ) * MockClientWithResponsesInterface_LoginCallbackWithResponse_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
func ( _c * MockClientWithResponsesInterface_LoginCallbackWithResponse_Call ) RunAndReturn ( run func ( context . Context , * queryapi . LoginCallbackParams , ... queryapi . RequestEditorFn ) ( * queryapi . LoginCallbackResponse , error ) ) * MockClientWithResponsesInterface_LoginCallbackWithResponse_Call {
_c . Call . Return ( run )
return _c
}
// LoginWithResponse provides a mock function with given fields: ctx, reqEditors
func ( _m * MockClientWithResponsesInterface ) LoginWithResponse ( ctx context . Context , reqEditors ... queryapi . RequestEditorFn ) ( * queryapi . LoginResponse , 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 LoginWithResponse" )
}
var r0 * queryapi . LoginResponse
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , ... queryapi . RequestEditorFn ) ( * queryapi . LoginResponse , error ) ) ; ok {
return rf ( ctx , reqEditors ... )
}
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , ... queryapi . RequestEditorFn ) * queryapi . LoginResponse ) ; ok {
r0 = rf ( ctx , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * queryapi . LoginResponse )
}
}
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_LoginWithResponse_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LoginWithResponse'
type MockClientWithResponsesInterface_LoginWithResponse_Call struct {
* mock . Call
}
// LoginWithResponse is a helper method to define mock.On call
// - ctx context.Context
// - reqEditors ...queryapi.RequestEditorFn
func ( _e * MockClientWithResponsesInterface_Expecter ) LoginWithResponse ( ctx interface { } , reqEditors ... interface { } ) * MockClientWithResponsesInterface_LoginWithResponse_Call {
return & MockClientWithResponsesInterface_LoginWithResponse_Call { Call : _e . mock . On ( "LoginWithResponse" ,
append ( [ ] interface { } { ctx } , reqEditors ... ) ... ) }
}
func ( _c * MockClientWithResponsesInterface_LoginWithResponse_Call ) Run ( run func ( ctx context . Context , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientWithResponsesInterface_LoginWithResponse_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_LoginWithResponse_Call ) Return ( _a0 * queryapi . LoginResponse , _a1 error ) * MockClientWithResponsesInterface_LoginWithResponse_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
func ( _c * MockClientWithResponsesInterface_LoginWithResponse_Call ) RunAndReturn ( run func ( context . Context , ... queryapi . RequestEditorFn ) ( * queryapi . LoginResponse , error ) ) * MockClientWithResponsesInterface_LoginWithResponse_Call {
_c . Call . Return ( run )
return _c
}
// LogoutWithResponse provides a mock function with given fields: ctx, reqEditors
func ( _m * MockClientWithResponsesInterface ) LogoutWithResponse ( ctx context . Context , reqEditors ... queryapi . RequestEditorFn ) ( * queryapi . LogoutResponse , 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 LogoutWithResponse" )
}
var r0 * queryapi . LogoutResponse
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , ... queryapi . RequestEditorFn ) ( * queryapi . LogoutResponse , error ) ) ; ok {
return rf ( ctx , reqEditors ... )
}
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , ... queryapi . RequestEditorFn ) * queryapi . LogoutResponse ) ; ok {
r0 = rf ( ctx , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * queryapi . LogoutResponse )
}
}
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_LogoutWithResponse_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LogoutWithResponse'
type MockClientWithResponsesInterface_LogoutWithResponse_Call struct {
* mock . Call
}
// LogoutWithResponse is a helper method to define mock.On call
// - ctx context.Context
// - reqEditors ...queryapi.RequestEditorFn
func ( _e * MockClientWithResponsesInterface_Expecter ) LogoutWithResponse ( ctx interface { } , reqEditors ... interface { } ) * MockClientWithResponsesInterface_LogoutWithResponse_Call {
return & MockClientWithResponsesInterface_LogoutWithResponse_Call { Call : _e . mock . On ( "LogoutWithResponse" ,
append ( [ ] interface { } { ctx } , reqEditors ... ) ... ) }
}
func ( _c * MockClientWithResponsesInterface_LogoutWithResponse_Call ) Run ( run func ( ctx context . Context , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientWithResponsesInterface_LogoutWithResponse_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_LogoutWithResponse_Call ) Return ( _a0 * queryapi . LogoutResponse , _a1 error ) * MockClientWithResponsesInterface_LogoutWithResponse_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
func ( _c * MockClientWithResponsesInterface_LogoutWithResponse_Call ) RunAndReturn ( run func ( context . Context , ... queryapi . RequestEditorFn ) ( * queryapi . LogoutResponse , error ) ) * MockClientWithResponsesInterface_LogoutWithResponse_Call {
_c . Call . Return ( run )
return _c
}
2025-03-11 16:31:06 +00:00
// SetCollectorByClientIdWithBodyWithResponse provides a mock function with given fields: ctx, id, contentType, body, reqEditors
2025-05-08 16:04:45 +00:00
func ( _m * MockClientWithResponsesInterface ) SetCollectorByClientIdWithBodyWithResponse ( ctx context . Context , id queryapi . ClientID , contentType string , body io . Reader , reqEditors ... queryapi . RequestEditorFn ) ( * queryapi . SetCollectorByClientIdResponse , error ) {
2025-03-11 16:31:06 +00:00
_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" )
}
2025-03-17 18:14:15 +00:00
var r0 * queryapi . SetCollectorByClientIdResponse
2025-03-11 16:31:06 +00:00
var r1 error
2025-05-08 16:04:45 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . ClientID , string , io . Reader , ... queryapi . RequestEditorFn ) ( * queryapi . SetCollectorByClientIdResponse , error ) ) ; ok {
2025-03-11 16:31:06 +00:00
return rf ( ctx , id , contentType , body , reqEditors ... )
}
2025-05-08 16:04:45 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . ClientID , string , io . Reader , ... queryapi . RequestEditorFn ) * queryapi . SetCollectorByClientIdResponse ) ; ok {
2025-03-11 16:31:06 +00:00
r0 = rf ( ctx , id , contentType , body , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
2025-03-17 18:14:15 +00:00
r0 = ret . Get ( 0 ) . ( * queryapi . SetCollectorByClientIdResponse )
2025-03-11 16:31:06 +00:00
}
}
2025-05-08 16:04:45 +00:00
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , queryapi . ClientID , string , io . Reader , ... queryapi . RequestEditorFn ) error ) ; ok {
2025-03-11 16:31:06 +00:00
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
2025-05-08 16:04:45 +00:00
// - id queryapi.ClientID
2025-03-11 16:31:06 +00:00
// - contentType string
// - body io.Reader
2025-03-17 18:14:15 +00:00
// - reqEditors ...queryapi.RequestEditorFn
2025-03-11 16:31:06 +00:00
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 ... ) ... ) }
}
2025-05-08 16:04:45 +00:00
func ( _c * MockClientWithResponsesInterface_SetCollectorByClientIdWithBodyWithResponse_Call ) Run ( run func ( ctx context . Context , id queryapi . ClientID , contentType string , body io . Reader , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientWithResponsesInterface_SetCollectorByClientIdWithBodyWithResponse_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Run ( func ( args mock . Arguments ) {
2025-03-17 18:14:15 +00:00
variadicArgs := make ( [ ] queryapi . RequestEditorFn , len ( args ) - 4 )
2025-03-11 16:31:06 +00:00
for i , a := range args [ 4 : ] {
if a != nil {
2025-03-17 18:14:15 +00:00
variadicArgs [ i ] = a . ( queryapi . RequestEditorFn )
2025-03-11 16:31:06 +00:00
}
}
2025-05-08 16:04:45 +00:00
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( queryapi . ClientID ) , args [ 2 ] . ( string ) , args [ 3 ] . ( io . Reader ) , variadicArgs ... )
2025-03-11 16:31:06 +00:00
} )
return _c
}
2025-03-17 18:14:15 +00:00
func ( _c * MockClientWithResponsesInterface_SetCollectorByClientIdWithBodyWithResponse_Call ) Return ( _a0 * queryapi . SetCollectorByClientIdResponse , _a1 error ) * MockClientWithResponsesInterface_SetCollectorByClientIdWithBodyWithResponse_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2025-05-08 16:04:45 +00:00
func ( _c * MockClientWithResponsesInterface_SetCollectorByClientIdWithBodyWithResponse_Call ) RunAndReturn ( run func ( context . Context , queryapi . ClientID , string , io . Reader , ... queryapi . RequestEditorFn ) ( * queryapi . SetCollectorByClientIdResponse , error ) ) * MockClientWithResponsesInterface_SetCollectorByClientIdWithBodyWithResponse_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Return ( run )
return _c
}
// SetCollectorByClientIdWithResponse provides a mock function with given fields: ctx, id, body, reqEditors
2025-05-08 16:04:45 +00:00
func ( _m * MockClientWithResponsesInterface ) SetCollectorByClientIdWithResponse ( ctx context . Context , id queryapi . ClientID , body queryapi . SetCollectorByClientIdJSONRequestBody , reqEditors ... queryapi . RequestEditorFn ) ( * queryapi . SetCollectorByClientIdResponse , error ) {
2025-03-11 16:31:06 +00:00
_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" )
}
2025-03-17 18:14:15 +00:00
var r0 * queryapi . SetCollectorByClientIdResponse
2025-03-11 16:31:06 +00:00
var r1 error
2025-05-08 16:04:45 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . ClientID , queryapi . SetCollectorByClientIdJSONRequestBody , ... queryapi . RequestEditorFn ) ( * queryapi . SetCollectorByClientIdResponse , error ) ) ; ok {
2025-03-11 16:31:06 +00:00
return rf ( ctx , id , body , reqEditors ... )
}
2025-05-08 16:04:45 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . ClientID , queryapi . SetCollectorByClientIdJSONRequestBody , ... queryapi . RequestEditorFn ) * queryapi . SetCollectorByClientIdResponse ) ; ok {
2025-03-11 16:31:06 +00:00
r0 = rf ( ctx , id , body , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
2025-03-17 18:14:15 +00:00
r0 = ret . Get ( 0 ) . ( * queryapi . SetCollectorByClientIdResponse )
2025-03-11 16:31:06 +00:00
}
}
2025-05-08 16:04:45 +00:00
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , queryapi . ClientID , queryapi . SetCollectorByClientIdJSONRequestBody , ... queryapi . RequestEditorFn ) error ) ; ok {
2025-03-11 16:31:06 +00:00
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
2025-05-08 16:04:45 +00:00
// - id queryapi.ClientID
// - body queryapi.SetCollectorByClientIdJSONRequestBody
2025-03-17 18:14:15 +00:00
// - reqEditors ...queryapi.RequestEditorFn
2025-03-11 16:31:06 +00:00
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 ... ) ... ) }
}
2025-05-08 16:04:45 +00:00
func ( _c * MockClientWithResponsesInterface_SetCollectorByClientIdWithResponse_Call ) Run ( run func ( ctx context . Context , id queryapi . ClientID , body queryapi . SetCollectorByClientIdJSONRequestBody , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientWithResponsesInterface_SetCollectorByClientIdWithResponse_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Run ( func ( args mock . Arguments ) {
2025-03-17 18:14:15 +00:00
variadicArgs := make ( [ ] queryapi . RequestEditorFn , len ( args ) - 3 )
2025-03-11 16:31:06 +00:00
for i , a := range args [ 3 : ] {
if a != nil {
2025-03-17 18:14:15 +00:00
variadicArgs [ i ] = a . ( queryapi . RequestEditorFn )
2025-03-11 16:31:06 +00:00
}
}
2025-05-08 16:04:45 +00:00
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( queryapi . ClientID ) , args [ 2 ] . ( queryapi . SetCollectorByClientIdJSONRequestBody ) , variadicArgs ... )
2025-03-11 16:31:06 +00:00
} )
return _c
}
2025-03-17 18:14:15 +00:00
func ( _c * MockClientWithResponsesInterface_SetCollectorByClientIdWithResponse_Call ) Return ( _a0 * queryapi . SetCollectorByClientIdResponse , _a1 error ) * MockClientWithResponsesInterface_SetCollectorByClientIdWithResponse_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2025-05-08 16:04:45 +00:00
func ( _c * MockClientWithResponsesInterface_SetCollectorByClientIdWithResponse_Call ) RunAndReturn ( run func ( context . Context , queryapi . ClientID , queryapi . SetCollectorByClientIdJSONRequestBody , ... queryapi . RequestEditorFn ) ( * queryapi . SetCollectorByClientIdResponse , error ) ) * MockClientWithResponsesInterface_SetCollectorByClientIdWithResponse_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Return ( run )
return _c
}
// TestQueryWithBodyWithResponse provides a mock function with given fields: ctx, id, contentType, body, reqEditors
2025-05-08 16:04:45 +00:00
func ( _m * MockClientWithResponsesInterface ) TestQueryWithBodyWithResponse ( ctx context . Context , id queryapi . QueryID , contentType string , body io . Reader , reqEditors ... queryapi . RequestEditorFn ) ( * queryapi . TestQueryResponse , error ) {
2025-03-11 16:31:06 +00:00
_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" )
}
2025-03-17 18:14:15 +00:00
var r0 * queryapi . TestQueryResponse
2025-03-11 16:31:06 +00:00
var r1 error
2025-05-08 16:04:45 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . QueryID , string , io . Reader , ... queryapi . RequestEditorFn ) ( * queryapi . TestQueryResponse , error ) ) ; ok {
2025-03-11 16:31:06 +00:00
return rf ( ctx , id , contentType , body , reqEditors ... )
}
2025-05-08 16:04:45 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . QueryID , string , io . Reader , ... queryapi . RequestEditorFn ) * queryapi . TestQueryResponse ) ; ok {
2025-03-11 16:31:06 +00:00
r0 = rf ( ctx , id , contentType , body , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
2025-03-17 18:14:15 +00:00
r0 = ret . Get ( 0 ) . ( * queryapi . TestQueryResponse )
2025-03-11 16:31:06 +00:00
}
}
2025-05-08 16:04:45 +00:00
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , queryapi . QueryID , string , io . Reader , ... queryapi . RequestEditorFn ) error ) ; ok {
2025-03-11 16:31:06 +00:00
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
2025-05-08 16:04:45 +00:00
// - id queryapi.QueryID
2025-03-11 16:31:06 +00:00
// - contentType string
// - body io.Reader
2025-03-17 18:14:15 +00:00
// - reqEditors ...queryapi.RequestEditorFn
2025-03-11 16:31:06 +00:00
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 ... ) ... ) }
}
2025-05-08 16:04:45 +00:00
func ( _c * MockClientWithResponsesInterface_TestQueryWithBodyWithResponse_Call ) Run ( run func ( ctx context . Context , id queryapi . QueryID , contentType string , body io . Reader , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientWithResponsesInterface_TestQueryWithBodyWithResponse_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Run ( func ( args mock . Arguments ) {
2025-03-17 18:14:15 +00:00
variadicArgs := make ( [ ] queryapi . RequestEditorFn , len ( args ) - 4 )
2025-03-11 16:31:06 +00:00
for i , a := range args [ 4 : ] {
if a != nil {
2025-03-17 18:14:15 +00:00
variadicArgs [ i ] = a . ( queryapi . RequestEditorFn )
2025-03-11 16:31:06 +00:00
}
}
2025-05-08 16:04:45 +00:00
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( queryapi . QueryID ) , args [ 2 ] . ( string ) , args [ 3 ] . ( io . Reader ) , variadicArgs ... )
2025-03-11 16:31:06 +00:00
} )
return _c
}
2025-03-17 18:14:15 +00:00
func ( _c * MockClientWithResponsesInterface_TestQueryWithBodyWithResponse_Call ) Return ( _a0 * queryapi . TestQueryResponse , _a1 error ) * MockClientWithResponsesInterface_TestQueryWithBodyWithResponse_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2025-05-08 16:04:45 +00:00
func ( _c * MockClientWithResponsesInterface_TestQueryWithBodyWithResponse_Call ) RunAndReturn ( run func ( context . Context , queryapi . QueryID , string , io . Reader , ... queryapi . RequestEditorFn ) ( * queryapi . TestQueryResponse , error ) ) * MockClientWithResponsesInterface_TestQueryWithBodyWithResponse_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Return ( run )
return _c
}
// TestQueryWithResponse provides a mock function with given fields: ctx, id, body, reqEditors
2025-05-08 16:04:45 +00:00
func ( _m * MockClientWithResponsesInterface ) TestQueryWithResponse ( ctx context . Context , id queryapi . QueryID , body queryapi . TestQueryJSONRequestBody , reqEditors ... queryapi . RequestEditorFn ) ( * queryapi . TestQueryResponse , error ) {
2025-03-11 16:31:06 +00:00
_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" )
}
2025-03-17 18:14:15 +00:00
var r0 * queryapi . TestQueryResponse
2025-03-11 16:31:06 +00:00
var r1 error
2025-05-08 16:04:45 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . QueryID , queryapi . TestQueryJSONRequestBody , ... queryapi . RequestEditorFn ) ( * queryapi . TestQueryResponse , error ) ) ; ok {
2025-03-11 16:31:06 +00:00
return rf ( ctx , id , body , reqEditors ... )
}
2025-05-08 16:04:45 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . QueryID , queryapi . TestQueryJSONRequestBody , ... queryapi . RequestEditorFn ) * queryapi . TestQueryResponse ) ; ok {
2025-03-11 16:31:06 +00:00
r0 = rf ( ctx , id , body , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
2025-03-17 18:14:15 +00:00
r0 = ret . Get ( 0 ) . ( * queryapi . TestQueryResponse )
2025-03-11 16:31:06 +00:00
}
}
2025-05-08 16:04:45 +00:00
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , queryapi . QueryID , queryapi . TestQueryJSONRequestBody , ... queryapi . RequestEditorFn ) error ) ; ok {
2025-03-11 16:31:06 +00:00
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
2025-05-08 16:04:45 +00:00
// - id queryapi.QueryID
// - body queryapi.TestQueryJSONRequestBody
2025-03-17 18:14:15 +00:00
// - reqEditors ...queryapi.RequestEditorFn
2025-03-11 16:31:06 +00:00
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 ... ) ... ) }
}
2025-05-08 16:04:45 +00:00
func ( _c * MockClientWithResponsesInterface_TestQueryWithResponse_Call ) Run ( run func ( ctx context . Context , id queryapi . QueryID , body queryapi . TestQueryJSONRequestBody , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientWithResponsesInterface_TestQueryWithResponse_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Run ( func ( args mock . Arguments ) {
2025-03-17 18:14:15 +00:00
variadicArgs := make ( [ ] queryapi . RequestEditorFn , len ( args ) - 3 )
2025-03-11 16:31:06 +00:00
for i , a := range args [ 3 : ] {
if a != nil {
2025-03-17 18:14:15 +00:00
variadicArgs [ i ] = a . ( queryapi . RequestEditorFn )
2025-03-11 16:31:06 +00:00
}
}
2025-05-08 16:04:45 +00:00
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( queryapi . QueryID ) , args [ 2 ] . ( queryapi . TestQueryJSONRequestBody ) , variadicArgs ... )
2025-03-11 16:31:06 +00:00
} )
return _c
}
2025-03-17 18:14:15 +00:00
func ( _c * MockClientWithResponsesInterface_TestQueryWithResponse_Call ) Return ( _a0 * queryapi . TestQueryResponse , _a1 error ) * MockClientWithResponsesInterface_TestQueryWithResponse_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2025-05-08 16:04:45 +00:00
func ( _c * MockClientWithResponsesInterface_TestQueryWithResponse_Call ) RunAndReturn ( run func ( context . Context , queryapi . QueryID , queryapi . TestQueryJSONRequestBody , ... queryapi . RequestEditorFn ) ( * queryapi . TestQueryResponse , error ) ) * MockClientWithResponsesInterface_TestQueryWithResponse_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Return ( run )
return _c
}
// TriggerExportWithBodyWithResponse provides a mock function with given fields: ctx, id, contentType, body, reqEditors
2025-05-08 16:04:45 +00:00
func ( _m * MockClientWithResponsesInterface ) TriggerExportWithBodyWithResponse ( ctx context . Context , id queryapi . ClientID , contentType string , body io . Reader , reqEditors ... queryapi . RequestEditorFn ) ( * queryapi . TriggerExportResponse , error ) {
2025-03-11 16:31:06 +00:00
_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" )
}
2025-03-17 18:14:15 +00:00
var r0 * queryapi . TriggerExportResponse
2025-03-11 16:31:06 +00:00
var r1 error
2025-05-08 16:04:45 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . ClientID , string , io . Reader , ... queryapi . RequestEditorFn ) ( * queryapi . TriggerExportResponse , error ) ) ; ok {
2025-03-11 16:31:06 +00:00
return rf ( ctx , id , contentType , body , reqEditors ... )
}
2025-05-08 16:04:45 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . ClientID , string , io . Reader , ... queryapi . RequestEditorFn ) * queryapi . TriggerExportResponse ) ; ok {
2025-03-11 16:31:06 +00:00
r0 = rf ( ctx , id , contentType , body , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
2025-03-17 18:14:15 +00:00
r0 = ret . Get ( 0 ) . ( * queryapi . TriggerExportResponse )
2025-03-11 16:31:06 +00:00
}
}
2025-05-08 16:04:45 +00:00
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , queryapi . ClientID , string , io . Reader , ... queryapi . RequestEditorFn ) error ) ; ok {
2025-03-11 16:31:06 +00:00
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
2025-05-08 16:04:45 +00:00
// - id queryapi.ClientID
2025-03-11 16:31:06 +00:00
// - contentType string
// - body io.Reader
2025-03-17 18:14:15 +00:00
// - reqEditors ...queryapi.RequestEditorFn
2025-03-11 16:31:06 +00:00
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 ... ) ... ) }
}
2025-05-08 16:04:45 +00:00
func ( _c * MockClientWithResponsesInterface_TriggerExportWithBodyWithResponse_Call ) Run ( run func ( ctx context . Context , id queryapi . ClientID , contentType string , body io . Reader , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientWithResponsesInterface_TriggerExportWithBodyWithResponse_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Run ( func ( args mock . Arguments ) {
2025-03-17 18:14:15 +00:00
variadicArgs := make ( [ ] queryapi . RequestEditorFn , len ( args ) - 4 )
2025-03-11 16:31:06 +00:00
for i , a := range args [ 4 : ] {
if a != nil {
2025-03-17 18:14:15 +00:00
variadicArgs [ i ] = a . ( queryapi . RequestEditorFn )
2025-03-11 16:31:06 +00:00
}
}
2025-05-08 16:04:45 +00:00
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( queryapi . ClientID ) , args [ 2 ] . ( string ) , args [ 3 ] . ( io . Reader ) , variadicArgs ... )
2025-03-11 16:31:06 +00:00
} )
return _c
}
2025-03-17 18:14:15 +00:00
func ( _c * MockClientWithResponsesInterface_TriggerExportWithBodyWithResponse_Call ) Return ( _a0 * queryapi . TriggerExportResponse , _a1 error ) * MockClientWithResponsesInterface_TriggerExportWithBodyWithResponse_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2025-05-08 16:04:45 +00:00
func ( _c * MockClientWithResponsesInterface_TriggerExportWithBodyWithResponse_Call ) RunAndReturn ( run func ( context . Context , queryapi . ClientID , string , io . Reader , ... queryapi . RequestEditorFn ) ( * queryapi . TriggerExportResponse , error ) ) * MockClientWithResponsesInterface_TriggerExportWithBodyWithResponse_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Return ( run )
return _c
}
// TriggerExportWithResponse provides a mock function with given fields: ctx, id, body, reqEditors
2025-05-08 16:04:45 +00:00
func ( _m * MockClientWithResponsesInterface ) TriggerExportWithResponse ( ctx context . Context , id queryapi . ClientID , body queryapi . TriggerExportJSONRequestBody , reqEditors ... queryapi . RequestEditorFn ) ( * queryapi . TriggerExportResponse , error ) {
2025-03-11 16:31:06 +00:00
_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" )
}
2025-03-17 18:14:15 +00:00
var r0 * queryapi . TriggerExportResponse
2025-03-11 16:31:06 +00:00
var r1 error
2025-05-08 16:04:45 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . ClientID , queryapi . TriggerExportJSONRequestBody , ... queryapi . RequestEditorFn ) ( * queryapi . TriggerExportResponse , error ) ) ; ok {
2025-03-11 16:31:06 +00:00
return rf ( ctx , id , body , reqEditors ... )
}
2025-05-08 16:04:45 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . ClientID , queryapi . TriggerExportJSONRequestBody , ... queryapi . RequestEditorFn ) * queryapi . TriggerExportResponse ) ; ok {
2025-03-11 16:31:06 +00:00
r0 = rf ( ctx , id , body , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
2025-03-17 18:14:15 +00:00
r0 = ret . Get ( 0 ) . ( * queryapi . TriggerExportResponse )
2025-03-11 16:31:06 +00:00
}
}
2025-05-08 16:04:45 +00:00
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , queryapi . ClientID , queryapi . TriggerExportJSONRequestBody , ... queryapi . RequestEditorFn ) error ) ; ok {
2025-03-11 16:31:06 +00:00
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
2025-05-08 16:04:45 +00:00
// - id queryapi.ClientID
// - body queryapi.TriggerExportJSONRequestBody
2025-03-17 18:14:15 +00:00
// - reqEditors ...queryapi.RequestEditorFn
2025-03-11 16:31:06 +00:00
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 ... ) ... ) }
}
2025-05-08 16:04:45 +00:00
func ( _c * MockClientWithResponsesInterface_TriggerExportWithResponse_Call ) Run ( run func ( ctx context . Context , id queryapi . ClientID , body queryapi . TriggerExportJSONRequestBody , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientWithResponsesInterface_TriggerExportWithResponse_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Run ( func ( args mock . Arguments ) {
2025-03-17 18:14:15 +00:00
variadicArgs := make ( [ ] queryapi . RequestEditorFn , len ( args ) - 3 )
2025-03-11 16:31:06 +00:00
for i , a := range args [ 3 : ] {
if a != nil {
2025-03-17 18:14:15 +00:00
variadicArgs [ i ] = a . ( queryapi . RequestEditorFn )
2025-03-11 16:31:06 +00:00
}
}
2025-05-08 16:04:45 +00:00
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( queryapi . ClientID ) , args [ 2 ] . ( queryapi . TriggerExportJSONRequestBody ) , variadicArgs ... )
2025-03-11 16:31:06 +00:00
} )
return _c
}
2025-03-17 18:14:15 +00:00
func ( _c * MockClientWithResponsesInterface_TriggerExportWithResponse_Call ) Return ( _a0 * queryapi . TriggerExportResponse , _a1 error ) * MockClientWithResponsesInterface_TriggerExportWithResponse_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2025-05-08 16:04:45 +00:00
func ( _c * MockClientWithResponsesInterface_TriggerExportWithResponse_Call ) RunAndReturn ( run func ( context . Context , queryapi . ClientID , queryapi . TriggerExportJSONRequestBody , ... queryapi . RequestEditorFn ) ( * queryapi . TriggerExportResponse , error ) ) * MockClientWithResponsesInterface_TriggerExportWithResponse_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Return ( run )
return _c
}
// UpdateClientWithBodyWithResponse provides a mock function with given fields: ctx, id, contentType, body, reqEditors
2025-05-08 16:04:45 +00:00
func ( _m * MockClientWithResponsesInterface ) UpdateClientWithBodyWithResponse ( ctx context . Context , id queryapi . ClientID , contentType string , body io . Reader , reqEditors ... queryapi . RequestEditorFn ) ( * queryapi . UpdateClientResponse , error ) {
2025-03-11 16:31:06 +00:00
_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" )
}
2025-03-17 18:14:15 +00:00
var r0 * queryapi . UpdateClientResponse
2025-03-11 16:31:06 +00:00
var r1 error
2025-05-08 16:04:45 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . ClientID , string , io . Reader , ... queryapi . RequestEditorFn ) ( * queryapi . UpdateClientResponse , error ) ) ; ok {
2025-03-11 16:31:06 +00:00
return rf ( ctx , id , contentType , body , reqEditors ... )
}
2025-05-08 16:04:45 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . ClientID , string , io . Reader , ... queryapi . RequestEditorFn ) * queryapi . UpdateClientResponse ) ; ok {
2025-03-11 16:31:06 +00:00
r0 = rf ( ctx , id , contentType , body , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
2025-03-17 18:14:15 +00:00
r0 = ret . Get ( 0 ) . ( * queryapi . UpdateClientResponse )
2025-03-11 16:31:06 +00:00
}
}
2025-05-08 16:04:45 +00:00
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , queryapi . ClientID , string , io . Reader , ... queryapi . RequestEditorFn ) error ) ; ok {
2025-03-11 16:31:06 +00:00
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
2025-05-08 16:04:45 +00:00
// - id queryapi.ClientID
2025-03-11 16:31:06 +00:00
// - contentType string
// - body io.Reader
2025-03-17 18:14:15 +00:00
// - reqEditors ...queryapi.RequestEditorFn
2025-03-11 16:31:06 +00:00
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 ... ) ... ) }
}
2025-05-08 16:04:45 +00:00
func ( _c * MockClientWithResponsesInterface_UpdateClientWithBodyWithResponse_Call ) Run ( run func ( ctx context . Context , id queryapi . ClientID , contentType string , body io . Reader , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientWithResponsesInterface_UpdateClientWithBodyWithResponse_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Run ( func ( args mock . Arguments ) {
2025-03-17 18:14:15 +00:00
variadicArgs := make ( [ ] queryapi . RequestEditorFn , len ( args ) - 4 )
2025-03-11 16:31:06 +00:00
for i , a := range args [ 4 : ] {
if a != nil {
2025-03-17 18:14:15 +00:00
variadicArgs [ i ] = a . ( queryapi . RequestEditorFn )
2025-03-11 16:31:06 +00:00
}
}
2025-05-08 16:04:45 +00:00
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( queryapi . ClientID ) , args [ 2 ] . ( string ) , args [ 3 ] . ( io . Reader ) , variadicArgs ... )
2025-03-11 16:31:06 +00:00
} )
return _c
}
2025-03-17 18:14:15 +00:00
func ( _c * MockClientWithResponsesInterface_UpdateClientWithBodyWithResponse_Call ) Return ( _a0 * queryapi . UpdateClientResponse , _a1 error ) * MockClientWithResponsesInterface_UpdateClientWithBodyWithResponse_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2025-05-08 16:04:45 +00:00
func ( _c * MockClientWithResponsesInterface_UpdateClientWithBodyWithResponse_Call ) RunAndReturn ( run func ( context . Context , queryapi . ClientID , string , io . Reader , ... queryapi . RequestEditorFn ) ( * queryapi . UpdateClientResponse , error ) ) * MockClientWithResponsesInterface_UpdateClientWithBodyWithResponse_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Return ( run )
return _c
}
// UpdateClientWithResponse provides a mock function with given fields: ctx, id, body, reqEditors
2025-05-08 16:04:45 +00:00
func ( _m * MockClientWithResponsesInterface ) UpdateClientWithResponse ( ctx context . Context , id queryapi . ClientID , body queryapi . UpdateClientJSONRequestBody , reqEditors ... queryapi . RequestEditorFn ) ( * queryapi . UpdateClientResponse , error ) {
2025-03-11 16:31:06 +00:00
_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" )
}
2025-03-17 18:14:15 +00:00
var r0 * queryapi . UpdateClientResponse
2025-03-11 16:31:06 +00:00
var r1 error
2025-05-08 16:04:45 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . ClientID , queryapi . UpdateClientJSONRequestBody , ... queryapi . RequestEditorFn ) ( * queryapi . UpdateClientResponse , error ) ) ; ok {
2025-03-11 16:31:06 +00:00
return rf ( ctx , id , body , reqEditors ... )
}
2025-05-08 16:04:45 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . ClientID , queryapi . UpdateClientJSONRequestBody , ... queryapi . RequestEditorFn ) * queryapi . UpdateClientResponse ) ; ok {
2025-03-11 16:31:06 +00:00
r0 = rf ( ctx , id , body , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
2025-03-17 18:14:15 +00:00
r0 = ret . Get ( 0 ) . ( * queryapi . UpdateClientResponse )
2025-03-11 16:31:06 +00:00
}
}
2025-05-08 16:04:45 +00:00
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , queryapi . ClientID , queryapi . UpdateClientJSONRequestBody , ... queryapi . RequestEditorFn ) error ) ; ok {
2025-03-11 16:31:06 +00:00
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
2025-05-08 16:04:45 +00:00
// - id queryapi.ClientID
// - body queryapi.UpdateClientJSONRequestBody
2025-03-17 18:14:15 +00:00
// - reqEditors ...queryapi.RequestEditorFn
2025-03-11 16:31:06 +00:00
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 ... ) ... ) }
}
2025-05-08 16:04:45 +00:00
func ( _c * MockClientWithResponsesInterface_UpdateClientWithResponse_Call ) Run ( run func ( ctx context . Context , id queryapi . ClientID , body queryapi . UpdateClientJSONRequestBody , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientWithResponsesInterface_UpdateClientWithResponse_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Run ( func ( args mock . Arguments ) {
2025-03-17 18:14:15 +00:00
variadicArgs := make ( [ ] queryapi . RequestEditorFn , len ( args ) - 3 )
2025-03-11 16:31:06 +00:00
for i , a := range args [ 3 : ] {
if a != nil {
2025-03-17 18:14:15 +00:00
variadicArgs [ i ] = a . ( queryapi . RequestEditorFn )
2025-03-11 16:31:06 +00:00
}
}
2025-05-08 16:04:45 +00:00
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( queryapi . ClientID ) , args [ 2 ] . ( queryapi . UpdateClientJSONRequestBody ) , variadicArgs ... )
2025-03-11 16:31:06 +00:00
} )
return _c
}
2025-03-17 18:14:15 +00:00
func ( _c * MockClientWithResponsesInterface_UpdateClientWithResponse_Call ) Return ( _a0 * queryapi . UpdateClientResponse , _a1 error ) * MockClientWithResponsesInterface_UpdateClientWithResponse_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2025-05-08 16:04:45 +00:00
func ( _c * MockClientWithResponsesInterface_UpdateClientWithResponse_Call ) RunAndReturn ( run func ( context . Context , queryapi . ClientID , queryapi . UpdateClientJSONRequestBody , ... queryapi . RequestEditorFn ) ( * queryapi . UpdateClientResponse , error ) ) * MockClientWithResponsesInterface_UpdateClientWithResponse_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Return ( run )
return _c
}
// UpdateQueryWithBodyWithResponse provides a mock function with given fields: ctx, id, contentType, body, reqEditors
2025-05-08 16:04:45 +00:00
func ( _m * MockClientWithResponsesInterface ) UpdateQueryWithBodyWithResponse ( ctx context . Context , id queryapi . QueryID , contentType string , body io . Reader , reqEditors ... queryapi . RequestEditorFn ) ( * queryapi . UpdateQueryResponse , error ) {
2025-03-11 16:31:06 +00:00
_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" )
}
2025-03-17 18:14:15 +00:00
var r0 * queryapi . UpdateQueryResponse
2025-03-11 16:31:06 +00:00
var r1 error
2025-05-08 16:04:45 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . QueryID , string , io . Reader , ... queryapi . RequestEditorFn ) ( * queryapi . UpdateQueryResponse , error ) ) ; ok {
2025-03-11 16:31:06 +00:00
return rf ( ctx , id , contentType , body , reqEditors ... )
}
2025-05-08 16:04:45 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . QueryID , string , io . Reader , ... queryapi . RequestEditorFn ) * queryapi . UpdateQueryResponse ) ; ok {
2025-03-11 16:31:06 +00:00
r0 = rf ( ctx , id , contentType , body , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
2025-03-17 18:14:15 +00:00
r0 = ret . Get ( 0 ) . ( * queryapi . UpdateQueryResponse )
2025-03-11 16:31:06 +00:00
}
}
2025-05-08 16:04:45 +00:00
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , queryapi . QueryID , string , io . Reader , ... queryapi . RequestEditorFn ) error ) ; ok {
2025-03-11 16:31:06 +00:00
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
2025-05-08 16:04:45 +00:00
// - id queryapi.QueryID
2025-03-11 16:31:06 +00:00
// - contentType string
// - body io.Reader
2025-03-17 18:14:15 +00:00
// - reqEditors ...queryapi.RequestEditorFn
2025-03-11 16:31:06 +00:00
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 ... ) ... ) }
}
2025-05-08 16:04:45 +00:00
func ( _c * MockClientWithResponsesInterface_UpdateQueryWithBodyWithResponse_Call ) Run ( run func ( ctx context . Context , id queryapi . QueryID , contentType string , body io . Reader , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientWithResponsesInterface_UpdateQueryWithBodyWithResponse_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Run ( func ( args mock . Arguments ) {
2025-03-17 18:14:15 +00:00
variadicArgs := make ( [ ] queryapi . RequestEditorFn , len ( args ) - 4 )
2025-03-11 16:31:06 +00:00
for i , a := range args [ 4 : ] {
if a != nil {
2025-03-17 18:14:15 +00:00
variadicArgs [ i ] = a . ( queryapi . RequestEditorFn )
2025-03-11 16:31:06 +00:00
}
}
2025-05-08 16:04:45 +00:00
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( queryapi . QueryID ) , args [ 2 ] . ( string ) , args [ 3 ] . ( io . Reader ) , variadicArgs ... )
2025-03-11 16:31:06 +00:00
} )
return _c
}
2025-03-17 18:14:15 +00:00
func ( _c * MockClientWithResponsesInterface_UpdateQueryWithBodyWithResponse_Call ) Return ( _a0 * queryapi . UpdateQueryResponse , _a1 error ) * MockClientWithResponsesInterface_UpdateQueryWithBodyWithResponse_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2025-05-08 16:04:45 +00:00
func ( _c * MockClientWithResponsesInterface_UpdateQueryWithBodyWithResponse_Call ) RunAndReturn ( run func ( context . Context , queryapi . QueryID , string , io . Reader , ... queryapi . RequestEditorFn ) ( * queryapi . UpdateQueryResponse , error ) ) * MockClientWithResponsesInterface_UpdateQueryWithBodyWithResponse_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Return ( run )
return _c
}
// UpdateQueryWithResponse provides a mock function with given fields: ctx, id, body, reqEditors
2025-05-08 16:04:45 +00:00
func ( _m * MockClientWithResponsesInterface ) UpdateQueryWithResponse ( ctx context . Context , id queryapi . QueryID , body queryapi . UpdateQueryJSONRequestBody , reqEditors ... queryapi . RequestEditorFn ) ( * queryapi . UpdateQueryResponse , error ) {
2025-03-11 16:31:06 +00:00
_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" )
}
2025-03-17 18:14:15 +00:00
var r0 * queryapi . UpdateQueryResponse
2025-03-11 16:31:06 +00:00
var r1 error
2025-05-08 16:04:45 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . QueryID , queryapi . UpdateQueryJSONRequestBody , ... queryapi . RequestEditorFn ) ( * queryapi . UpdateQueryResponse , error ) ) ; ok {
2025-03-11 16:31:06 +00:00
return rf ( ctx , id , body , reqEditors ... )
}
2025-05-08 16:04:45 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . QueryID , queryapi . UpdateQueryJSONRequestBody , ... queryapi . RequestEditorFn ) * queryapi . UpdateQueryResponse ) ; ok {
2025-03-11 16:31:06 +00:00
r0 = rf ( ctx , id , body , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
2025-03-17 18:14:15 +00:00
r0 = ret . Get ( 0 ) . ( * queryapi . UpdateQueryResponse )
2025-03-11 16:31:06 +00:00
}
}
2025-05-08 16:04:45 +00:00
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , queryapi . QueryID , queryapi . UpdateQueryJSONRequestBody , ... queryapi . RequestEditorFn ) error ) ; ok {
2025-03-11 16:31:06 +00:00
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
2025-05-08 16:04:45 +00:00
// - id queryapi.QueryID
// - body queryapi.UpdateQueryJSONRequestBody
2025-03-17 18:14:15 +00:00
// - reqEditors ...queryapi.RequestEditorFn
2025-03-11 16:31:06 +00:00
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 ... ) ... ) }
}
2025-05-08 16:04:45 +00:00
func ( _c * MockClientWithResponsesInterface_UpdateQueryWithResponse_Call ) Run ( run func ( ctx context . Context , id queryapi . QueryID , body queryapi . UpdateQueryJSONRequestBody , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientWithResponsesInterface_UpdateQueryWithResponse_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Run ( func ( args mock . Arguments ) {
2025-03-17 18:14:15 +00:00
variadicArgs := make ( [ ] queryapi . RequestEditorFn , len ( args ) - 3 )
2025-03-11 16:31:06 +00:00
for i , a := range args [ 3 : ] {
if a != nil {
2025-03-17 18:14:15 +00:00
variadicArgs [ i ] = a . ( queryapi . RequestEditorFn )
2025-03-11 16:31:06 +00:00
}
}
2025-05-08 16:04:45 +00:00
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( queryapi . QueryID ) , args [ 2 ] . ( queryapi . UpdateQueryJSONRequestBody ) , variadicArgs ... )
2025-03-11 16:31:06 +00:00
} )
return _c
}
2025-03-17 18:14:15 +00:00
func ( _c * MockClientWithResponsesInterface_UpdateQueryWithResponse_Call ) Return ( _a0 * queryapi . UpdateQueryResponse , _a1 error ) * MockClientWithResponsesInterface_UpdateQueryWithResponse_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2025-05-08 16:04:45 +00:00
func ( _c * MockClientWithResponsesInterface_UpdateQueryWithResponse_Call ) RunAndReturn ( run func ( context . Context , queryapi . QueryID , queryapi . UpdateQueryJSONRequestBody , ... queryapi . RequestEditorFn ) ( * queryapi . UpdateQueryResponse , error ) ) * MockClientWithResponsesInterface_UpdateQueryWithResponse_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Return ( run )
return _c
}
2025-08-05 07:03:35 -07:00
// UploadDocumentBatchWithBodyWithResponse provides a mock function with given fields: ctx, id, contentType, body, reqEditors
func ( _m * MockClientWithResponsesInterface ) UploadDocumentBatchWithBodyWithResponse ( ctx context . Context , id queryapi . ClientID , contentType string , body io . Reader , reqEditors ... queryapi . RequestEditorFn ) ( * queryapi . UploadDocumentBatchResponse , 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 UploadDocumentBatchWithBodyWithResponse" )
}
var r0 * queryapi . UploadDocumentBatchResponse
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . ClientID , string , io . Reader , ... queryapi . RequestEditorFn ) ( * queryapi . UploadDocumentBatchResponse , error ) ) ; ok {
return rf ( ctx , id , contentType , body , reqEditors ... )
}
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . ClientID , string , io . Reader , ... queryapi . RequestEditorFn ) * queryapi . UploadDocumentBatchResponse ) ; ok {
r0 = rf ( ctx , id , contentType , body , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * queryapi . UploadDocumentBatchResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , queryapi . ClientID , string , io . Reader , ... queryapi . RequestEditorFn ) error ) ; ok {
r1 = rf ( ctx , id , contentType , body , reqEditors ... )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// MockClientWithResponsesInterface_UploadDocumentBatchWithBodyWithResponse_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UploadDocumentBatchWithBodyWithResponse'
type MockClientWithResponsesInterface_UploadDocumentBatchWithBodyWithResponse_Call struct {
* mock . Call
}
// UploadDocumentBatchWithBodyWithResponse is a helper method to define mock.On call
// - ctx context.Context
// - id queryapi.ClientID
// - contentType string
// - body io.Reader
// - reqEditors ...queryapi.RequestEditorFn
func ( _e * MockClientWithResponsesInterface_Expecter ) UploadDocumentBatchWithBodyWithResponse ( ctx interface { } , id interface { } , contentType interface { } , body interface { } , reqEditors ... interface { } ) * MockClientWithResponsesInterface_UploadDocumentBatchWithBodyWithResponse_Call {
return & MockClientWithResponsesInterface_UploadDocumentBatchWithBodyWithResponse_Call { Call : _e . mock . On ( "UploadDocumentBatchWithBodyWithResponse" ,
append ( [ ] interface { } { ctx , id , contentType , body } , reqEditors ... ) ... ) }
}
func ( _c * MockClientWithResponsesInterface_UploadDocumentBatchWithBodyWithResponse_Call ) Run ( run func ( ctx context . Context , id queryapi . ClientID , contentType string , body io . Reader , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientWithResponsesInterface_UploadDocumentBatchWithBodyWithResponse_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 ] . ( queryapi . ClientID ) , args [ 2 ] . ( string ) , args [ 3 ] . ( io . Reader ) , variadicArgs ... )
} )
return _c
}
func ( _c * MockClientWithResponsesInterface_UploadDocumentBatchWithBodyWithResponse_Call ) Return ( _a0 * queryapi . UploadDocumentBatchResponse , _a1 error ) * MockClientWithResponsesInterface_UploadDocumentBatchWithBodyWithResponse_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
func ( _c * MockClientWithResponsesInterface_UploadDocumentBatchWithBodyWithResponse_Call ) RunAndReturn ( run func ( context . Context , queryapi . ClientID , string , io . Reader , ... queryapi . RequestEditorFn ) ( * queryapi . UploadDocumentBatchResponse , error ) ) * MockClientWithResponsesInterface_UploadDocumentBatchWithBodyWithResponse_Call {
_c . Call . Return ( run )
return _c
}
2025-05-27 15:28:46 +00:00
// UploadDocumentWithBodyWithResponse provides a mock function with given fields: ctx, id, contentType, body, reqEditors
func ( _m * MockClientWithResponsesInterface ) UploadDocumentWithBodyWithResponse ( ctx context . Context , id queryapi . ClientID , contentType string , body io . Reader , reqEditors ... queryapi . RequestEditorFn ) ( * queryapi . UploadDocumentResponse , 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 UploadDocumentWithBodyWithResponse" )
}
var r0 * queryapi . UploadDocumentResponse
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . ClientID , string , io . Reader , ... queryapi . RequestEditorFn ) ( * queryapi . UploadDocumentResponse , error ) ) ; ok {
return rf ( ctx , id , contentType , body , reqEditors ... )
}
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . ClientID , string , io . Reader , ... queryapi . RequestEditorFn ) * queryapi . UploadDocumentResponse ) ; ok {
r0 = rf ( ctx , id , contentType , body , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * queryapi . UploadDocumentResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , queryapi . ClientID , string , io . Reader , ... queryapi . RequestEditorFn ) error ) ; ok {
r1 = rf ( ctx , id , contentType , body , reqEditors ... )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// MockClientWithResponsesInterface_UploadDocumentWithBodyWithResponse_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UploadDocumentWithBodyWithResponse'
type MockClientWithResponsesInterface_UploadDocumentWithBodyWithResponse_Call struct {
* mock . Call
}
// UploadDocumentWithBodyWithResponse is a helper method to define mock.On call
// - ctx context.Context
// - id queryapi.ClientID
// - contentType string
// - body io.Reader
// - reqEditors ...queryapi.RequestEditorFn
func ( _e * MockClientWithResponsesInterface_Expecter ) UploadDocumentWithBodyWithResponse ( ctx interface { } , id interface { } , contentType interface { } , body interface { } , reqEditors ... interface { } ) * MockClientWithResponsesInterface_UploadDocumentWithBodyWithResponse_Call {
return & MockClientWithResponsesInterface_UploadDocumentWithBodyWithResponse_Call { Call : _e . mock . On ( "UploadDocumentWithBodyWithResponse" ,
append ( [ ] interface { } { ctx , id , contentType , body } , reqEditors ... ) ... ) }
}
func ( _c * MockClientWithResponsesInterface_UploadDocumentWithBodyWithResponse_Call ) Run ( run func ( ctx context . Context , id queryapi . ClientID , contentType string , body io . Reader , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientWithResponsesInterface_UploadDocumentWithBodyWithResponse_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 ] . ( queryapi . ClientID ) , args [ 2 ] . ( string ) , args [ 3 ] . ( io . Reader ) , variadicArgs ... )
} )
return _c
}
func ( _c * MockClientWithResponsesInterface_UploadDocumentWithBodyWithResponse_Call ) Return ( _a0 * queryapi . UploadDocumentResponse , _a1 error ) * MockClientWithResponsesInterface_UploadDocumentWithBodyWithResponse_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
func ( _c * MockClientWithResponsesInterface_UploadDocumentWithBodyWithResponse_Call ) RunAndReturn ( run func ( context . Context , queryapi . ClientID , string , io . Reader , ... queryapi . RequestEditorFn ) ( * queryapi . UploadDocumentResponse , error ) ) * MockClientWithResponsesInterface_UploadDocumentWithBodyWithResponse_Call {
_c . Call . Return ( run )
return _c
}
2025-03-11 16:31:06 +00:00
// 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
}