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

// MockFeatureStorage is a mock of FeatureStorage interface.
type MockFeatureStorage struct {
	ctrl     *gomock.Controller
	recorder *MockFeatureStorageMockRecorder
}

// MockFeatureStorageMockRecorder is the mock recorder for MockFeatureStorage.
type MockFeatureStorageMockRecorder struct {
	mock *MockFeatureStorage
}

// NewMockFeatureStorage creates a new mock instance.
func NewMockFeatureStorage(ctrl *gomock.Controller) *MockFeatureStorage {
	mock := &MockFeatureStorage{ctrl: ctrl}
	mock.recorder = &MockFeatureStorageMockRecorder{mock}
	return mock
}

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

// CreateFeature mocks base method.
func (m *MockFeatureStorage) CreateFeature(ctx context.Context, feature *domain.Feature, environmentID string) error {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "CreateFeature", ctx, feature, environmentID)
	ret0, _ := ret[0].(error)
	return ret0
}

// CreateFeature indicates an expected call of CreateFeature.
func (mr *MockFeatureStorageMockRecorder) CreateFeature(ctx, feature, environmentID any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateFeature", reflect.TypeOf((*MockFeatureStorage)(nil).CreateFeature), ctx, feature, environmentID)
}

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

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

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

// GetFeatureByVersion indicates an expected call of GetFeatureByVersion.
func (mr *MockFeatureStorageMockRecorder) GetFeatureByVersion(ctx, id, version, environmentID any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetFeatureByVersion", reflect.TypeOf((*MockFeatureStorage)(nil).GetFeatureByVersion), ctx, id, version, environmentID)
}

// GetFeatureSummary mocks base method.
func (m *MockFeatureStorage) GetFeatureSummary(ctx context.Context, environmentID string) (*feature.FeatureSummary, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetFeatureSummary", ctx, environmentID)
	ret0, _ := ret[0].(*feature.FeatureSummary)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// GetFeatureSummary indicates an expected call of GetFeatureSummary.
func (mr *MockFeatureStorageMockRecorder) GetFeatureSummary(ctx, environmentID any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetFeatureSummary", reflect.TypeOf((*MockFeatureStorage)(nil).GetFeatureSummary), ctx, environmentID)
}

// ListAllEnvironmentFeatures mocks base method.
func (m *MockFeatureStorage) ListAllEnvironmentFeatures(ctx context.Context) ([]*feature.EnvironmentFeature, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "ListAllEnvironmentFeatures", ctx)
	ret0, _ := ret[0].([]*feature.EnvironmentFeature)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

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

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

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

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

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

// UpdateFeature mocks base method.
func (m *MockFeatureStorage) UpdateFeature(ctx context.Context, feature *domain.Feature, environmentID string) error {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "UpdateFeature", ctx, feature, environmentID)
	ret0, _ := ret[0].(error)
	return ret0
}

// UpdateFeature indicates an expected call of UpdateFeature.
func (mr *MockFeatureStorageMockRecorder) UpdateFeature(ctx, feature, environmentID any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateFeature", reflect.TypeOf((*MockFeatureStorage)(nil).UpdateFeature), ctx, feature, environmentID)
}
