Files
zeekay 01a52090a9 pkg/client, mocks: regenerate off the apps.hanzo.ai group
clientgen/mockgen hadn't been rerun since the group rename, even though
pkg/apis/application/v1alpha1/doc.go and the shipped CRDs already say
apps.hanzo.ai. pkg/client/** still derived ArgoprojV1alpha1/Argoproj()
from the old argoproj.io group, and .mockery.yaml still named ArgoDB
(renamed to DB in util/db/db.go a few commits back) and
util/notification/cd (deleted in b2d7140a0, we use hanzoai/notify).

Reran clientgen (deepcopy-gen/client-gen/lister-gen/informer-gen) off
the current group, and mockgen after fixing .mockery.yaml. Moved every
hand-written call site that holds a versioned.Interface or
SharedInformerFactory with it: .ArgoprojV1alpha1() -> .AppsV1alpha1(),
ArgoprojV1alpha1Interface/Client -> AppsV1alpha1Interface/Client,
.Argoproj() -> .Apps() across controller, server, util, cmd,
hack/gen-resources, and test/e2e. controller/metrics/metrics_test.go's
mocks.NewArgoDB -> mocks.NewDB. Deleted the orphaned
util/db/mocks/ArgoDB.go; mockery writes DB.go for the renamed
interface but doesn't clean up the old filename on its own.

Left CHANGELOG.md/SECURITY.md's real argoproj/argo-cd history and
gitops-engine/pkg/diff/testdata/openapiv2.bin's Argo Rollouts OpenAPI
fixture untouched - genuine history and a real third-party schema, not
our naming.

go build/vet clean. Same 19 pre-existing package-level test failures
as baseline (missing git-verify-wrapper.sh, no live cluster, etc.),
none new. All 32 manifests/ kustomization paths still build;
manifests/ha/** untouched.
2026-09-05 13:44:46 -07:00

93 lines
2.3 KiB
Go
Generated

// Code generated by mockery; DO NOT EDIT.
// github.com/vektra/mockery
// template: testify
package mocks
import (
"github.com/hanzoai/cd/util/settings"
mock "github.com/stretchr/testify/mock"
)
// 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
}
// SettingsGetter is an autogenerated mock type for the SettingsGetter type
type SettingsGetter struct {
mock.Mock
}
type SettingsGetter_Expecter struct {
mock *mock.Mock
}
func (_m *SettingsGetter) EXPECT() *SettingsGetter_Expecter {
return &SettingsGetter_Expecter{mock: &_m.Mock}
}
// Get provides a mock function for the type SettingsGetter
func (_mock *SettingsGetter) Get() (*settings.Settings, error) {
ret := _mock.Called()
if len(ret) == 0 {
panic("no return value specified for Get")
}
var r0 *settings.Settings
var r1 error
if returnFunc, ok := ret.Get(0).(func() (*settings.Settings, error)); ok {
return returnFunc()
}
if returnFunc, ok := ret.Get(0).(func() *settings.Settings); ok {
r0 = returnFunc()
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*settings.Settings)
}
}
if returnFunc, ok := ret.Get(1).(func() error); ok {
r1 = returnFunc()
} else {
r1 = ret.Error(1)
}
return r0, r1
}
// SettingsGetter_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
type SettingsGetter_Get_Call struct {
*mock.Call
}
// Get is a helper method to define mock.On call
func (_e *SettingsGetter_Expecter) Get() *SettingsGetter_Get_Call {
return &SettingsGetter_Get_Call{Call: _e.mock.On("Get")}
}
func (_c *SettingsGetter_Get_Call) Run(run func()) *SettingsGetter_Get_Call {
_c.Call.Run(func(args mock.Arguments) {
run()
})
return _c
}
func (_c *SettingsGetter_Get_Call) Return(settings1 *settings.Settings, err error) *SettingsGetter_Get_Call {
_c.Call.Return(settings1, err)
return _c
}
func (_c *SettingsGetter_Get_Call) RunAndReturn(run func() (*settings.Settings, error)) *SettingsGetter_Get_Call {
_c.Call.Return(run)
return _c
}