// Code generated by mockery v2.15.0. 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()

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

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

	return r0, r1
}

type mockConstructorTestingTNewSettingsGetter interface {
	mock.TestingT
	Cleanup(func())
}

// 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.
func NewSettingsGetter(t mockConstructorTestingTNewSettingsGetter) *SettingsGetter {
	mock := &SettingsGetter{}
	mock.Mock.Test(t)

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

	return mock
}
