// Code generated by MockGen. DO NOT EDIT.
// Source: goal.go
//
// Generated by this command:
//
//	mockgen -source=goal.go -package=mock -destination=./mock/goal.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/experiment/domain"
	mysql "github.com/bucketeer-io/bucketeer/v2/pkg/storage/v2/mysql"
	experiment "github.com/bucketeer-io/bucketeer/v2/proto/experiment"
)

// MockGoalStorage is a mock of GoalStorage interface.
type MockGoalStorage struct {
	ctrl     *gomock.Controller
	recorder *MockGoalStorageMockRecorder
}

// MockGoalStorageMockRecorder is the mock recorder for MockGoalStorage.
type MockGoalStorageMockRecorder struct {
	mock *MockGoalStorage
}

// NewMockGoalStorage creates a new mock instance.
func NewMockGoalStorage(ctrl *gomock.Controller) *MockGoalStorage {
	mock := &MockGoalStorage{ctrl: ctrl}
	mock.recorder = &MockGoalStorageMockRecorder{mock}
	return mock
}

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

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

// CreateGoal indicates an expected call of CreateGoal.
func (mr *MockGoalStorageMockRecorder) CreateGoal(ctx, g, environmentId any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateGoal", reflect.TypeOf((*MockGoalStorage)(nil).CreateGoal), ctx, g, environmentId)
}

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

// DeleteGoal indicates an expected call of DeleteGoal.
func (mr *MockGoalStorageMockRecorder) DeleteGoal(ctx, id, environmentId any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteGoal", reflect.TypeOf((*MockGoalStorage)(nil).DeleteGoal), ctx, id, environmentId)
}

// GetGoal mocks base method.
func (m *MockGoalStorage) GetGoal(ctx context.Context, id, environmentId string) (*domain.Goal, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetGoal", ctx, id, environmentId)
	ret0, _ := ret[0].(*domain.Goal)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// GetGoal indicates an expected call of GetGoal.
func (mr *MockGoalStorageMockRecorder) GetGoal(ctx, id, environmentId any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetGoal", reflect.TypeOf((*MockGoalStorage)(nil).GetGoal), ctx, id, environmentId)
}

// ListGoals mocks base method.
func (m *MockGoalStorage) ListGoals(ctx context.Context, whereParts []mysql.WherePart, orders []*mysql.Order, limit, offset int, isInUseStatus *bool, environmentId string) ([]*experiment.Goal, int, int64, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "ListGoals", ctx, whereParts, orders, limit, offset, isInUseStatus, environmentId)
	ret0, _ := ret[0].([]*experiment.Goal)
	ret1, _ := ret[1].(int)
	ret2, _ := ret[2].(int64)
	ret3, _ := ret[3].(error)
	return ret0, ret1, ret2, ret3
}

// ListGoals indicates an expected call of ListGoals.
func (mr *MockGoalStorageMockRecorder) ListGoals(ctx, whereParts, orders, limit, offset, isInUseStatus, environmentId any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListGoals", reflect.TypeOf((*MockGoalStorage)(nil).ListGoals), ctx, whereParts, orders, limit, offset, isInUseStatus, environmentId)
}

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

// UpdateGoal indicates an expected call of UpdateGoal.
func (mr *MockGoalStorageMockRecorder) UpdateGoal(ctx, g, environmentId any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateGoal", reflect.TypeOf((*MockGoalStorage)(nil).UpdateGoal), ctx, g, environmentId)
}
