MCPcopy Create free account
hub / github.com/dropbox/dbxcli / TestFormatTimeShort

Function TestFormatTimeShort

cmd/format_test.go:22–29  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

20}
21
22func TestFormatTimeShort(t *testing.T) {
23 ts := time.Date(2025, 3, 15, 10, 30, 0, 0, time.UTC)
24 got := formatTime(ts, listOptions{timeFormat: "short"})
25 want := "2025-03-15 10:30"
26 if got != want {
27 t.Errorf("formatTime short = %q, want %q", got, want)
28 }
29}
30
31func TestFormatTimeRFC3339(t *testing.T) {
32 ts := time.Date(2025, 3, 15, 10, 30, 0, 0, time.UTC)

Callers

nothing calls this directly

Calls 1

formatTimeFunction · 0.85

Tested by

no test coverage detected