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"
http "net/http"
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
)
// MockClientInterface is an autogenerated mock type for the ClientInterface type
type MockClientInterface struct {
mock . Mock
}
type MockClientInterface_Expecter struct {
mock * mock . Mock
}
func ( _m * MockClientInterface ) EXPECT ( ) * MockClientInterface_Expecter {
return & MockClientInterface_Expecter { mock : & _m . Mock }
}
2025-08-05 07:03:35 -07:00
// CancelDocumentBatch provides a mock function with given fields: ctx, id, batchId, reqEditors
func ( _m * MockClientInterface ) CancelDocumentBatch ( ctx context . Context , id queryapi . ClientID , batchId queryapi . BatchID , reqEditors ... queryapi . RequestEditorFn ) ( * http . Response , 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 CancelDocumentBatch" )
}
var r0 * http . Response
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . ClientID , queryapi . BatchID , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) ; ok {
return rf ( ctx , id , batchId , reqEditors ... )
}
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . ClientID , queryapi . BatchID , ... queryapi . RequestEditorFn ) * http . Response ) ; ok {
r0 = rf ( ctx , id , batchId , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * http . Response )
}
}
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
}
// MockClientInterface_CancelDocumentBatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CancelDocumentBatch'
type MockClientInterface_CancelDocumentBatch_Call struct {
* mock . Call
}
// CancelDocumentBatch is a helper method to define mock.On call
// - ctx context.Context
// - id queryapi.ClientID
// - batchId queryapi.BatchID
// - reqEditors ...queryapi.RequestEditorFn
func ( _e * MockClientInterface_Expecter ) CancelDocumentBatch ( ctx interface { } , id interface { } , batchId interface { } , reqEditors ... interface { } ) * MockClientInterface_CancelDocumentBatch_Call {
return & MockClientInterface_CancelDocumentBatch_Call { Call : _e . mock . On ( "CancelDocumentBatch" ,
append ( [ ] interface { } { ctx , id , batchId } , reqEditors ... ) ... ) }
}
func ( _c * MockClientInterface_CancelDocumentBatch_Call ) Run ( run func ( ctx context . Context , id queryapi . ClientID , batchId queryapi . BatchID , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientInterface_CancelDocumentBatch_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 * MockClientInterface_CancelDocumentBatch_Call ) Return ( _a0 * http . Response , _a1 error ) * MockClientInterface_CancelDocumentBatch_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
func ( _c * MockClientInterface_CancelDocumentBatch_Call ) RunAndReturn ( run func ( context . Context , queryapi . ClientID , queryapi . BatchID , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) * MockClientInterface_CancelDocumentBatch_Call {
_c . Call . Return ( run )
return _c
}
2025-10-23 22:57:15 +00:00
// CheckAdminUserExists provides a mock function with given fields: ctx, email, reqEditors
func ( _m * MockClientInterface ) CheckAdminUserExists ( ctx context . Context , email queryapi . UserEmail , reqEditors ... queryapi . RequestEditorFn ) ( * http . Response , error ) {
_va := make ( [ ] interface { } , len ( reqEditors ) )
for _i := range reqEditors {
_va [ _i ] = reqEditors [ _i ]
}
var _ca [ ] interface { }
_ca = append ( _ca , ctx , email )
_ca = append ( _ca , _va ... )
ret := _m . Called ( _ca ... )
if len ( ret ) == 0 {
panic ( "no return value specified for CheckAdminUserExists" )
}
var r0 * http . Response
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . UserEmail , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) ; ok {
return rf ( ctx , email , reqEditors ... )
}
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . UserEmail , ... queryapi . RequestEditorFn ) * http . Response ) ; ok {
r0 = rf ( ctx , email , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * http . Response )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , queryapi . UserEmail , ... queryapi . RequestEditorFn ) error ) ; ok {
r1 = rf ( ctx , email , reqEditors ... )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// MockClientInterface_CheckAdminUserExists_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CheckAdminUserExists'
type MockClientInterface_CheckAdminUserExists_Call struct {
* mock . Call
}
// CheckAdminUserExists is a helper method to define mock.On call
// - ctx context.Context
// - email queryapi.UserEmail
// - reqEditors ...queryapi.RequestEditorFn
func ( _e * MockClientInterface_Expecter ) CheckAdminUserExists ( ctx interface { } , email interface { } , reqEditors ... interface { } ) * MockClientInterface_CheckAdminUserExists_Call {
return & MockClientInterface_CheckAdminUserExists_Call { Call : _e . mock . On ( "CheckAdminUserExists" ,
append ( [ ] interface { } { ctx , email } , reqEditors ... ) ... ) }
}
func ( _c * MockClientInterface_CheckAdminUserExists_Call ) Run ( run func ( ctx context . Context , email queryapi . UserEmail , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientInterface_CheckAdminUserExists_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 . UserEmail ) , variadicArgs ... )
} )
return _c
}
func ( _c * MockClientInterface_CheckAdminUserExists_Call ) Return ( _a0 * http . Response , _a1 error ) * MockClientInterface_CheckAdminUserExists_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
func ( _c * MockClientInterface_CheckAdminUserExists_Call ) RunAndReturn ( run func ( context . Context , queryapi . UserEmail , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) * MockClientInterface_CheckAdminUserExists_Call {
_c . Call . Return ( run )
return _c
}
// CreateAdminUser provides a mock function with given fields: ctx, body, reqEditors
func ( _m * MockClientInterface ) CreateAdminUser ( ctx context . Context , body queryapi . CreateAdminUserJSONRequestBody , reqEditors ... queryapi . RequestEditorFn ) ( * http . Response , error ) {
_va := make ( [ ] interface { } , len ( reqEditors ) )
for _i := range reqEditors {
_va [ _i ] = reqEditors [ _i ]
}
var _ca [ ] interface { }
_ca = append ( _ca , ctx , body )
_ca = append ( _ca , _va ... )
ret := _m . Called ( _ca ... )
if len ( ret ) == 0 {
panic ( "no return value specified for CreateAdminUser" )
}
var r0 * http . Response
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . CreateAdminUserJSONRequestBody , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) ; ok {
return rf ( ctx , body , reqEditors ... )
}
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . CreateAdminUserJSONRequestBody , ... queryapi . RequestEditorFn ) * http . Response ) ; ok {
r0 = rf ( ctx , body , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * http . Response )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , queryapi . CreateAdminUserJSONRequestBody , ... queryapi . RequestEditorFn ) error ) ; ok {
r1 = rf ( ctx , body , reqEditors ... )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// MockClientInterface_CreateAdminUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateAdminUser'
type MockClientInterface_CreateAdminUser_Call struct {
* mock . Call
}
// CreateAdminUser is a helper method to define mock.On call
// - ctx context.Context
// - body queryapi.CreateAdminUserJSONRequestBody
// - reqEditors ...queryapi.RequestEditorFn
func ( _e * MockClientInterface_Expecter ) CreateAdminUser ( ctx interface { } , body interface { } , reqEditors ... interface { } ) * MockClientInterface_CreateAdminUser_Call {
return & MockClientInterface_CreateAdminUser_Call { Call : _e . mock . On ( "CreateAdminUser" ,
append ( [ ] interface { } { ctx , body } , reqEditors ... ) ... ) }
}
func ( _c * MockClientInterface_CreateAdminUser_Call ) Run ( run func ( ctx context . Context , body queryapi . CreateAdminUserJSONRequestBody , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientInterface_CreateAdminUser_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 . CreateAdminUserJSONRequestBody ) , variadicArgs ... )
} )
return _c
}
func ( _c * MockClientInterface_CreateAdminUser_Call ) Return ( _a0 * http . Response , _a1 error ) * MockClientInterface_CreateAdminUser_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
func ( _c * MockClientInterface_CreateAdminUser_Call ) RunAndReturn ( run func ( context . Context , queryapi . CreateAdminUserJSONRequestBody , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) * MockClientInterface_CreateAdminUser_Call {
_c . Call . Return ( run )
return _c
}
// CreateAdminUserWithBody provides a mock function with given fields: ctx, contentType, body, reqEditors
func ( _m * MockClientInterface ) CreateAdminUserWithBody ( ctx context . Context , contentType string , body io . Reader , reqEditors ... queryapi . RequestEditorFn ) ( * http . Response , error ) {
_va := make ( [ ] interface { } , len ( reqEditors ) )
for _i := range reqEditors {
_va [ _i ] = reqEditors [ _i ]
}
var _ca [ ] interface { }
_ca = append ( _ca , ctx , contentType , body )
_ca = append ( _ca , _va ... )
ret := _m . Called ( _ca ... )
if len ( ret ) == 0 {
panic ( "no return value specified for CreateAdminUserWithBody" )
}
var r0 * http . Response
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , string , io . Reader , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) ; ok {
return rf ( ctx , contentType , body , reqEditors ... )
}
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , string , io . Reader , ... queryapi . RequestEditorFn ) * http . Response ) ; ok {
r0 = rf ( ctx , contentType , body , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * http . Response )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , string , io . Reader , ... queryapi . RequestEditorFn ) error ) ; ok {
r1 = rf ( ctx , contentType , body , reqEditors ... )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// MockClientInterface_CreateAdminUserWithBody_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateAdminUserWithBody'
type MockClientInterface_CreateAdminUserWithBody_Call struct {
* mock . Call
}
// CreateAdminUserWithBody is a helper method to define mock.On call
// - ctx context.Context
// - contentType string
// - body io.Reader
// - reqEditors ...queryapi.RequestEditorFn
func ( _e * MockClientInterface_Expecter ) CreateAdminUserWithBody ( ctx interface { } , contentType interface { } , body interface { } , reqEditors ... interface { } ) * MockClientInterface_CreateAdminUserWithBody_Call {
return & MockClientInterface_CreateAdminUserWithBody_Call { Call : _e . mock . On ( "CreateAdminUserWithBody" ,
append ( [ ] interface { } { ctx , contentType , body } , reqEditors ... ) ... ) }
}
func ( _c * MockClientInterface_CreateAdminUserWithBody_Call ) Run ( run func ( ctx context . Context , contentType string , body io . Reader , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientInterface_CreateAdminUserWithBody_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
variadicArgs := make ( [ ] queryapi . RequestEditorFn , len ( args ) - 3 )
for i , a := range args [ 3 : ] {
if a != nil {
variadicArgs [ i ] = a . ( queryapi . RequestEditorFn )
}
}
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( string ) , args [ 2 ] . ( io . Reader ) , variadicArgs ... )
} )
return _c
}
func ( _c * MockClientInterface_CreateAdminUserWithBody_Call ) Return ( _a0 * http . Response , _a1 error ) * MockClientInterface_CreateAdminUserWithBody_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
func ( _c * MockClientInterface_CreateAdminUserWithBody_Call ) RunAndReturn ( run func ( context . Context , string , io . Reader , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) * MockClientInterface_CreateAdminUserWithBody_Call {
_c . Call . Return ( run )
return _c
}
2025-03-11 16:31:06 +00:00
// CreateClient provides a mock function with given fields: ctx, body, reqEditors
2025-05-08 16:04:45 +00:00
func ( _m * MockClientInterface ) CreateClient ( ctx context . Context , body queryapi . CreateClientJSONRequestBody , reqEditors ... queryapi . RequestEditorFn ) ( * http . Response , 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 CreateClient" )
}
var r0 * http . Response
var r1 error
2025-05-08 16:04:45 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . CreateClientJSONRequestBody , ... queryapi . RequestEditorFn ) ( * http . Response , 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 ) * http . Response ) ; ok {
2025-03-11 16:31:06 +00:00
r0 = rf ( ctx , body , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * http . Response )
}
}
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
}
// MockClientInterface_CreateClient_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateClient'
type MockClientInterface_CreateClient_Call struct {
* mock . Call
}
// CreateClient 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 * MockClientInterface_Expecter ) CreateClient ( ctx interface { } , body interface { } , reqEditors ... interface { } ) * MockClientInterface_CreateClient_Call {
return & MockClientInterface_CreateClient_Call { Call : _e . mock . On ( "CreateClient" ,
append ( [ ] interface { } { ctx , body } , reqEditors ... ) ... ) }
}
2025-05-08 16:04:45 +00:00
func ( _c * MockClientInterface_CreateClient_Call ) Run ( run func ( ctx context . Context , body queryapi . CreateClientJSONRequestBody , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientInterface_CreateClient_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
}
func ( _c * MockClientInterface_CreateClient_Call ) Return ( _a0 * http . Response , _a1 error ) * MockClientInterface_CreateClient_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2025-05-08 16:04:45 +00:00
func ( _c * MockClientInterface_CreateClient_Call ) RunAndReturn ( run func ( context . Context , queryapi . CreateClientJSONRequestBody , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) * MockClientInterface_CreateClient_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Return ( run )
return _c
}
// CreateClientWithBody provides a mock function with given fields: ctx, contentType, body, reqEditors
2025-03-17 18:14:15 +00:00
func ( _m * MockClientInterface ) CreateClientWithBody ( ctx context . Context , contentType string , body io . Reader , reqEditors ... queryapi . RequestEditorFn ) ( * http . Response , 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 CreateClientWithBody" )
}
var r0 * http . Response
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 ) ( * http . Response , 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 ) * http . Response ) ; ok {
2025-03-11 16:31:06 +00:00
r0 = rf ( ctx , contentType , body , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * http . Response )
}
}
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
}
// MockClientInterface_CreateClientWithBody_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateClientWithBody'
type MockClientInterface_CreateClientWithBody_Call struct {
* mock . Call
}
// CreateClientWithBody 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 * MockClientInterface_Expecter ) CreateClientWithBody ( ctx interface { } , contentType interface { } , body interface { } , reqEditors ... interface { } ) * MockClientInterface_CreateClientWithBody_Call {
return & MockClientInterface_CreateClientWithBody_Call { Call : _e . mock . On ( "CreateClientWithBody" ,
append ( [ ] interface { } { ctx , contentType , body } , reqEditors ... ) ... ) }
}
2025-03-17 18:14:15 +00:00
func ( _c * MockClientInterface_CreateClientWithBody_Call ) Run ( run func ( ctx context . Context , contentType string , body io . Reader , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientInterface_CreateClientWithBody_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
}
func ( _c * MockClientInterface_CreateClientWithBody_Call ) Return ( _a0 * http . Response , _a1 error ) * MockClientInterface_CreateClientWithBody_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2025-10-23 22:57:15 +00:00
func ( _c * MockClientInterface_CreateClientWithBody_Call ) RunAndReturn ( run func ( context . Context , string , io . Reader , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) * MockClientInterface_CreateClientWithBody_Call {
_c . Call . Return ( run )
return _c
}
// CreateQuery provides a mock function with given fields: ctx, body, reqEditors
func ( _m * MockClientInterface ) CreateQuery ( ctx context . Context , body queryapi . CreateQueryJSONRequestBody , reqEditors ... queryapi . RequestEditorFn ) ( * http . Response , error ) {
_va := make ( [ ] interface { } , len ( reqEditors ) )
for _i := range reqEditors {
_va [ _i ] = reqEditors [ _i ]
}
var _ca [ ] interface { }
_ca = append ( _ca , ctx , body )
_ca = append ( _ca , _va ... )
ret := _m . Called ( _ca ... )
if len ( ret ) == 0 {
panic ( "no return value specified for CreateQuery" )
}
var r0 * http . Response
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . CreateQueryJSONRequestBody , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) ; ok {
return rf ( ctx , body , reqEditors ... )
}
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . CreateQueryJSONRequestBody , ... queryapi . RequestEditorFn ) * http . Response ) ; ok {
r0 = rf ( ctx , body , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * http . Response )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , queryapi . CreateQueryJSONRequestBody , ... queryapi . RequestEditorFn ) error ) ; ok {
r1 = rf ( ctx , body , reqEditors ... )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// MockClientInterface_CreateQuery_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateQuery'
type MockClientInterface_CreateQuery_Call struct {
* mock . Call
}
// CreateQuery is a helper method to define mock.On call
// - ctx context.Context
// - body queryapi.CreateQueryJSONRequestBody
// - reqEditors ...queryapi.RequestEditorFn
func ( _e * MockClientInterface_Expecter ) CreateQuery ( ctx interface { } , body interface { } , reqEditors ... interface { } ) * MockClientInterface_CreateQuery_Call {
return & MockClientInterface_CreateQuery_Call { Call : _e . mock . On ( "CreateQuery" ,
append ( [ ] interface { } { ctx , body } , reqEditors ... ) ... ) }
}
func ( _c * MockClientInterface_CreateQuery_Call ) Run ( run func ( ctx context . Context , body queryapi . CreateQueryJSONRequestBody , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientInterface_CreateQuery_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 . CreateQueryJSONRequestBody ) , variadicArgs ... )
} )
return _c
}
func ( _c * MockClientInterface_CreateQuery_Call ) Return ( _a0 * http . Response , _a1 error ) * MockClientInterface_CreateQuery_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
func ( _c * MockClientInterface_CreateQuery_Call ) RunAndReturn ( run func ( context . Context , queryapi . CreateQueryJSONRequestBody , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) * MockClientInterface_CreateQuery_Call {
_c . Call . Return ( run )
return _c
}
// CreateQueryWithBody provides a mock function with given fields: ctx, contentType, body, reqEditors
func ( _m * MockClientInterface ) CreateQueryWithBody ( ctx context . Context , contentType string , body io . Reader , reqEditors ... queryapi . RequestEditorFn ) ( * http . Response , error ) {
_va := make ( [ ] interface { } , len ( reqEditors ) )
for _i := range reqEditors {
_va [ _i ] = reqEditors [ _i ]
}
var _ca [ ] interface { }
_ca = append ( _ca , ctx , contentType , body )
_ca = append ( _ca , _va ... )
ret := _m . Called ( _ca ... )
if len ( ret ) == 0 {
panic ( "no return value specified for CreateQueryWithBody" )
}
var r0 * http . Response
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , string , io . Reader , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) ; ok {
return rf ( ctx , contentType , body , reqEditors ... )
}
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , string , io . Reader , ... queryapi . RequestEditorFn ) * http . Response ) ; ok {
r0 = rf ( ctx , contentType , body , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * http . Response )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , string , io . Reader , ... queryapi . RequestEditorFn ) error ) ; ok {
r1 = rf ( ctx , contentType , body , reqEditors ... )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// MockClientInterface_CreateQueryWithBody_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateQueryWithBody'
type MockClientInterface_CreateQueryWithBody_Call struct {
* mock . Call
}
// CreateQueryWithBody is a helper method to define mock.On call
// - ctx context.Context
// - contentType string
// - body io.Reader
// - reqEditors ...queryapi.RequestEditorFn
func ( _e * MockClientInterface_Expecter ) CreateQueryWithBody ( ctx interface { } , contentType interface { } , body interface { } , reqEditors ... interface { } ) * MockClientInterface_CreateQueryWithBody_Call {
return & MockClientInterface_CreateQueryWithBody_Call { Call : _e . mock . On ( "CreateQueryWithBody" ,
append ( [ ] interface { } { ctx , contentType , body } , reqEditors ... ) ... ) }
}
func ( _c * MockClientInterface_CreateQueryWithBody_Call ) Run ( run func ( ctx context . Context , contentType string , body io . Reader , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientInterface_CreateQueryWithBody_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
variadicArgs := make ( [ ] queryapi . RequestEditorFn , len ( args ) - 3 )
for i , a := range args [ 3 : ] {
if a != nil {
variadicArgs [ i ] = a . ( queryapi . RequestEditorFn )
}
}
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( string ) , args [ 2 ] . ( io . Reader ) , variadicArgs ... )
} )
return _c
}
func ( _c * MockClientInterface_CreateQueryWithBody_Call ) Return ( _a0 * http . Response , _a1 error ) * MockClientInterface_CreateQueryWithBody_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
func ( _c * MockClientInterface_CreateQueryWithBody_Call ) RunAndReturn ( run func ( context . Context , string , io . Reader , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) * MockClientInterface_CreateQueryWithBody_Call {
_c . Call . Return ( run )
return _c
}
// DeleteAdminUser provides a mock function with given fields: ctx, email, params, reqEditors
func ( _m * MockClientInterface ) DeleteAdminUser ( ctx context . Context , email queryapi . UserEmail , params * queryapi . DeleteAdminUserParams , reqEditors ... queryapi . RequestEditorFn ) ( * http . Response , error ) {
_va := make ( [ ] interface { } , len ( reqEditors ) )
for _i := range reqEditors {
_va [ _i ] = reqEditors [ _i ]
}
var _ca [ ] interface { }
_ca = append ( _ca , ctx , email , params )
_ca = append ( _ca , _va ... )
ret := _m . Called ( _ca ... )
if len ( ret ) == 0 {
panic ( "no return value specified for DeleteAdminUser" )
}
var r0 * http . Response
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . UserEmail , * queryapi . DeleteAdminUserParams , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) ; ok {
return rf ( ctx , email , params , reqEditors ... )
}
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . UserEmail , * queryapi . DeleteAdminUserParams , ... queryapi . RequestEditorFn ) * http . Response ) ; ok {
r0 = rf ( ctx , email , params , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * http . Response )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , queryapi . UserEmail , * queryapi . DeleteAdminUserParams , ... queryapi . RequestEditorFn ) error ) ; ok {
r1 = rf ( ctx , email , params , reqEditors ... )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// MockClientInterface_DeleteAdminUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteAdminUser'
type MockClientInterface_DeleteAdminUser_Call struct {
* mock . Call
}
// DeleteAdminUser is a helper method to define mock.On call
// - ctx context.Context
// - email queryapi.UserEmail
// - params *queryapi.DeleteAdminUserParams
// - reqEditors ...queryapi.RequestEditorFn
func ( _e * MockClientInterface_Expecter ) DeleteAdminUser ( ctx interface { } , email interface { } , params interface { } , reqEditors ... interface { } ) * MockClientInterface_DeleteAdminUser_Call {
return & MockClientInterface_DeleteAdminUser_Call { Call : _e . mock . On ( "DeleteAdminUser" ,
append ( [ ] interface { } { ctx , email , params } , reqEditors ... ) ... ) }
}
func ( _c * MockClientInterface_DeleteAdminUser_Call ) Run ( run func ( ctx context . Context , email queryapi . UserEmail , params * queryapi . DeleteAdminUserParams , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientInterface_DeleteAdminUser_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 . UserEmail ) , args [ 2 ] . ( * queryapi . DeleteAdminUserParams ) , variadicArgs ... )
} )
return _c
}
func ( _c * MockClientInterface_DeleteAdminUser_Call ) Return ( _a0 * http . Response , _a1 error ) * MockClientInterface_DeleteAdminUser_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
func ( _c * MockClientInterface_DeleteAdminUser_Call ) RunAndReturn ( run func ( context . Context , queryapi . UserEmail , * queryapi . DeleteAdminUserParams , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) * MockClientInterface_DeleteAdminUser_Call {
_c . Call . Return ( run )
return _c
}
// DisableAdminUser provides a mock function with given fields: ctx, email, reqEditors
func ( _m * MockClientInterface ) DisableAdminUser ( ctx context . Context , email queryapi . UserEmail , reqEditors ... queryapi . RequestEditorFn ) ( * http . Response , error ) {
_va := make ( [ ] interface { } , len ( reqEditors ) )
for _i := range reqEditors {
_va [ _i ] = reqEditors [ _i ]
}
var _ca [ ] interface { }
_ca = append ( _ca , ctx , email )
_ca = append ( _ca , _va ... )
ret := _m . Called ( _ca ... )
if len ( ret ) == 0 {
panic ( "no return value specified for DisableAdminUser" )
}
var r0 * http . Response
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . UserEmail , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) ; ok {
return rf ( ctx , email , reqEditors ... )
}
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . UserEmail , ... queryapi . RequestEditorFn ) * http . Response ) ; ok {
r0 = rf ( ctx , email , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * http . Response )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , queryapi . UserEmail , ... queryapi . RequestEditorFn ) error ) ; ok {
r1 = rf ( ctx , email , reqEditors ... )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// MockClientInterface_DisableAdminUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DisableAdminUser'
type MockClientInterface_DisableAdminUser_Call struct {
* mock . Call
}
// DisableAdminUser is a helper method to define mock.On call
// - ctx context.Context
// - email queryapi.UserEmail
// - reqEditors ...queryapi.RequestEditorFn
func ( _e * MockClientInterface_Expecter ) DisableAdminUser ( ctx interface { } , email interface { } , reqEditors ... interface { } ) * MockClientInterface_DisableAdminUser_Call {
return & MockClientInterface_DisableAdminUser_Call { Call : _e . mock . On ( "DisableAdminUser" ,
append ( [ ] interface { } { ctx , email } , reqEditors ... ) ... ) }
}
func ( _c * MockClientInterface_DisableAdminUser_Call ) Run ( run func ( ctx context . Context , email queryapi . UserEmail , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientInterface_DisableAdminUser_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 . UserEmail ) , variadicArgs ... )
} )
return _c
}
func ( _c * MockClientInterface_DisableAdminUser_Call ) Return ( _a0 * http . Response , _a1 error ) * MockClientInterface_DisableAdminUser_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
func ( _c * MockClientInterface_DisableAdminUser_Call ) RunAndReturn ( run func ( context . Context , queryapi . UserEmail , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) * MockClientInterface_DisableAdminUser_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Return ( run )
return _c
}
2025-10-23 22:57:15 +00:00
// EnableAdminUser provides a mock function with given fields: ctx, email, reqEditors
func ( _m * MockClientInterface ) EnableAdminUser ( ctx context . Context , email queryapi . UserEmail , reqEditors ... queryapi . RequestEditorFn ) ( * http . Response , 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 { }
2025-10-23 22:57:15 +00:00
_ca = append ( _ca , ctx , email )
2025-03-11 16:31:06 +00:00
_ca = append ( _ca , _va ... )
ret := _m . Called ( _ca ... )
if len ( ret ) == 0 {
2025-10-23 22:57:15 +00:00
panic ( "no return value specified for EnableAdminUser" )
2025-03-11 16:31:06 +00:00
}
var r0 * http . Response
var r1 error
2025-10-23 22:57:15 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . UserEmail , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) ; ok {
return rf ( ctx , email , reqEditors ... )
2025-03-11 16:31:06 +00:00
}
2025-10-23 22:57:15 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . UserEmail , ... queryapi . RequestEditorFn ) * http . Response ) ; ok {
r0 = rf ( ctx , email , reqEditors ... )
2025-03-11 16:31:06 +00:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * http . Response )
}
}
2025-10-23 22:57:15 +00:00
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , queryapi . UserEmail , ... queryapi . RequestEditorFn ) error ) ; ok {
r1 = rf ( ctx , email , reqEditors ... )
2025-03-11 16:31:06 +00:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2025-10-23 22:57:15 +00:00
// MockClientInterface_EnableAdminUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EnableAdminUser'
type MockClientInterface_EnableAdminUser_Call struct {
2025-03-11 16:31:06 +00:00
* mock . Call
}
2025-10-23 22:57:15 +00:00
// EnableAdminUser is a helper method to define mock.On call
2025-03-11 16:31:06 +00:00
// - ctx context.Context
2025-10-23 22:57:15 +00:00
// - email queryapi.UserEmail
2025-03-17 18:14:15 +00:00
// - reqEditors ...queryapi.RequestEditorFn
2025-10-23 22:57:15 +00:00
func ( _e * MockClientInterface_Expecter ) EnableAdminUser ( ctx interface { } , email interface { } , reqEditors ... interface { } ) * MockClientInterface_EnableAdminUser_Call {
return & MockClientInterface_EnableAdminUser_Call { Call : _e . mock . On ( "EnableAdminUser" ,
append ( [ ] interface { } { ctx , email } , reqEditors ... ) ... ) }
2025-03-11 16:31:06 +00:00
}
2025-10-23 22:57:15 +00:00
func ( _c * MockClientInterface_EnableAdminUser_Call ) Run ( run func ( ctx context . Context , email queryapi . UserEmail , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientInterface_EnableAdminUser_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-10-23 22:57:15 +00:00
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( queryapi . UserEmail ) , variadicArgs ... )
2025-03-11 16:31:06 +00:00
} )
return _c
}
2025-10-23 22:57:15 +00:00
func ( _c * MockClientInterface_EnableAdminUser_Call ) Return ( _a0 * http . Response , _a1 error ) * MockClientInterface_EnableAdminUser_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2025-10-23 22:57:15 +00:00
func ( _c * MockClientInterface_EnableAdminUser_Call ) RunAndReturn ( run func ( context . Context , queryapi . UserEmail , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) * MockClientInterface_EnableAdminUser_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Return ( run )
return _c
}
2025-10-23 22:57:15 +00:00
// ExportState provides a mock function with given fields: ctx, id, reqEditors
func ( _m * MockClientInterface ) ExportState ( ctx context . Context , id queryapi . ExportID , reqEditors ... queryapi . RequestEditorFn ) ( * http . Response , 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 { }
2025-10-23 22:57:15 +00:00
_ca = append ( _ca , ctx , id )
2025-03-11 16:31:06 +00:00
_ca = append ( _ca , _va ... )
ret := _m . Called ( _ca ... )
if len ( ret ) == 0 {
2025-10-23 22:57:15 +00:00
panic ( "no return value specified for ExportState" )
2025-03-11 16:31:06 +00:00
}
var r0 * http . Response
var r1 error
2025-10-23 22:57:15 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . ExportID , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) ; ok {
return rf ( ctx , id , reqEditors ... )
2025-03-11 16:31:06 +00:00
}
2025-10-23 22:57:15 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . ExportID , ... queryapi . RequestEditorFn ) * http . Response ) ; ok {
r0 = rf ( ctx , id , reqEditors ... )
2025-03-11 16:31:06 +00:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * http . Response )
}
}
2025-10-23 22:57:15 +00:00
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , queryapi . ExportID , ... queryapi . RequestEditorFn ) error ) ; ok {
r1 = rf ( ctx , id , reqEditors ... )
2025-03-11 16:31:06 +00:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2025-10-23 22:57:15 +00:00
// MockClientInterface_ExportState_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ExportState'
type MockClientInterface_ExportState_Call struct {
2025-03-11 16:31:06 +00:00
* mock . Call
}
2025-10-23 22:57:15 +00:00
// ExportState is a helper method to define mock.On call
2025-03-11 16:31:06 +00:00
// - ctx context.Context
2025-10-23 22:57:15 +00:00
// - id queryapi.ExportID
2025-03-17 18:14:15 +00:00
// - reqEditors ...queryapi.RequestEditorFn
2025-10-23 22:57:15 +00:00
func ( _e * MockClientInterface_Expecter ) ExportState ( ctx interface { } , id interface { } , reqEditors ... interface { } ) * MockClientInterface_ExportState_Call {
return & MockClientInterface_ExportState_Call { Call : _e . mock . On ( "ExportState" ,
append ( [ ] interface { } { ctx , id } , reqEditors ... ) ... ) }
2025-03-11 16:31:06 +00:00
}
2025-10-23 22:57:15 +00:00
func ( _c * MockClientInterface_ExportState_Call ) Run ( run func ( ctx context . Context , id queryapi . ExportID , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientInterface_ExportState_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Run ( func ( args mock . Arguments ) {
2025-10-23 22:57:15 +00:00
variadicArgs := make ( [ ] queryapi . RequestEditorFn , len ( args ) - 2 )
for i , a := range args [ 2 : ] {
2025-03-11 16:31:06 +00:00
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-10-23 22:57:15 +00:00
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( queryapi . ExportID ) , variadicArgs ... )
2025-03-11 16:31:06 +00:00
} )
return _c
}
2025-10-23 22:57:15 +00:00
func ( _c * MockClientInterface_ExportState_Call ) Return ( _a0 * http . Response , _a1 error ) * MockClientInterface_ExportState_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2025-10-23 22:57:15 +00:00
func ( _c * MockClientInterface_ExportState_Call ) RunAndReturn ( run func ( context . Context , queryapi . ExportID , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) * MockClientInterface_ExportState_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Return ( run )
return _c
}
2025-10-23 22:57:15 +00:00
// GetAdminUser provides a mock function with given fields: ctx, email, reqEditors
func ( _m * MockClientInterface ) GetAdminUser ( ctx context . Context , email queryapi . UserEmail , reqEditors ... queryapi . RequestEditorFn ) ( * http . Response , 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 { }
2025-10-23 22:57:15 +00:00
_ca = append ( _ca , ctx , email )
2025-03-11 16:31:06 +00:00
_ca = append ( _ca , _va ... )
ret := _m . Called ( _ca ... )
if len ( ret ) == 0 {
2025-10-23 22:57:15 +00:00
panic ( "no return value specified for GetAdminUser" )
2025-03-11 16:31:06 +00:00
}
var r0 * http . Response
var r1 error
2025-10-23 22:57:15 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . UserEmail , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) ; ok {
return rf ( ctx , email , reqEditors ... )
2025-03-11 16:31:06 +00:00
}
2025-10-23 22:57:15 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . UserEmail , ... queryapi . RequestEditorFn ) * http . Response ) ; ok {
r0 = rf ( ctx , email , reqEditors ... )
2025-03-11 16:31:06 +00:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * http . Response )
}
}
2025-10-23 22:57:15 +00:00
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , queryapi . UserEmail , ... queryapi . RequestEditorFn ) error ) ; ok {
r1 = rf ( ctx , email , reqEditors ... )
2025-03-11 16:31:06 +00:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2025-10-23 22:57:15 +00:00
// MockClientInterface_GetAdminUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAdminUser'
type MockClientInterface_GetAdminUser_Call struct {
2025-03-11 16:31:06 +00:00
* mock . Call
}
2025-10-23 22:57:15 +00:00
// GetAdminUser is a helper method to define mock.On call
2025-03-11 16:31:06 +00:00
// - ctx context.Context
2025-10-23 22:57:15 +00:00
// - email queryapi.UserEmail
2025-03-17 18:14:15 +00:00
// - reqEditors ...queryapi.RequestEditorFn
2025-10-23 22:57:15 +00:00
func ( _e * MockClientInterface_Expecter ) GetAdminUser ( ctx interface { } , email interface { } , reqEditors ... interface { } ) * MockClientInterface_GetAdminUser_Call {
return & MockClientInterface_GetAdminUser_Call { Call : _e . mock . On ( "GetAdminUser" ,
append ( [ ] interface { } { ctx , email } , reqEditors ... ) ... ) }
2025-03-11 16:31:06 +00:00
}
2025-10-23 22:57:15 +00:00
func ( _c * MockClientInterface_GetAdminUser_Call ) Run ( run func ( ctx context . Context , email queryapi . UserEmail , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientInterface_GetAdminUser_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-10-23 22:57:15 +00:00
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( queryapi . UserEmail ) , variadicArgs ... )
2025-03-11 16:31:06 +00:00
} )
return _c
}
2025-10-23 22:57:15 +00:00
func ( _c * MockClientInterface_GetAdminUser_Call ) Return ( _a0 * http . Response , _a1 error ) * MockClientInterface_GetAdminUser_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2025-10-23 22:57:15 +00:00
func ( _c * MockClientInterface_GetAdminUser_Call ) RunAndReturn ( run func ( context . Context , queryapi . UserEmail , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) * MockClientInterface_GetAdminUser_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Return ( run )
return _c
}
// GetClient provides a mock function with given fields: ctx, id, reqEditors
2025-05-08 16:04:45 +00:00
func ( _m * MockClientInterface ) GetClient ( ctx context . Context , id queryapi . ClientID , reqEditors ... queryapi . RequestEditorFn ) ( * http . Response , 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 GetClient" )
}
var r0 * http . Response
var r1 error
2025-05-08 16:04:45 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . ClientID , ... queryapi . RequestEditorFn ) ( * http . Response , 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 ) * http . Response ) ; ok {
2025-03-11 16:31:06 +00:00
r0 = rf ( ctx , id , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * http . Response )
}
}
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
}
// MockClientInterface_GetClient_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetClient'
type MockClientInterface_GetClient_Call struct {
* mock . Call
}
// GetClient 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 * MockClientInterface_Expecter ) GetClient ( ctx interface { } , id interface { } , reqEditors ... interface { } ) * MockClientInterface_GetClient_Call {
return & MockClientInterface_GetClient_Call { Call : _e . mock . On ( "GetClient" ,
append ( [ ] interface { } { ctx , id } , reqEditors ... ) ... ) }
}
2025-05-08 16:04:45 +00:00
func ( _c * MockClientInterface_GetClient_Call ) Run ( run func ( ctx context . Context , id queryapi . ClientID , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientInterface_GetClient_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
}
func ( _c * MockClientInterface_GetClient_Call ) Return ( _a0 * http . Response , _a1 error ) * MockClientInterface_GetClient_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2025-05-08 16:04:45 +00:00
func ( _c * MockClientInterface_GetClient_Call ) RunAndReturn ( run func ( context . Context , queryapi . ClientID , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) * MockClientInterface_GetClient_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Return ( run )
return _c
}
// GetCollectorByClientId provides a mock function with given fields: ctx, id, reqEditors
2025-05-08 16:04:45 +00:00
func ( _m * MockClientInterface ) GetCollectorByClientId ( ctx context . Context , id queryapi . ClientID , reqEditors ... queryapi . RequestEditorFn ) ( * http . Response , 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 GetCollectorByClientId" )
}
var r0 * http . Response
var r1 error
2025-05-08 16:04:45 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . ClientID , ... queryapi . RequestEditorFn ) ( * http . Response , 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 ) * http . Response ) ; ok {
2025-03-11 16:31:06 +00:00
r0 = rf ( ctx , id , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * http . Response )
}
}
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
}
// MockClientInterface_GetCollectorByClientId_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCollectorByClientId'
type MockClientInterface_GetCollectorByClientId_Call struct {
* mock . Call
}
// GetCollectorByClientId 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 * MockClientInterface_Expecter ) GetCollectorByClientId ( ctx interface { } , id interface { } , reqEditors ... interface { } ) * MockClientInterface_GetCollectorByClientId_Call {
return & MockClientInterface_GetCollectorByClientId_Call { Call : _e . mock . On ( "GetCollectorByClientId" ,
append ( [ ] interface { } { ctx , id } , reqEditors ... ) ... ) }
}
2025-05-08 16:04:45 +00:00
func ( _c * MockClientInterface_GetCollectorByClientId_Call ) Run ( run func ( ctx context . Context , id queryapi . ClientID , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientInterface_GetCollectorByClientId_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
}
func ( _c * MockClientInterface_GetCollectorByClientId_Call ) Return ( _a0 * http . Response , _a1 error ) * MockClientInterface_GetCollectorByClientId_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2025-05-08 16:04:45 +00:00
func ( _c * MockClientInterface_GetCollectorByClientId_Call ) RunAndReturn ( run func ( context . Context , queryapi . ClientID , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) * MockClientInterface_GetCollectorByClientId_Call {
2025-03-17 18:14:15 +00:00
_c . Call . Return ( run )
return _c
}
// GetDocument provides a mock function with given fields: ctx, id, reqEditors
2025-05-08 16:04:45 +00:00
func ( _m * MockClientInterface ) GetDocument ( ctx context . Context , id queryapi . DocumentID , reqEditors ... queryapi . RequestEditorFn ) ( * http . Response , 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 GetDocument" )
}
var r0 * http . Response
var r1 error
2025-05-08 16:04:45 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . DocumentID , ... queryapi . RequestEditorFn ) ( * http . Response , 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 ) * http . Response ) ; ok {
2025-03-17 18:14:15 +00:00
r0 = rf ( ctx , id , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * http . Response )
}
}
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
}
// MockClientInterface_GetDocument_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDocument'
type MockClientInterface_GetDocument_Call struct {
* mock . Call
}
// GetDocument 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 * MockClientInterface_Expecter ) GetDocument ( ctx interface { } , id interface { } , reqEditors ... interface { } ) * MockClientInterface_GetDocument_Call {
return & MockClientInterface_GetDocument_Call { Call : _e . mock . On ( "GetDocument" ,
append ( [ ] interface { } { ctx , id } , reqEditors ... ) ... ) }
}
2025-05-08 16:04:45 +00:00
func ( _c * MockClientInterface_GetDocument_Call ) Run ( run func ( ctx context . Context , id queryapi . DocumentID , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientInterface_GetDocument_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 * MockClientInterface_GetDocument_Call ) Return ( _a0 * http . Response , _a1 error ) * MockClientInterface_GetDocument_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2025-05-08 16:04:45 +00:00
func ( _c * MockClientInterface_GetDocument_Call ) RunAndReturn ( run func ( context . Context , queryapi . DocumentID , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) * MockClientInterface_GetDocument_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Return ( run )
return _c
}
2025-08-05 07:03:35 -07:00
// GetDocumentBatch provides a mock function with given fields: ctx, id, batchId, reqEditors
func ( _m * MockClientInterface ) GetDocumentBatch ( ctx context . Context , id queryapi . ClientID , batchId queryapi . BatchID , reqEditors ... queryapi . RequestEditorFn ) ( * http . Response , 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 GetDocumentBatch" )
}
var r0 * http . Response
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . ClientID , queryapi . BatchID , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) ; ok {
return rf ( ctx , id , batchId , reqEditors ... )
}
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . ClientID , queryapi . BatchID , ... queryapi . RequestEditorFn ) * http . Response ) ; ok {
r0 = rf ( ctx , id , batchId , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * http . Response )
}
}
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
}
// MockClientInterface_GetDocumentBatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDocumentBatch'
type MockClientInterface_GetDocumentBatch_Call struct {
* mock . Call
}
// GetDocumentBatch is a helper method to define mock.On call
// - ctx context.Context
// - id queryapi.ClientID
// - batchId queryapi.BatchID
// - reqEditors ...queryapi.RequestEditorFn
func ( _e * MockClientInterface_Expecter ) GetDocumentBatch ( ctx interface { } , id interface { } , batchId interface { } , reqEditors ... interface { } ) * MockClientInterface_GetDocumentBatch_Call {
return & MockClientInterface_GetDocumentBatch_Call { Call : _e . mock . On ( "GetDocumentBatch" ,
append ( [ ] interface { } { ctx , id , batchId } , reqEditors ... ) ... ) }
}
func ( _c * MockClientInterface_GetDocumentBatch_Call ) Run ( run func ( ctx context . Context , id queryapi . ClientID , batchId queryapi . BatchID , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientInterface_GetDocumentBatch_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 * MockClientInterface_GetDocumentBatch_Call ) Return ( _a0 * http . Response , _a1 error ) * MockClientInterface_GetDocumentBatch_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
func ( _c * MockClientInterface_GetDocumentBatch_Call ) RunAndReturn ( run func ( context . Context , queryapi . ClientID , queryapi . BatchID , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) * MockClientInterface_GetDocumentBatch_Call {
_c . Call . Return ( run )
return _c
}
2025-04-07 14:10:39 -07:00
// GetHomePage provides a mock function with given fields: ctx, reqEditors
func ( _m * MockClientInterface ) GetHomePage ( ctx context . Context , reqEditors ... queryapi . RequestEditorFn ) ( * http . Response , 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 GetHomePage" )
}
var r0 * http . Response
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) ; ok {
return rf ( ctx , reqEditors ... )
}
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , ... queryapi . RequestEditorFn ) * http . Response ) ; ok {
r0 = rf ( ctx , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * http . Response )
}
}
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
}
// MockClientInterface_GetHomePage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetHomePage'
type MockClientInterface_GetHomePage_Call struct {
* mock . Call
}
// GetHomePage is a helper method to define mock.On call
// - ctx context.Context
// - reqEditors ...queryapi.RequestEditorFn
func ( _e * MockClientInterface_Expecter ) GetHomePage ( ctx interface { } , reqEditors ... interface { } ) * MockClientInterface_GetHomePage_Call {
return & MockClientInterface_GetHomePage_Call { Call : _e . mock . On ( "GetHomePage" ,
append ( [ ] interface { } { ctx } , reqEditors ... ) ... ) }
}
func ( _c * MockClientInterface_GetHomePage_Call ) Run ( run func ( ctx context . Context , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientInterface_GetHomePage_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 * MockClientInterface_GetHomePage_Call ) Return ( _a0 * http . Response , _a1 error ) * MockClientInterface_GetHomePage_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
func ( _c * MockClientInterface_GetHomePage_Call ) RunAndReturn ( run func ( context . Context , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) * MockClientInterface_GetHomePage_Call {
_c . Call . Return ( run )
return _c
}
2025-03-11 16:31:06 +00:00
// GetQuery provides a mock function with given fields: ctx, id, reqEditors
2025-05-08 16:04:45 +00:00
func ( _m * MockClientInterface ) GetQuery ( ctx context . Context , id queryapi . QueryID , reqEditors ... queryapi . RequestEditorFn ) ( * http . Response , 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 GetQuery" )
}
var r0 * http . Response
var r1 error
2025-05-08 16:04:45 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . QueryID , ... queryapi . RequestEditorFn ) ( * http . Response , 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 ) * http . Response ) ; ok {
2025-03-11 16:31:06 +00:00
r0 = rf ( ctx , id , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * http . Response )
}
}
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
}
// MockClientInterface_GetQuery_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetQuery'
type MockClientInterface_GetQuery_Call struct {
* mock . Call
}
// GetQuery 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 * MockClientInterface_Expecter ) GetQuery ( ctx interface { } , id interface { } , reqEditors ... interface { } ) * MockClientInterface_GetQuery_Call {
return & MockClientInterface_GetQuery_Call { Call : _e . mock . On ( "GetQuery" ,
append ( [ ] interface { } { ctx , id } , reqEditors ... ) ... ) }
}
2025-05-08 16:04:45 +00:00
func ( _c * MockClientInterface_GetQuery_Call ) Run ( run func ( ctx context . Context , id queryapi . QueryID , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientInterface_GetQuery_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
}
func ( _c * MockClientInterface_GetQuery_Call ) Return ( _a0 * http . Response , _a1 error ) * MockClientInterface_GetQuery_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2025-05-08 16:04:45 +00:00
func ( _c * MockClientInterface_GetQuery_Call ) RunAndReturn ( run func ( context . Context , queryapi . QueryID , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) * MockClientInterface_GetQuery_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Return ( run )
return _c
}
// GetStatusByClientId provides a mock function with given fields: ctx, id, reqEditors
2025-05-08 16:04:45 +00:00
func ( _m * MockClientInterface ) GetStatusByClientId ( ctx context . Context , id queryapi . ClientID , reqEditors ... queryapi . RequestEditorFn ) ( * http . Response , 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 GetStatusByClientId" )
}
var r0 * http . Response
var r1 error
2025-05-08 16:04:45 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . ClientID , ... queryapi . RequestEditorFn ) ( * http . Response , 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 ) * http . Response ) ; ok {
2025-03-11 16:31:06 +00:00
r0 = rf ( ctx , id , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * http . Response )
}
}
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
}
// MockClientInterface_GetStatusByClientId_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetStatusByClientId'
type MockClientInterface_GetStatusByClientId_Call struct {
* mock . Call
}
// GetStatusByClientId 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 * MockClientInterface_Expecter ) GetStatusByClientId ( ctx interface { } , id interface { } , reqEditors ... interface { } ) * MockClientInterface_GetStatusByClientId_Call {
return & MockClientInterface_GetStatusByClientId_Call { Call : _e . mock . On ( "GetStatusByClientId" ,
append ( [ ] interface { } { ctx , id } , reqEditors ... ) ... ) }
}
2025-05-08 16:04:45 +00:00
func ( _c * MockClientInterface_GetStatusByClientId_Call ) Run ( run func ( ctx context . Context , id queryapi . ClientID , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientInterface_GetStatusByClientId_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
}
func ( _c * MockClientInterface_GetStatusByClientId_Call ) Return ( _a0 * http . Response , _a1 error ) * MockClientInterface_GetStatusByClientId_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2025-05-08 16:04:45 +00:00
func ( _c * MockClientInterface_GetStatusByClientId_Call ) RunAndReturn ( run func ( context . Context , queryapi . ClientID , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) * MockClientInterface_GetStatusByClientId_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Return ( run )
return _c
}
2025-10-23 22:57:15 +00:00
// ListAdminUsers provides a mock function with given fields: ctx, params, reqEditors
func ( _m * MockClientInterface ) ListAdminUsers ( ctx context . Context , params * queryapi . ListAdminUsersParams , reqEditors ... queryapi . RequestEditorFn ) ( * http . Response , 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 ListAdminUsers" )
}
var r0 * http . Response
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * queryapi . ListAdminUsersParams , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) ; ok {
return rf ( ctx , params , reqEditors ... )
}
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * queryapi . ListAdminUsersParams , ... queryapi . RequestEditorFn ) * http . Response ) ; ok {
r0 = rf ( ctx , params , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * http . Response )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * queryapi . ListAdminUsersParams , ... queryapi . RequestEditorFn ) error ) ; ok {
r1 = rf ( ctx , params , reqEditors ... )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// MockClientInterface_ListAdminUsers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListAdminUsers'
type MockClientInterface_ListAdminUsers_Call struct {
* mock . Call
}
// ListAdminUsers is a helper method to define mock.On call
// - ctx context.Context
// - params *queryapi.ListAdminUsersParams
// - reqEditors ...queryapi.RequestEditorFn
func ( _e * MockClientInterface_Expecter ) ListAdminUsers ( ctx interface { } , params interface { } , reqEditors ... interface { } ) * MockClientInterface_ListAdminUsers_Call {
return & MockClientInterface_ListAdminUsers_Call { Call : _e . mock . On ( "ListAdminUsers" ,
append ( [ ] interface { } { ctx , params } , reqEditors ... ) ... ) }
}
func ( _c * MockClientInterface_ListAdminUsers_Call ) Run ( run func ( ctx context . Context , params * queryapi . ListAdminUsersParams , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientInterface_ListAdminUsers_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 . ListAdminUsersParams ) , variadicArgs ... )
} )
return _c
}
func ( _c * MockClientInterface_ListAdminUsers_Call ) Return ( _a0 * http . Response , _a1 error ) * MockClientInterface_ListAdminUsers_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
func ( _c * MockClientInterface_ListAdminUsers_Call ) RunAndReturn ( run func ( context . Context , * queryapi . ListAdminUsersParams , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) * MockClientInterface_ListAdminUsers_Call {
_c . Call . Return ( run )
return _c
}
2025-08-05 07:03:35 -07:00
// ListDocumentBatches provides a mock function with given fields: ctx, id, params, reqEditors
func ( _m * MockClientInterface ) ListDocumentBatches ( ctx context . Context , id queryapi . ClientID , params * queryapi . ListDocumentBatchesParams , reqEditors ... queryapi . RequestEditorFn ) ( * http . Response , 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 ListDocumentBatches" )
}
var r0 * http . Response
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . ClientID , * queryapi . ListDocumentBatchesParams , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) ; ok {
return rf ( ctx , id , params , reqEditors ... )
}
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . ClientID , * queryapi . ListDocumentBatchesParams , ... queryapi . RequestEditorFn ) * http . Response ) ; ok {
r0 = rf ( ctx , id , params , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * http . Response )
}
}
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
}
// MockClientInterface_ListDocumentBatches_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListDocumentBatches'
type MockClientInterface_ListDocumentBatches_Call struct {
* mock . Call
}
// ListDocumentBatches is a helper method to define mock.On call
// - ctx context.Context
// - id queryapi.ClientID
// - params *queryapi.ListDocumentBatchesParams
// - reqEditors ...queryapi.RequestEditorFn
func ( _e * MockClientInterface_Expecter ) ListDocumentBatches ( ctx interface { } , id interface { } , params interface { } , reqEditors ... interface { } ) * MockClientInterface_ListDocumentBatches_Call {
return & MockClientInterface_ListDocumentBatches_Call { Call : _e . mock . On ( "ListDocumentBatches" ,
append ( [ ] interface { } { ctx , id , params } , reqEditors ... ) ... ) }
}
func ( _c * MockClientInterface_ListDocumentBatches_Call ) Run ( run func ( ctx context . Context , id queryapi . ClientID , params * queryapi . ListDocumentBatchesParams , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientInterface_ListDocumentBatches_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 * MockClientInterface_ListDocumentBatches_Call ) Return ( _a0 * http . Response , _a1 error ) * MockClientInterface_ListDocumentBatches_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
func ( _c * MockClientInterface_ListDocumentBatches_Call ) RunAndReturn ( run func ( context . Context , queryapi . ClientID , * queryapi . ListDocumentBatchesParams , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) * MockClientInterface_ListDocumentBatches_Call {
_c . Call . Return ( run )
return _c
}
2025-03-11 16:31:06 +00:00
// ListDocumentsByClientId provides a mock function with given fields: ctx, id, reqEditors
2025-05-08 16:04:45 +00:00
func ( _m * MockClientInterface ) ListDocumentsByClientId ( ctx context . Context , id queryapi . ClientID , reqEditors ... queryapi . RequestEditorFn ) ( * http . Response , 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 ListDocumentsByClientId" )
}
var r0 * http . Response
var r1 error
2025-05-08 16:04:45 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . ClientID , ... queryapi . RequestEditorFn ) ( * http . Response , 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 ) * http . Response ) ; ok {
2025-03-11 16:31:06 +00:00
r0 = rf ( ctx , id , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * http . Response )
}
}
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
}
// MockClientInterface_ListDocumentsByClientId_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListDocumentsByClientId'
type MockClientInterface_ListDocumentsByClientId_Call struct {
* mock . Call
}
// ListDocumentsByClientId 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 * MockClientInterface_Expecter ) ListDocumentsByClientId ( ctx interface { } , id interface { } , reqEditors ... interface { } ) * MockClientInterface_ListDocumentsByClientId_Call {
return & MockClientInterface_ListDocumentsByClientId_Call { Call : _e . mock . On ( "ListDocumentsByClientId" ,
append ( [ ] interface { } { ctx , id } , reqEditors ... ) ... ) }
}
2025-05-08 16:04:45 +00:00
func ( _c * MockClientInterface_ListDocumentsByClientId_Call ) Run ( run func ( ctx context . Context , id queryapi . ClientID , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientInterface_ListDocumentsByClientId_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
}
func ( _c * MockClientInterface_ListDocumentsByClientId_Call ) Return ( _a0 * http . Response , _a1 error ) * MockClientInterface_ListDocumentsByClientId_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2025-05-08 16:04:45 +00:00
func ( _c * MockClientInterface_ListDocumentsByClientId_Call ) RunAndReturn ( run func ( context . Context , queryapi . ClientID , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) * MockClientInterface_ListDocumentsByClientId_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Return ( run )
return _c
}
// ListQueries provides a mock function with given fields: ctx, reqEditors
2025-03-17 18:14:15 +00:00
func ( _m * MockClientInterface ) ListQueries ( ctx context . Context , reqEditors ... queryapi . RequestEditorFn ) ( * http . Response , 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 ListQueries" )
}
var r0 * http . Response
var r1 error
2025-03-17 18:14:15 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , ... queryapi . RequestEditorFn ) ( * http . Response , 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 ) * http . Response ) ; ok {
2025-03-11 16:31:06 +00:00
r0 = rf ( ctx , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * http . Response )
}
}
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
}
// MockClientInterface_ListQueries_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListQueries'
type MockClientInterface_ListQueries_Call struct {
* mock . Call
}
// ListQueries 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 * MockClientInterface_Expecter ) ListQueries ( ctx interface { } , reqEditors ... interface { } ) * MockClientInterface_ListQueries_Call {
return & MockClientInterface_ListQueries_Call { Call : _e . mock . On ( "ListQueries" ,
append ( [ ] interface { } { ctx } , reqEditors ... ) ... ) }
}
2025-03-17 18:14:15 +00:00
func ( _c * MockClientInterface_ListQueries_Call ) Run ( run func ( ctx context . Context , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientInterface_ListQueries_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
}
func ( _c * MockClientInterface_ListQueries_Call ) Return ( _a0 * http . Response , _a1 error ) * MockClientInterface_ListQueries_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2025-03-17 18:14:15 +00:00
func ( _c * MockClientInterface_ListQueries_Call ) RunAndReturn ( run func ( context . Context , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) * MockClientInterface_ListQueries_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Return ( run )
return _c
}
2025-04-07 14:10:39 -07:00
// Login provides a mock function with given fields: ctx, reqEditors
func ( _m * MockClientInterface ) Login ( ctx context . Context , reqEditors ... queryapi . RequestEditorFn ) ( * http . Response , 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 Login" )
}
var r0 * http . Response
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) ; ok {
return rf ( ctx , reqEditors ... )
}
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , ... queryapi . RequestEditorFn ) * http . Response ) ; ok {
r0 = rf ( ctx , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * http . Response )
}
}
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
}
// MockClientInterface_Login_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Login'
type MockClientInterface_Login_Call struct {
* mock . Call
}
// Login is a helper method to define mock.On call
// - ctx context.Context
// - reqEditors ...queryapi.RequestEditorFn
func ( _e * MockClientInterface_Expecter ) Login ( ctx interface { } , reqEditors ... interface { } ) * MockClientInterface_Login_Call {
return & MockClientInterface_Login_Call { Call : _e . mock . On ( "Login" ,
append ( [ ] interface { } { ctx } , reqEditors ... ) ... ) }
}
func ( _c * MockClientInterface_Login_Call ) Run ( run func ( ctx context . Context , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientInterface_Login_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 * MockClientInterface_Login_Call ) Return ( _a0 * http . Response , _a1 error ) * MockClientInterface_Login_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
func ( _c * MockClientInterface_Login_Call ) RunAndReturn ( run func ( context . Context , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) * MockClientInterface_Login_Call {
_c . Call . Return ( run )
return _c
}
// LoginCallback provides a mock function with given fields: ctx, params, reqEditors
func ( _m * MockClientInterface ) LoginCallback ( ctx context . Context , params * queryapi . LoginCallbackParams , reqEditors ... queryapi . RequestEditorFn ) ( * http . Response , 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 LoginCallback" )
}
var r0 * http . Response
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * queryapi . LoginCallbackParams , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) ; ok {
return rf ( ctx , params , reqEditors ... )
}
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * queryapi . LoginCallbackParams , ... queryapi . RequestEditorFn ) * http . Response ) ; ok {
r0 = rf ( ctx , params , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * http . Response )
}
}
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
}
// MockClientInterface_LoginCallback_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LoginCallback'
type MockClientInterface_LoginCallback_Call struct {
* mock . Call
}
// LoginCallback is a helper method to define mock.On call
// - ctx context.Context
// - params *queryapi.LoginCallbackParams
// - reqEditors ...queryapi.RequestEditorFn
func ( _e * MockClientInterface_Expecter ) LoginCallback ( ctx interface { } , params interface { } , reqEditors ... interface { } ) * MockClientInterface_LoginCallback_Call {
return & MockClientInterface_LoginCallback_Call { Call : _e . mock . On ( "LoginCallback" ,
append ( [ ] interface { } { ctx , params } , reqEditors ... ) ... ) }
}
func ( _c * MockClientInterface_LoginCallback_Call ) Run ( run func ( ctx context . Context , params * queryapi . LoginCallbackParams , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientInterface_LoginCallback_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 * MockClientInterface_LoginCallback_Call ) Return ( _a0 * http . Response , _a1 error ) * MockClientInterface_LoginCallback_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
func ( _c * MockClientInterface_LoginCallback_Call ) RunAndReturn ( run func ( context . Context , * queryapi . LoginCallbackParams , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) * MockClientInterface_LoginCallback_Call {
_c . Call . Return ( run )
return _c
}
// Logout provides a mock function with given fields: ctx, reqEditors
func ( _m * MockClientInterface ) Logout ( ctx context . Context , reqEditors ... queryapi . RequestEditorFn ) ( * http . Response , 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 Logout" )
}
var r0 * http . Response
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) ; ok {
return rf ( ctx , reqEditors ... )
}
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , ... queryapi . RequestEditorFn ) * http . Response ) ; ok {
r0 = rf ( ctx , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * http . Response )
}
}
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
}
// MockClientInterface_Logout_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Logout'
type MockClientInterface_Logout_Call struct {
* mock . Call
}
// Logout is a helper method to define mock.On call
// - ctx context.Context
// - reqEditors ...queryapi.RequestEditorFn
func ( _e * MockClientInterface_Expecter ) Logout ( ctx interface { } , reqEditors ... interface { } ) * MockClientInterface_Logout_Call {
return & MockClientInterface_Logout_Call { Call : _e . mock . On ( "Logout" ,
append ( [ ] interface { } { ctx } , reqEditors ... ) ... ) }
}
func ( _c * MockClientInterface_Logout_Call ) Run ( run func ( ctx context . Context , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientInterface_Logout_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 * MockClientInterface_Logout_Call ) Return ( _a0 * http . Response , _a1 error ) * MockClientInterface_Logout_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
func ( _c * MockClientInterface_Logout_Call ) RunAndReturn ( run func ( context . Context , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) * MockClientInterface_Logout_Call {
_c . Call . Return ( run )
return _c
}
2025-03-11 16:31:06 +00:00
// SetCollectorByClientId provides a mock function with given fields: ctx, id, body, reqEditors
2025-05-08 16:04:45 +00:00
func ( _m * MockClientInterface ) SetCollectorByClientId ( ctx context . Context , id queryapi . ClientID , body queryapi . SetCollectorByClientIdJSONRequestBody , reqEditors ... queryapi . RequestEditorFn ) ( * http . Response , 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 SetCollectorByClientId" )
}
var r0 * http . Response
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 ) ( * http . Response , 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 ) * http . Response ) ; ok {
2025-03-11 16:31:06 +00:00
r0 = rf ( ctx , id , body , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * http . Response )
}
}
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
}
// MockClientInterface_SetCollectorByClientId_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetCollectorByClientId'
type MockClientInterface_SetCollectorByClientId_Call struct {
* mock . Call
}
// SetCollectorByClientId 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 * MockClientInterface_Expecter ) SetCollectorByClientId ( ctx interface { } , id interface { } , body interface { } , reqEditors ... interface { } ) * MockClientInterface_SetCollectorByClientId_Call {
return & MockClientInterface_SetCollectorByClientId_Call { Call : _e . mock . On ( "SetCollectorByClientId" ,
append ( [ ] interface { } { ctx , id , body } , reqEditors ... ) ... ) }
}
2025-05-08 16:04:45 +00:00
func ( _c * MockClientInterface_SetCollectorByClientId_Call ) Run ( run func ( ctx context . Context , id queryapi . ClientID , body queryapi . SetCollectorByClientIdJSONRequestBody , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientInterface_SetCollectorByClientId_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
}
func ( _c * MockClientInterface_SetCollectorByClientId_Call ) Return ( _a0 * http . Response , _a1 error ) * MockClientInterface_SetCollectorByClientId_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2025-05-08 16:04:45 +00:00
func ( _c * MockClientInterface_SetCollectorByClientId_Call ) RunAndReturn ( run func ( context . Context , queryapi . ClientID , queryapi . SetCollectorByClientIdJSONRequestBody , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) * MockClientInterface_SetCollectorByClientId_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Return ( run )
return _c
}
// SetCollectorByClientIdWithBody provides a mock function with given fields: ctx, id, contentType, body, reqEditors
2025-05-08 16:04:45 +00:00
func ( _m * MockClientInterface ) SetCollectorByClientIdWithBody ( ctx context . Context , id queryapi . ClientID , contentType string , body io . Reader , reqEditors ... queryapi . RequestEditorFn ) ( * http . Response , 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 SetCollectorByClientIdWithBody" )
}
var r0 * http . Response
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 ) ( * http . Response , 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 ) * http . Response ) ; ok {
2025-03-11 16:31:06 +00:00
r0 = rf ( ctx , id , contentType , body , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * http . Response )
}
}
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
}
// MockClientInterface_SetCollectorByClientIdWithBody_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetCollectorByClientIdWithBody'
type MockClientInterface_SetCollectorByClientIdWithBody_Call struct {
* mock . Call
}
// SetCollectorByClientIdWithBody 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 * MockClientInterface_Expecter ) SetCollectorByClientIdWithBody ( ctx interface { } , id interface { } , contentType interface { } , body interface { } , reqEditors ... interface { } ) * MockClientInterface_SetCollectorByClientIdWithBody_Call {
return & MockClientInterface_SetCollectorByClientIdWithBody_Call { Call : _e . mock . On ( "SetCollectorByClientIdWithBody" ,
append ( [ ] interface { } { ctx , id , contentType , body } , reqEditors ... ) ... ) }
}
2025-05-08 16:04:45 +00:00
func ( _c * MockClientInterface_SetCollectorByClientIdWithBody_Call ) Run ( run func ( ctx context . Context , id queryapi . ClientID , contentType string , body io . Reader , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientInterface_SetCollectorByClientIdWithBody_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
}
func ( _c * MockClientInterface_SetCollectorByClientIdWithBody_Call ) Return ( _a0 * http . Response , _a1 error ) * MockClientInterface_SetCollectorByClientIdWithBody_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2025-05-08 16:04:45 +00:00
func ( _c * MockClientInterface_SetCollectorByClientIdWithBody_Call ) RunAndReturn ( run func ( context . Context , queryapi . ClientID , string , io . Reader , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) * MockClientInterface_SetCollectorByClientIdWithBody_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Return ( run )
return _c
}
// TestQuery provides a mock function with given fields: ctx, id, body, reqEditors
2025-05-08 16:04:45 +00:00
func ( _m * MockClientInterface ) TestQuery ( ctx context . Context , id queryapi . QueryID , body queryapi . TestQueryJSONRequestBody , reqEditors ... queryapi . RequestEditorFn ) ( * http . Response , 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 TestQuery" )
}
var r0 * http . Response
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 ) ( * http . Response , 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 ) * http . Response ) ; ok {
2025-03-11 16:31:06 +00:00
r0 = rf ( ctx , id , body , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * http . Response )
}
}
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
}
// MockClientInterface_TestQuery_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TestQuery'
type MockClientInterface_TestQuery_Call struct {
* mock . Call
}
// TestQuery 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 * MockClientInterface_Expecter ) TestQuery ( ctx interface { } , id interface { } , body interface { } , reqEditors ... interface { } ) * MockClientInterface_TestQuery_Call {
return & MockClientInterface_TestQuery_Call { Call : _e . mock . On ( "TestQuery" ,
append ( [ ] interface { } { ctx , id , body } , reqEditors ... ) ... ) }
}
2025-05-08 16:04:45 +00:00
func ( _c * MockClientInterface_TestQuery_Call ) Run ( run func ( ctx context . Context , id queryapi . QueryID , body queryapi . TestQueryJSONRequestBody , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientInterface_TestQuery_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
}
func ( _c * MockClientInterface_TestQuery_Call ) Return ( _a0 * http . Response , _a1 error ) * MockClientInterface_TestQuery_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2025-05-08 16:04:45 +00:00
func ( _c * MockClientInterface_TestQuery_Call ) RunAndReturn ( run func ( context . Context , queryapi . QueryID , queryapi . TestQueryJSONRequestBody , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) * MockClientInterface_TestQuery_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Return ( run )
return _c
}
// TestQueryWithBody provides a mock function with given fields: ctx, id, contentType, body, reqEditors
2025-05-08 16:04:45 +00:00
func ( _m * MockClientInterface ) TestQueryWithBody ( ctx context . Context , id queryapi . QueryID , contentType string , body io . Reader , reqEditors ... queryapi . RequestEditorFn ) ( * http . Response , 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 TestQueryWithBody" )
}
var r0 * http . Response
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 ) ( * http . Response , 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 ) * http . Response ) ; ok {
2025-03-11 16:31:06 +00:00
r0 = rf ( ctx , id , contentType , body , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * http . Response )
}
}
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
}
// MockClientInterface_TestQueryWithBody_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TestQueryWithBody'
type MockClientInterface_TestQueryWithBody_Call struct {
* mock . Call
}
// TestQueryWithBody 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 * MockClientInterface_Expecter ) TestQueryWithBody ( ctx interface { } , id interface { } , contentType interface { } , body interface { } , reqEditors ... interface { } ) * MockClientInterface_TestQueryWithBody_Call {
return & MockClientInterface_TestQueryWithBody_Call { Call : _e . mock . On ( "TestQueryWithBody" ,
append ( [ ] interface { } { ctx , id , contentType , body } , reqEditors ... ) ... ) }
}
2025-05-08 16:04:45 +00:00
func ( _c * MockClientInterface_TestQueryWithBody_Call ) Run ( run func ( ctx context . Context , id queryapi . QueryID , contentType string , body io . Reader , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientInterface_TestQueryWithBody_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
}
func ( _c * MockClientInterface_TestQueryWithBody_Call ) Return ( _a0 * http . Response , _a1 error ) * MockClientInterface_TestQueryWithBody_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2025-05-08 16:04:45 +00:00
func ( _c * MockClientInterface_TestQueryWithBody_Call ) RunAndReturn ( run func ( context . Context , queryapi . QueryID , string , io . Reader , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) * MockClientInterface_TestQueryWithBody_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Return ( run )
return _c
}
// TriggerExport provides a mock function with given fields: ctx, id, body, reqEditors
2025-05-08 16:04:45 +00:00
func ( _m * MockClientInterface ) TriggerExport ( ctx context . Context , id queryapi . ClientID , body queryapi . TriggerExportJSONRequestBody , reqEditors ... queryapi . RequestEditorFn ) ( * http . Response , 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 TriggerExport" )
}
var r0 * http . Response
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 ) ( * http . Response , 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 ) * http . Response ) ; ok {
2025-03-11 16:31:06 +00:00
r0 = rf ( ctx , id , body , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * http . Response )
}
}
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
}
// MockClientInterface_TriggerExport_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TriggerExport'
type MockClientInterface_TriggerExport_Call struct {
* mock . Call
}
// TriggerExport 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 * MockClientInterface_Expecter ) TriggerExport ( ctx interface { } , id interface { } , body interface { } , reqEditors ... interface { } ) * MockClientInterface_TriggerExport_Call {
return & MockClientInterface_TriggerExport_Call { Call : _e . mock . On ( "TriggerExport" ,
append ( [ ] interface { } { ctx , id , body } , reqEditors ... ) ... ) }
}
2025-05-08 16:04:45 +00:00
func ( _c * MockClientInterface_TriggerExport_Call ) Run ( run func ( ctx context . Context , id queryapi . ClientID , body queryapi . TriggerExportJSONRequestBody , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientInterface_TriggerExport_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
}
func ( _c * MockClientInterface_TriggerExport_Call ) Return ( _a0 * http . Response , _a1 error ) * MockClientInterface_TriggerExport_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2025-05-08 16:04:45 +00:00
func ( _c * MockClientInterface_TriggerExport_Call ) RunAndReturn ( run func ( context . Context , queryapi . ClientID , queryapi . TriggerExportJSONRequestBody , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) * MockClientInterface_TriggerExport_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Return ( run )
return _c
}
// TriggerExportWithBody provides a mock function with given fields: ctx, id, contentType, body, reqEditors
2025-05-08 16:04:45 +00:00
func ( _m * MockClientInterface ) TriggerExportWithBody ( ctx context . Context , id queryapi . ClientID , contentType string , body io . Reader , reqEditors ... queryapi . RequestEditorFn ) ( * http . Response , 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 TriggerExportWithBody" )
}
var r0 * http . Response
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 ) ( * http . Response , 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 ) * http . Response ) ; ok {
2025-03-11 16:31:06 +00:00
r0 = rf ( ctx , id , contentType , body , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * http . Response )
}
}
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
}
// MockClientInterface_TriggerExportWithBody_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TriggerExportWithBody'
type MockClientInterface_TriggerExportWithBody_Call struct {
* mock . Call
}
// TriggerExportWithBody 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 * MockClientInterface_Expecter ) TriggerExportWithBody ( ctx interface { } , id interface { } , contentType interface { } , body interface { } , reqEditors ... interface { } ) * MockClientInterface_TriggerExportWithBody_Call {
return & MockClientInterface_TriggerExportWithBody_Call { Call : _e . mock . On ( "TriggerExportWithBody" ,
append ( [ ] interface { } { ctx , id , contentType , body } , reqEditors ... ) ... ) }
}
2025-05-08 16:04:45 +00:00
func ( _c * MockClientInterface_TriggerExportWithBody_Call ) Run ( run func ( ctx context . Context , id queryapi . ClientID , contentType string , body io . Reader , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientInterface_TriggerExportWithBody_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
}
func ( _c * MockClientInterface_TriggerExportWithBody_Call ) Return ( _a0 * http . Response , _a1 error ) * MockClientInterface_TriggerExportWithBody_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2025-05-08 16:04:45 +00:00
func ( _c * MockClientInterface_TriggerExportWithBody_Call ) RunAndReturn ( run func ( context . Context , queryapi . ClientID , string , io . Reader , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) * MockClientInterface_TriggerExportWithBody_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Return ( run )
return _c
}
2025-10-23 22:57:15 +00:00
// UpdateAdminUser provides a mock function with given fields: ctx, email, body, reqEditors
func ( _m * MockClientInterface ) UpdateAdminUser ( ctx context . Context , email queryapi . UserEmail , body queryapi . UpdateAdminUserJSONRequestBody , reqEditors ... queryapi . RequestEditorFn ) ( * http . Response , error ) {
_va := make ( [ ] interface { } , len ( reqEditors ) )
for _i := range reqEditors {
_va [ _i ] = reqEditors [ _i ]
}
var _ca [ ] interface { }
_ca = append ( _ca , ctx , email , body )
_ca = append ( _ca , _va ... )
ret := _m . Called ( _ca ... )
if len ( ret ) == 0 {
panic ( "no return value specified for UpdateAdminUser" )
}
var r0 * http . Response
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . UserEmail , queryapi . UpdateAdminUserJSONRequestBody , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) ; ok {
return rf ( ctx , email , body , reqEditors ... )
}
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . UserEmail , queryapi . UpdateAdminUserJSONRequestBody , ... queryapi . RequestEditorFn ) * http . Response ) ; ok {
r0 = rf ( ctx , email , body , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * http . Response )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , queryapi . UserEmail , queryapi . UpdateAdminUserJSONRequestBody , ... queryapi . RequestEditorFn ) error ) ; ok {
r1 = rf ( ctx , email , body , reqEditors ... )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// MockClientInterface_UpdateAdminUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateAdminUser'
type MockClientInterface_UpdateAdminUser_Call struct {
* mock . Call
}
// UpdateAdminUser is a helper method to define mock.On call
// - ctx context.Context
// - email queryapi.UserEmail
// - body queryapi.UpdateAdminUserJSONRequestBody
// - reqEditors ...queryapi.RequestEditorFn
func ( _e * MockClientInterface_Expecter ) UpdateAdminUser ( ctx interface { } , email interface { } , body interface { } , reqEditors ... interface { } ) * MockClientInterface_UpdateAdminUser_Call {
return & MockClientInterface_UpdateAdminUser_Call { Call : _e . mock . On ( "UpdateAdminUser" ,
append ( [ ] interface { } { ctx , email , body } , reqEditors ... ) ... ) }
}
func ( _c * MockClientInterface_UpdateAdminUser_Call ) Run ( run func ( ctx context . Context , email queryapi . UserEmail , body queryapi . UpdateAdminUserJSONRequestBody , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientInterface_UpdateAdminUser_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 . UserEmail ) , args [ 2 ] . ( queryapi . UpdateAdminUserJSONRequestBody ) , variadicArgs ... )
} )
return _c
}
func ( _c * MockClientInterface_UpdateAdminUser_Call ) Return ( _a0 * http . Response , _a1 error ) * MockClientInterface_UpdateAdminUser_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
func ( _c * MockClientInterface_UpdateAdminUser_Call ) RunAndReturn ( run func ( context . Context , queryapi . UserEmail , queryapi . UpdateAdminUserJSONRequestBody , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) * MockClientInterface_UpdateAdminUser_Call {
_c . Call . Return ( run )
return _c
}
// UpdateAdminUserWithBody provides a mock function with given fields: ctx, email, contentType, body, reqEditors
func ( _m * MockClientInterface ) UpdateAdminUserWithBody ( ctx context . Context , email queryapi . UserEmail , contentType string , body io . Reader , reqEditors ... queryapi . RequestEditorFn ) ( * http . Response , error ) {
_va := make ( [ ] interface { } , len ( reqEditors ) )
for _i := range reqEditors {
_va [ _i ] = reqEditors [ _i ]
}
var _ca [ ] interface { }
_ca = append ( _ca , ctx , email , contentType , body )
_ca = append ( _ca , _va ... )
ret := _m . Called ( _ca ... )
if len ( ret ) == 0 {
panic ( "no return value specified for UpdateAdminUserWithBody" )
}
var r0 * http . Response
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . UserEmail , string , io . Reader , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) ; ok {
return rf ( ctx , email , contentType , body , reqEditors ... )
}
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . UserEmail , string , io . Reader , ... queryapi . RequestEditorFn ) * http . Response ) ; ok {
r0 = rf ( ctx , email , contentType , body , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * http . Response )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , queryapi . UserEmail , string , io . Reader , ... queryapi . RequestEditorFn ) error ) ; ok {
r1 = rf ( ctx , email , contentType , body , reqEditors ... )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// MockClientInterface_UpdateAdminUserWithBody_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateAdminUserWithBody'
type MockClientInterface_UpdateAdminUserWithBody_Call struct {
* mock . Call
}
// UpdateAdminUserWithBody is a helper method to define mock.On call
// - ctx context.Context
// - email queryapi.UserEmail
// - contentType string
// - body io.Reader
// - reqEditors ...queryapi.RequestEditorFn
func ( _e * MockClientInterface_Expecter ) UpdateAdminUserWithBody ( ctx interface { } , email interface { } , contentType interface { } , body interface { } , reqEditors ... interface { } ) * MockClientInterface_UpdateAdminUserWithBody_Call {
return & MockClientInterface_UpdateAdminUserWithBody_Call { Call : _e . mock . On ( "UpdateAdminUserWithBody" ,
append ( [ ] interface { } { ctx , email , contentType , body } , reqEditors ... ) ... ) }
}
func ( _c * MockClientInterface_UpdateAdminUserWithBody_Call ) Run ( run func ( ctx context . Context , email queryapi . UserEmail , contentType string , body io . Reader , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientInterface_UpdateAdminUserWithBody_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 . UserEmail ) , args [ 2 ] . ( string ) , args [ 3 ] . ( io . Reader ) , variadicArgs ... )
} )
return _c
}
func ( _c * MockClientInterface_UpdateAdminUserWithBody_Call ) Return ( _a0 * http . Response , _a1 error ) * MockClientInterface_UpdateAdminUserWithBody_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
func ( _c * MockClientInterface_UpdateAdminUserWithBody_Call ) RunAndReturn ( run func ( context . Context , queryapi . UserEmail , string , io . Reader , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) * MockClientInterface_UpdateAdminUserWithBody_Call {
_c . Call . Return ( run )
return _c
}
2025-03-11 16:31:06 +00:00
// UpdateClient provides a mock function with given fields: ctx, id, body, reqEditors
2025-05-08 16:04:45 +00:00
func ( _m * MockClientInterface ) UpdateClient ( ctx context . Context , id queryapi . ClientID , body queryapi . UpdateClientJSONRequestBody , reqEditors ... queryapi . RequestEditorFn ) ( * http . Response , 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 UpdateClient" )
}
var r0 * http . Response
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 ) ( * http . Response , 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 ) * http . Response ) ; ok {
2025-03-11 16:31:06 +00:00
r0 = rf ( ctx , id , body , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * http . Response )
}
}
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
}
// MockClientInterface_UpdateClient_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateClient'
type MockClientInterface_UpdateClient_Call struct {
* mock . Call
}
// UpdateClient 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 * MockClientInterface_Expecter ) UpdateClient ( ctx interface { } , id interface { } , body interface { } , reqEditors ... interface { } ) * MockClientInterface_UpdateClient_Call {
return & MockClientInterface_UpdateClient_Call { Call : _e . mock . On ( "UpdateClient" ,
append ( [ ] interface { } { ctx , id , body } , reqEditors ... ) ... ) }
}
2025-05-08 16:04:45 +00:00
func ( _c * MockClientInterface_UpdateClient_Call ) Run ( run func ( ctx context . Context , id queryapi . ClientID , body queryapi . UpdateClientJSONRequestBody , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientInterface_UpdateClient_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
}
func ( _c * MockClientInterface_UpdateClient_Call ) Return ( _a0 * http . Response , _a1 error ) * MockClientInterface_UpdateClient_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2025-05-08 16:04:45 +00:00
func ( _c * MockClientInterface_UpdateClient_Call ) RunAndReturn ( run func ( context . Context , queryapi . ClientID , queryapi . UpdateClientJSONRequestBody , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) * MockClientInterface_UpdateClient_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Return ( run )
return _c
}
// UpdateClientWithBody provides a mock function with given fields: ctx, id, contentType, body, reqEditors
2025-05-08 16:04:45 +00:00
func ( _m * MockClientInterface ) UpdateClientWithBody ( ctx context . Context , id queryapi . ClientID , contentType string , body io . Reader , reqEditors ... queryapi . RequestEditorFn ) ( * http . Response , 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 UpdateClientWithBody" )
}
var r0 * http . Response
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 ) ( * http . Response , 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 ) * http . Response ) ; ok {
2025-03-11 16:31:06 +00:00
r0 = rf ( ctx , id , contentType , body , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * http . Response )
}
}
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
}
// MockClientInterface_UpdateClientWithBody_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateClientWithBody'
type MockClientInterface_UpdateClientWithBody_Call struct {
* mock . Call
}
// UpdateClientWithBody 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 * MockClientInterface_Expecter ) UpdateClientWithBody ( ctx interface { } , id interface { } , contentType interface { } , body interface { } , reqEditors ... interface { } ) * MockClientInterface_UpdateClientWithBody_Call {
return & MockClientInterface_UpdateClientWithBody_Call { Call : _e . mock . On ( "UpdateClientWithBody" ,
append ( [ ] interface { } { ctx , id , contentType , body } , reqEditors ... ) ... ) }
}
2025-05-08 16:04:45 +00:00
func ( _c * MockClientInterface_UpdateClientWithBody_Call ) Run ( run func ( ctx context . Context , id queryapi . ClientID , contentType string , body io . Reader , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientInterface_UpdateClientWithBody_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
}
func ( _c * MockClientInterface_UpdateClientWithBody_Call ) Return ( _a0 * http . Response , _a1 error ) * MockClientInterface_UpdateClientWithBody_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2025-05-08 16:04:45 +00:00
func ( _c * MockClientInterface_UpdateClientWithBody_Call ) RunAndReturn ( run func ( context . Context , queryapi . ClientID , string , io . Reader , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) * MockClientInterface_UpdateClientWithBody_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Return ( run )
return _c
}
// UpdateQuery provides a mock function with given fields: ctx, id, body, reqEditors
2025-05-08 16:04:45 +00:00
func ( _m * MockClientInterface ) UpdateQuery ( ctx context . Context , id queryapi . QueryID , body queryapi . UpdateQueryJSONRequestBody , reqEditors ... queryapi . RequestEditorFn ) ( * http . Response , 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 UpdateQuery" )
}
var r0 * http . Response
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 ) ( * http . Response , 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 ) * http . Response ) ; ok {
2025-03-11 16:31:06 +00:00
r0 = rf ( ctx , id , body , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * http . Response )
}
}
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
}
// MockClientInterface_UpdateQuery_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateQuery'
type MockClientInterface_UpdateQuery_Call struct {
* mock . Call
}
// UpdateQuery 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 * MockClientInterface_Expecter ) UpdateQuery ( ctx interface { } , id interface { } , body interface { } , reqEditors ... interface { } ) * MockClientInterface_UpdateQuery_Call {
return & MockClientInterface_UpdateQuery_Call { Call : _e . mock . On ( "UpdateQuery" ,
append ( [ ] interface { } { ctx , id , body } , reqEditors ... ) ... ) }
}
2025-05-08 16:04:45 +00:00
func ( _c * MockClientInterface_UpdateQuery_Call ) Run ( run func ( ctx context . Context , id queryapi . QueryID , body queryapi . UpdateQueryJSONRequestBody , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientInterface_UpdateQuery_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
}
func ( _c * MockClientInterface_UpdateQuery_Call ) Return ( _a0 * http . Response , _a1 error ) * MockClientInterface_UpdateQuery_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2025-05-08 16:04:45 +00:00
func ( _c * MockClientInterface_UpdateQuery_Call ) RunAndReturn ( run func ( context . Context , queryapi . QueryID , queryapi . UpdateQueryJSONRequestBody , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) * MockClientInterface_UpdateQuery_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Return ( run )
return _c
}
// UpdateQueryWithBody provides a mock function with given fields: ctx, id, contentType, body, reqEditors
2025-05-08 16:04:45 +00:00
func ( _m * MockClientInterface ) UpdateQueryWithBody ( ctx context . Context , id queryapi . QueryID , contentType string , body io . Reader , reqEditors ... queryapi . RequestEditorFn ) ( * http . Response , 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 UpdateQueryWithBody" )
}
var r0 * http . Response
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 ) ( * http . Response , 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 ) * http . Response ) ; ok {
2025-03-11 16:31:06 +00:00
r0 = rf ( ctx , id , contentType , body , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * http . Response )
}
}
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
}
// MockClientInterface_UpdateQueryWithBody_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateQueryWithBody'
type MockClientInterface_UpdateQueryWithBody_Call struct {
* mock . Call
}
// UpdateQueryWithBody 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 * MockClientInterface_Expecter ) UpdateQueryWithBody ( ctx interface { } , id interface { } , contentType interface { } , body interface { } , reqEditors ... interface { } ) * MockClientInterface_UpdateQueryWithBody_Call {
return & MockClientInterface_UpdateQueryWithBody_Call { Call : _e . mock . On ( "UpdateQueryWithBody" ,
append ( [ ] interface { } { ctx , id , contentType , body } , reqEditors ... ) ... ) }
}
2025-05-08 16:04:45 +00:00
func ( _c * MockClientInterface_UpdateQueryWithBody_Call ) Run ( run func ( ctx context . Context , id queryapi . QueryID , contentType string , body io . Reader , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientInterface_UpdateQueryWithBody_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
}
func ( _c * MockClientInterface_UpdateQueryWithBody_Call ) Return ( _a0 * http . Response , _a1 error ) * MockClientInterface_UpdateQueryWithBody_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2025-05-08 16:04:45 +00:00
func ( _c * MockClientInterface_UpdateQueryWithBody_Call ) RunAndReturn ( run func ( context . Context , queryapi . QueryID , string , io . Reader , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) * MockClientInterface_UpdateQueryWithBody_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Return ( run )
return _c
}
2025-08-05 07:03:35 -07:00
// UploadDocumentBatchWithBody provides a mock function with given fields: ctx, id, contentType, body, reqEditors
func ( _m * MockClientInterface ) UploadDocumentBatchWithBody ( ctx context . Context , id queryapi . ClientID , contentType string , body io . Reader , reqEditors ... queryapi . RequestEditorFn ) ( * http . Response , 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 UploadDocumentBatchWithBody" )
}
var r0 * http . Response
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . ClientID , string , io . Reader , ... queryapi . RequestEditorFn ) ( * http . Response , 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 ) * http . Response ) ; ok {
r0 = rf ( ctx , id , contentType , body , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * http . Response )
}
}
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
}
// MockClientInterface_UploadDocumentBatchWithBody_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UploadDocumentBatchWithBody'
type MockClientInterface_UploadDocumentBatchWithBody_Call struct {
* mock . Call
}
// UploadDocumentBatchWithBody 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 * MockClientInterface_Expecter ) UploadDocumentBatchWithBody ( ctx interface { } , id interface { } , contentType interface { } , body interface { } , reqEditors ... interface { } ) * MockClientInterface_UploadDocumentBatchWithBody_Call {
return & MockClientInterface_UploadDocumentBatchWithBody_Call { Call : _e . mock . On ( "UploadDocumentBatchWithBody" ,
append ( [ ] interface { } { ctx , id , contentType , body } , reqEditors ... ) ... ) }
}
func ( _c * MockClientInterface_UploadDocumentBatchWithBody_Call ) Run ( run func ( ctx context . Context , id queryapi . ClientID , contentType string , body io . Reader , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientInterface_UploadDocumentBatchWithBody_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 * MockClientInterface_UploadDocumentBatchWithBody_Call ) Return ( _a0 * http . Response , _a1 error ) * MockClientInterface_UploadDocumentBatchWithBody_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
func ( _c * MockClientInterface_UploadDocumentBatchWithBody_Call ) RunAndReturn ( run func ( context . Context , queryapi . ClientID , string , io . Reader , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) * MockClientInterface_UploadDocumentBatchWithBody_Call {
_c . Call . Return ( run )
return _c
}
2025-05-27 15:28:46 +00:00
// UploadDocumentWithBody provides a mock function with given fields: ctx, id, contentType, body, reqEditors
func ( _m * MockClientInterface ) UploadDocumentWithBody ( ctx context . Context , id queryapi . ClientID , contentType string , body io . Reader , reqEditors ... queryapi . RequestEditorFn ) ( * http . Response , 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 UploadDocumentWithBody" )
}
var r0 * http . Response
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . ClientID , string , io . Reader , ... queryapi . RequestEditorFn ) ( * http . Response , 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 ) * http . Response ) ; ok {
r0 = rf ( ctx , id , contentType , body , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * http . Response )
}
}
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
}
// MockClientInterface_UploadDocumentWithBody_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UploadDocumentWithBody'
type MockClientInterface_UploadDocumentWithBody_Call struct {
* mock . Call
}
// UploadDocumentWithBody 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 * MockClientInterface_Expecter ) UploadDocumentWithBody ( ctx interface { } , id interface { } , contentType interface { } , body interface { } , reqEditors ... interface { } ) * MockClientInterface_UploadDocumentWithBody_Call {
return & MockClientInterface_UploadDocumentWithBody_Call { Call : _e . mock . On ( "UploadDocumentWithBody" ,
append ( [ ] interface { } { ctx , id , contentType , body } , reqEditors ... ) ... ) }
}
func ( _c * MockClientInterface_UploadDocumentWithBody_Call ) Run ( run func ( ctx context . Context , id queryapi . ClientID , contentType string , body io . Reader , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientInterface_UploadDocumentWithBody_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 * MockClientInterface_UploadDocumentWithBody_Call ) Return ( _a0 * http . Response , _a1 error ) * MockClientInterface_UploadDocumentWithBody_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
func ( _c * MockClientInterface_UploadDocumentWithBody_Call ) RunAndReturn ( run func ( context . Context , queryapi . ClientID , string , io . Reader , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) * MockClientInterface_UploadDocumentWithBody_Call {
_c . Call . Return ( run )
return _c
}
2025-03-11 16:31:06 +00:00
// NewMockClientInterface creates a new instance of MockClientInterface. 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 NewMockClientInterface ( t interface {
mock . TestingT
Cleanup ( func ( ) )
} ) * MockClientInterface {
mock := & MockClientInterface { }
mock . Mock . Test ( t )
t . Cleanup ( func ( ) { mock . AssertExpectations ( t ) } )
return mock
}