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

Function clockTime

coderd/metricscache/metricscache_test.go:125–127  ·  view source on GitHub ↗
(t time.Time, hour, minute, sec int)

Source from the content-addressed store, hash-verified

123}
124
125func clockTime(t time.Time, hour, minute, sec int) time.Time {
126 return time.Date(t.Year(), t.Month(), t.Day(), hour, minute, sec, t.Nanosecond(), t.Location())
127}
128
129func requireBuildTimeStatsEmpty(t *testing.T, stats codersdk.TemplateBuildTimeStats) {
130 require.Empty(t, stats[codersdk.WorkspaceTransitionStart])

Callers 1

TestCache_BuildTimeFunction · 0.85

Calls 1

LocationMethod · 0.80

Tested by

no test coverage detected