MCPcopy Create free account
hub / github.com/chainloop-dev/chainloop / validateTimeWindowIsSet

Function validateTimeWindowIsSet

app/controlplane/pkg/biz/orgmetrics.go:255–263  ·  view source on GitHub ↗

validateTimeWindowIsSet validates that the time window is set

(tw *TimeWindow)

Source from the content-addressed store, hash-verified

253
254// validateTimeWindowIsSet validates that the time window is set
255func validateTimeWindowIsSet(tw *TimeWindow) error {
256 // Check if time window is set
257 if tw == nil {
258 return fmt.Errorf("time window is required")
259 }
260
261 // Validate time window
262 return tw.Validate()
263}

Callers 5

RunsTotalMethod · 0.85
RunsTotalByStatusMethod · 0.85
RunsTotalByRunnerTypeMethod · 0.85
DailyRunsCountMethod · 0.85

Calls 1

ValidateMethod · 0.45

Tested by

no test coverage detected