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

Function createFakeAppWithHealthAndTime

controller/appcontroller_test.go:568–575  ·  view source on GitHub ↗
(testApp string, status health.HealthStatusCode, timestamp metav1.Time)

Source from the content-addressed store, hash-verified

566}
567
568func createFakeAppWithHealthAndTime(testApp string, status health.HealthStatusCode, timestamp metav1.Time) *v1alpha1.Application {
569 app := createFakeApp(testApp)
570 app.Status.Health = v1alpha1.AppHealthStatus{
571 Status: status,
572 LastTransitionTime: &timestamp,
573 }
574 return app
575}
576
577func newFakeAppWithDestMismatch() *v1alpha1.Application {
578 return createFakeApp(fakeAppWithDestMismatch)

Callers 1

Calls 1

createFakeAppFunction · 0.85

Tested by

no test coverage detected