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

package mocks

import (
	settings "github.com/argoproj/argo-cd/v2/util/settings"
	mock "github.com/stretchr/testify/mock"
)

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

// Get provides a mock function with given fields:
func (_m *SettingsGetter) Get() (*settings.ArgoCDSettings, error) {
	ret := _m.Called()

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

	var r0 *settings.ArgoCDSettings
	var r1 error
	if rf, ok := ret.Get(0).(func() (*settings.ArgoCDSettings, error)); ok {
		return rf()
	}
	if rf, ok := ret.Get(0).(func() *settings.ArgoCDSettings); ok {
		r0 = rf()
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*settings.ArgoCDSettings)
		}
	}

	if rf, ok := ret.Get(1).(func() error); ok {
		r1 = rf()
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

// NewSettingsGetter creates a new instance of SettingsGetter. 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 NewSettingsGetter(t interface {
	mock.TestingT
	Cleanup(func())
}) *SettingsGetter {
	mock := &SettingsGetter{}
	mock.Mock.Test(t)

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

	return mock
}
