// Code generated by mockery v1.0.0. DO NOT EDIT.

package qan

import (
	context "context"

	qanv1beta1 "github.com/percona/pmm/api/qanpb"
	mock "github.com/stretchr/testify/mock"
	grpc "google.golang.org/grpc"
)

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

// Collect provides a mock function with given fields: ctx, in, opts
func (_m *mockQanCollectorClient) Collect(ctx context.Context, in *qanv1beta1.CollectRequest, opts ...grpc.CallOption) (*qanv1beta1.CollectResponse, error) {
	_va := make([]interface{}, len(opts))
	for _i := range opts {
		_va[_i] = opts[_i]
	}
	var _ca []interface{}
	_ca = append(_ca, ctx, in)
	_ca = append(_ca, _va...)
	ret := _m.Called(_ca...)

	var r0 *qanv1beta1.CollectResponse
	if rf, ok := ret.Get(0).(func(context.Context, *qanv1beta1.CollectRequest, ...grpc.CallOption) *qanv1beta1.CollectResponse); ok {
		r0 = rf(ctx, in, opts...)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*qanv1beta1.CollectResponse)
		}
	}

	var r1 error
	if rf, ok := ret.Get(1).(func(context.Context, *qanv1beta1.CollectRequest, ...grpc.CallOption) error); ok {
		r1 = rf(ctx, in, opts...)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}
