func (m *mAnnotatorMockSaveAnnotation) Return(r error) *AnnotatorMock {
	m.mock.SaveAnnotationFunc = func(p context.Context, p1 grafana.Annotation) error {
		return r
	}
	return m.mock
}
Return sets up a mock for Annotator.SaveAnnotation to return Return's arguments
package mocks
import (
	context "context"
	"sync/atomic"
	"time"
	"github.com/gojuno/minimock"
	grafana "github.com/hypnoglow/chronologist/internal/grafana"
	testify_assert "github.com/stretchr/testify/assert"
)
type AnnotatorMock struct {
	t minimock.Tester
	DeleteAnnotationFunc       func(p context.Context, p1 int) (r error)
	DeleteAnnotationCounter    uint64
	DeleteAnnotationPreCounter uint64
	DeleteAnnotationMock       mAnnotatorMockDeleteAnnotation
	GetAnnotationsFunc       func(p context.Context, p1 grafana.GetAnnotationsParams) (r grafana.Annotations, r1 error)
	GetAnnotationsCounter    uint64
	GetAnnotationsPreCounter uint64
	GetAnnotationsMock       mAnnotatorMockGetAnnotations
	SaveAnnotationFunc       func(p context.Context, p1 grafana.Annotation) (r error)
	SaveAnnotationCounter    uint64
	SaveAnnotationPreCounter uint64
	SaveAnnotationMock       mAnnotatorMockSaveAnnotation
}
func NewAnnotatorMock(t minimock.Tester) *AnnotatorMock {
	m := &AnnotatorMock{t: t}
	if controller, ok := t.(minimock.MockController); ok {
		controller.RegisterMocker(m)
	}
	m.DeleteAnnotationMock = mAnnotatorMockDeleteAnnotation{mock: m}
	m.GetAnnotationsMock = mAnnotatorMockGetAnnotations{mock: m}
	m.SaveAnnotationMock = mAnnotatorMockSaveAnnotation{mock: m}
	return m
}
type mAnnotatorMockDeleteAnnotation struct {
	mock             *AnnotatorMock
	mockExpectations *AnnotatorMockDeleteAnnotationParams
}
type AnnotatorMockDeleteAnnotationParams struct {
	p  context.Context
	p1 int
}
func (m *mAnnotatorMockDeleteAnnotation) Expect(p context.Context, p1 int) *mAnnotatorMockDeleteAnnotation {
	m.mockExpectations = &AnnotatorMockDeleteAnnotationParams{p, p1}
	return m
}
func (m *mAnnotatorMockDeleteAnnotation) Return(r error) *AnnotatorMock {
	m.mock.DeleteAnnotationFunc = func(p context.Context, p1 int) error {
		return r
	}
	return m.mock
}
func (m *mAnnotatorMockDeleteAnnotation) Set(f func(p context.Context, p1 int) (r error)) *AnnotatorMock {
	m.mock.DeleteAnnotationFunc = f
	m.mockExpectations = nil
	return m.mock
}
func (m *AnnotatorMock) DeleteAnnotation(p context.Context, p1 int) (r error) {
	atomic.AddUint64(&m.DeleteAnnotationPreCounter, 1)
	defer atomic.AddUint64(&m.DeleteAnnotationCounter, 1)
	if m.DeleteAnnotationMock.mockExpectations != nil {
		testify_assert.Equal(m.t, *m.DeleteAnnotationMock.mockExpectations, AnnotatorMockDeleteAnnotationParams{p, p1},
			"Annotator.DeleteAnnotation got unexpected parameters")
		if m.DeleteAnnotationFunc == nil {
			m.t.Fatal("No results are set for the AnnotatorMock.DeleteAnnotation")
			return
		}
	}
	if m.DeleteAnnotationFunc == nil {
		m.t.Fatal("Unexpected call to AnnotatorMock.DeleteAnnotation")
		return
	}
	return m.DeleteAnnotationFunc(p, p1)
}
func (m *AnnotatorMock) DeleteAnnotationMinimockCounter() uint64 {
	return atomic.LoadUint64(&m.DeleteAnnotationCounter)
}
func (m *AnnotatorMock) DeleteAnnotationMinimockPreCounter() uint64 {
	return atomic.LoadUint64(&m.DeleteAnnotationPreCounter)
}
type mAnnotatorMockGetAnnotations struct {
	mock             *AnnotatorMock
	mockExpectations *AnnotatorMockGetAnnotationsParams
}
type AnnotatorMockGetAnnotationsParams struct {
	p  context.Context
	p1 grafana.GetAnnotationsParams
}
func (m *mAnnotatorMockGetAnnotations) Expect(p context.Context, p1 grafana.GetAnnotationsParams) *mAnnotatorMockGetAnnotations {
	m.mockExpectations = &AnnotatorMockGetAnnotationsParams{p, p1}
	return m
}
func (m *mAnnotatorMockGetAnnotations) Return(r grafana.Annotations, r1 error) *AnnotatorMock {
	m.mock.GetAnnotationsFunc = func(p context.Context, p1 grafana.GetAnnotationsParams) (grafana.Annotations, error) {
		return r, r1
	}
	return m.mock
}
func (m *mAnnotatorMockGetAnnotations) Set(f func(p context.Context, p1 grafana.GetAnnotationsParams) (r grafana.Annotations, r1 error)) *AnnotatorMock {
	m.mock.GetAnnotationsFunc = f
	m.mockExpectations = nil
	return m.mock
}
func (m *AnnotatorMock) GetAnnotations(p context.Context, p1 grafana.GetAnnotationsParams) (r grafana.Annotations, r1 error) {
	atomic.AddUint64(&m.GetAnnotationsPreCounter, 1)
	defer atomic.AddUint64(&m.GetAnnotationsCounter, 1)
	if m.GetAnnotationsMock.mockExpectations != nil {
		testify_assert.Equal(m.t, *m.GetAnnotationsMock.mockExpectations, AnnotatorMockGetAnnotationsParams{p, p1},
			"Annotator.GetAnnotations got unexpected parameters")
		if m.GetAnnotationsFunc == nil {
			m.t.Fatal("No results are set for the AnnotatorMock.GetAnnotations")
			return
		}
	}
	if m.GetAnnotationsFunc == nil {
		m.t.Fatal("Unexpected call to AnnotatorMock.GetAnnotations")
		return
	}
	return m.GetAnnotationsFunc(p, p1)
}
func (m *AnnotatorMock) GetAnnotationsMinimockCounter() uint64 {
	return atomic.LoadUint64(&m.GetAnnotationsCounter)
}
func (m *AnnotatorMock) GetAnnotationsMinimockPreCounter() uint64 {
	return atomic.LoadUint64(&m.GetAnnotationsPreCounter)
}
type mAnnotatorMockSaveAnnotation struct {
	mock             *AnnotatorMock
	mockExpectations *AnnotatorMockSaveAnnotationParams
}
type AnnotatorMockSaveAnnotationParams struct {
	p  context.Context
	p1 grafana.Annotation
}
func (m *mAnnotatorMockSaveAnnotation) Expect(p context.Context, p1 grafana.Annotation) *mAnnotatorMockSaveAnnotation {
	m.mockExpectations = &AnnotatorMockSaveAnnotationParams{p, p1}
	return m
}