MCPcopy Index your code
hub / github.com/coder/coder / date

Function date

coderd/metricscache/metricscache_test.go:27–29  ·  view source on GitHub ↗
(year, month, day int)

Source from the content-addressed store, hash-verified

25)
26
27func date(year, month, day int) time.Time {
28 return time.Date(year, time.Month(month), day, 0, 0, 0, 0, time.UTC)
29}
30
31func newMetricsCache(t *testing.T, log slog.Logger, clock quartz.Clock, intervals metricscache.Intervals, usage bool) (*metricscache.Cache, database.Store) {
32 t.Helper()

Callers 1

TestCache_BuildTimeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected