MCPcopy
hub / github.com/argoproj/argo-cd / createFakeApp

Function createFakeApp

controller/appcontroller_test.go:585–592  ·  view source on GitHub ↗
(testApp string)

Source from the content-addressed store, hash-verified

583}
584
585func createFakeApp(testApp string) *v1alpha1.Application {
586 var app v1alpha1.Application
587 err := yaml.Unmarshal([]byte(testApp), &app)
588 if err != nil {
589 panic(err)
590 }
591 return &app
592}
593
594func newFakeCM() map[string]any {
595 var cm map[string]any

Callers 5

newFakeAppFunction · 0.85
newFakeMultiSourceAppFunction · 0.85
newFakeAppWithDestNameFunction · 0.85

Calls 1

UnmarshalMethod · 0.45

Tested by

no test coverage detected