INNER CODE UNIT · Go

newTestControlPlaneRuns

kimdre/doco-cd · cmd/doco-cd/controlplane_test_helpers_test.go:141

func newTestControlPlaneRuns(t testing.TB, options testControlPlaneRunsOptions) *controlplane.Runs {
	t.Helper()

	if options.applicationCtx == nil {
		options.applicationCtx = t.Context()
	}

	if options.log == nil {
		options.log = logger.New(logger.LevelCritical)
	}

	if options.appConfig == nil {
		options.appConfig = &app.Config{}
	}

	if options.scheduledJobs == nil {
		options.scheduledJobs = testScheduledJobOperations{}
	}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…