// Code generated by mockery v2.53.3. DO NOT EDIT.

package mock

import (
	mock "github.com/stretchr/testify/mock"
	feature_gate "github.com/tidbcloud/dataflow-service-ng/app/internal/feature_gate"
)

// FeatureGate is an autogenerated mock type for the FeatureGate type
type FeatureGate struct {
	mock.Mock
}

// IsFeatureEnabled provides a mock function with given fields: req, feature
func (_m *FeatureGate) IsFeatureEnabled(req *feature_gate.QueryFeatureGateReq, feature string) bool {
	ret := _m.Called(req, feature)

	if len(ret) == 0 {
		panic("no return value specified for IsFeatureEnabled")
	}

	var r0 bool
	if rf, ok := ret.Get(0).(func(*feature_gate.QueryFeatureGateReq, string) bool); ok {
		r0 = rf(req, feature)
	} else {
		r0 = ret.Get(0).(bool)
	}

	return r0
}

// QueryEnabledFeatures provides a mock function with given fields: req
func (_m *FeatureGate) QueryEnabledFeatures(req *feature_gate.QueryFeatureGateReq) feature_gate.QueryFeatureGateResp {
	ret := _m.Called(req)

	if len(ret) == 0 {
		panic("no return value specified for QueryEnabledFeatures")
	}

	var r0 feature_gate.QueryFeatureGateResp
	if rf, ok := ret.Get(0).(func(*feature_gate.QueryFeatureGateReq) feature_gate.QueryFeatureGateResp); ok {
		r0 = rf(req)
	} else {
		r0 = ret.Get(0).(feature_gate.QueryFeatureGateResp)
	}

	return r0
}

// NewFeatureGate creates a new instance of FeatureGate. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
// The first argument is typically a *testing.T value.
func NewFeatureGate(t interface {
	mock.TestingT
	Cleanup(func())
}) *FeatureGate {
	mock := &FeatureGate{}
	mock.Mock.Test(t)

	t.Cleanup(func() { mock.AssertExpectations(t) })

	return mock
}
