MCPcopy Index your code
hub / github.com/jetify-com/devbox / TestShortDate

Function TestShortDate

internal/devbox/update_test.go:355–359  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

353}
354
355func TestShortDate(t *testing.T) {
356 require.Equal(t, "2025-04-22", shortDate("2025-04-22T14:30:00Z"))
357 require.Equal(t, "", shortDate(""))
358 require.Equal(t, "", shortDate("not a date"))
359}
360
361func TestDescribeFlakeUpdateFormats(t *testing.T) {
362 oldRev := "abc1234def56789012345678901234567890abcd"

Callers

nothing calls this directly

Calls 1

shortDateFunction · 0.85

Tested by

no test coverage detected