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

// MockEnvironmentStorage is a mock of EnvironmentStorage interface.
type MockEnvironmentStorage struct {
	ctrl     *gomock.Controller
	recorder *MockEnvironmentStorageMockRecorder
}

// MockEnvironmentStorageMockRecorder is the mock recorder for MockEnvironmentStorage.
type MockEnvironmentStorageMockRecorder struct {
	mock *MockEnvironmentStorage
}

// NewMockEnvironmentStorage creates a new mock instance.
func NewMockEnvironmentStorage(ctrl *gomock.Controller) *MockEnvironmentStorage {
	mock := &MockEnvironmentStorage{ctrl: ctrl}
	mock.recorder = &MockEnvironmentStorageMockRecorder{mock}
	return mock
}

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

// CreateEnvironmentV2 mocks base method.
func (m *MockEnvironmentStorage) CreateEnvironmentV2(ctx context.Context, e *domain.EnvironmentV2) error {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "CreateEnvironmentV2", ctx, e)
	ret0, _ := ret[0].(error)
	return ret0
}

// CreateEnvironmentV2 indicates an expected call of CreateEnvironmentV2.
func (mr *MockEnvironmentStorageMockRecorder) CreateEnvironmentV2(ctx, e any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateEnvironmentV2", reflect.TypeOf((*MockEnvironmentStorage)(nil).CreateEnvironmentV2), ctx, e)
}

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

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

// ListEnvironmentsV2 mocks base method.
func (m *MockEnvironmentStorage) ListEnvironmentsV2(ctx context.Context, options *mysql.ListOptions) ([]*environment.EnvironmentV2, int, int64, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "ListEnvironmentsV2", ctx, options)
	ret0, _ := ret[0].([]*environment.EnvironmentV2)
	ret1, _ := ret[1].(int)
	ret2, _ := ret[2].(int64)
	ret3, _ := ret[3].(error)
	return ret0, ret1, ret2, ret3
}

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

// UpdateEnvironmentV2 mocks base method.
func (m *MockEnvironmentStorage) UpdateEnvironmentV2(ctx context.Context, e *domain.EnvironmentV2) error {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "UpdateEnvironmentV2", ctx, e)
	ret0, _ := ret[0].(error)
	return ret0
}

// UpdateEnvironmentV2 indicates an expected call of UpdateEnvironmentV2.
func (mr *MockEnvironmentStorageMockRecorder) UpdateEnvironmentV2(ctx, e any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateEnvironmentV2", reflect.TypeOf((*MockEnvironmentStorage)(nil).UpdateEnvironmentV2), ctx, e)
}
