// Code generated by MockGen. DO NOT EDIT.
// Source: ops_count.go
//
// Generated by this command:
//
//	mockgen -source=ops_count.go -package=mock -destination=./mock/ops_count.go
//

// Package mock is a generated GoMock package.
package mock

import (
	context "context"
	reflect "reflect"

	gomock "go.uber.org/mock/gomock"

	domain "github.com/bucketeer-io/bucketeer/v2/pkg/opsevent/domain"
	mysql "github.com/bucketeer-io/bucketeer/v2/pkg/storage/v2/mysql"
	autoops "github.com/bucketeer-io/bucketeer/v2/proto/autoops"
)

// MockOpsCountStorage is a mock of OpsCountStorage interface.
type MockOpsCountStorage struct {
	ctrl     *gomock.Controller
	recorder *MockOpsCountStorageMockRecorder
}

// MockOpsCountStorageMockRecorder is the mock recorder for MockOpsCountStorage.
type MockOpsCountStorageMockRecorder struct {
	mock *MockOpsCountStorage
}

// NewMockOpsCountStorage creates a new mock instance.
func NewMockOpsCountStorage(ctrl *gomock.Controller) *MockOpsCountStorage {
	mock := &MockOpsCountStorage{ctrl: ctrl}
	mock.recorder = &MockOpsCountStorageMockRecorder{mock}
	return mock
}

// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockOpsCountStorage) EXPECT() *MockOpsCountStorageMockRecorder {
	return m.recorder
}

// ListOpsCounts mocks base method.
func (m *MockOpsCountStorage) ListOpsCounts(ctx context.Context, options *mysql.ListOptions) ([]*autoops.OpsCount, int, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "ListOpsCounts", ctx, options)
	ret0, _ := ret[0].([]*autoops.OpsCount)
	ret1, _ := ret[1].(int)
	ret2, _ := ret[2].(error)
	return ret0, ret1, ret2
}

// ListOpsCounts indicates an expected call of ListOpsCounts.
func (mr *MockOpsCountStorageMockRecorder) ListOpsCounts(ctx, options any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListOpsCounts", reflect.TypeOf((*MockOpsCountStorage)(nil).ListOpsCounts), ctx, options)
}

// UpsertOpsCount mocks base method.
func (m *MockOpsCountStorage) UpsertOpsCount(ctx context.Context, environmentId string, oc *domain.OpsCount) error {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "UpsertOpsCount", ctx, environmentId, oc)
	ret0, _ := ret[0].(error)
	return ret0
}

// UpsertOpsCount indicates an expected call of UpsertOpsCount.
func (mr *MockOpsCountStorageMockRecorder) UpsertOpsCount(ctx, environmentId, oc any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpsertOpsCount", reflect.TypeOf((*MockOpsCountStorage)(nil).UpsertOpsCount), ctx, environmentId, oc)
}
