// Code generated by mockery v2.44.1. DO NOT EDIT.

package mocks

import (
	context "context"

	mock "github.com/stretchr/testify/mock"

	v1beta1 "istio.io/client-go/pkg/apis/networking/v1beta1"
)

// Client is an autogenerated mock type for the Client type
type Client struct {
	mock.Mock
}

// CreateVirtualService provides a mock function with given fields: ctx, namespace, vs
func (_m *Client) CreateVirtualService(ctx context.Context, namespace string, vs *v1beta1.VirtualService) (*v1beta1.VirtualService, error) {
	ret := _m.Called(ctx, namespace, vs)

	if len(ret) == 0 {
		panic("no return value specified for CreateVirtualService")
	}

	var r0 *v1beta1.VirtualService
	var r1 error
	if rf, ok := ret.Get(0).(func(context.Context, string, *v1beta1.VirtualService) (*v1beta1.VirtualService, error)); ok {
		return rf(ctx, namespace, vs)
	}
	if rf, ok := ret.Get(0).(func(context.Context, string, *v1beta1.VirtualService) *v1beta1.VirtualService); ok {
		r0 = rf(ctx, namespace, vs)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*v1beta1.VirtualService)
		}
	}

	if rf, ok := ret.Get(1).(func(context.Context, string, *v1beta1.VirtualService) error); ok {
		r1 = rf(ctx, namespace, vs)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

// DeleteVirtualService provides a mock function with given fields: ctx, namespace, name
func (_m *Client) DeleteVirtualService(ctx context.Context, namespace string, name string) error {
	ret := _m.Called(ctx, namespace, name)

	if len(ret) == 0 {
		panic("no return value specified for DeleteVirtualService")
	}

	var r0 error
	if rf, ok := ret.Get(0).(func(context.Context, string, string) error); ok {
		r0 = rf(ctx, namespace, name)
	} else {
		r0 = ret.Error(0)
	}

	return r0
}

// GetVirtualService provides a mock function with given fields: ctx, namespace, name
func (_m *Client) GetVirtualService(ctx context.Context, namespace string, name string) (*v1beta1.VirtualService, error) {
	ret := _m.Called(ctx, namespace, name)

	if len(ret) == 0 {
		panic("no return value specified for GetVirtualService")
	}

	var r0 *v1beta1.VirtualService
	var r1 error
	if rf, ok := ret.Get(0).(func(context.Context, string, string) (*v1beta1.VirtualService, error)); ok {
		return rf(ctx, namespace, name)
	}
	if rf, ok := ret.Get(0).(func(context.Context, string, string) *v1beta1.VirtualService); ok {
		r0 = rf(ctx, namespace, name)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*v1beta1.VirtualService)
		}
	}

	if rf, ok := ret.Get(1).(func(context.Context, string, string) error); ok {
		r1 = rf(ctx, namespace, name)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

// PatchVirtualService provides a mock function with given fields: ctx, namespace, vs
func (_m *Client) PatchVirtualService(ctx context.Context, namespace string, vs *v1beta1.VirtualService) (*v1beta1.VirtualService, error) {
	ret := _m.Called(ctx, namespace, vs)

	if len(ret) == 0 {
		panic("no return value specified for PatchVirtualService")
	}

	var r0 *v1beta1.VirtualService
	var r1 error
	if rf, ok := ret.Get(0).(func(context.Context, string, *v1beta1.VirtualService) (*v1beta1.VirtualService, error)); ok {
		return rf(ctx, namespace, vs)
	}
	if rf, ok := ret.Get(0).(func(context.Context, string, *v1beta1.VirtualService) *v1beta1.VirtualService); ok {
		r0 = rf(ctx, namespace, vs)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*v1beta1.VirtualService)
		}
	}

	if rf, ok := ret.Get(1).(func(context.Context, string, *v1beta1.VirtualService) error); ok {
		r1 = rf(ctx, namespace, vs)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

// NewClient creates a new instance of Client. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
// The first argument is typically a *testing.T value.
func NewClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *Client {
	mock := &Client{}
	mock.Mock.Test(t)

	t.Cleanup(func() { mock.AssertExpectations(t) })

	return mock
}
