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

Function mustParseTime

coderd/schedule/cron/cron_test.go:271–276  ·  view source on GitHub ↗
(t *testing.T, layout, value string)

Source from the content-addressed store, hash-verified

269}
270
271func mustParseTime(t *testing.T, layout, value string) time.Time {
272 t.Helper()
273 parsedTime, err := time.Parse(layout, value)
274 require.NoError(t, err)
275 return parsedTime
276}
277
278func mustLocation(t *testing.T, s string) *time.Location {
279 t.Helper()

Callers 1

TestIsWithinRangeFunction · 0.70

Calls 2

HelperMethod · 0.65
ParseMethod · 0.65

Tested by

no test coverage detected