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

Function TestFormatTimeRFC3339

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

Source from the content-addressed store, hash-verified

29}
30
31func TestFormatTimeRFC3339(t *testing.T) {
32 ts := time.Date(2025, 3, 15, 10, 30, 0, 0, time.UTC)
33 got := formatTime(ts, listOptions{timeFormat: "rfc3339"})
34 want := "2025-03-15T10:30:00Z"
35 if got != want {
36 t.Errorf("formatTime rfc3339 = %q, want %q", got, want)
37 }
38}
39
40func TestGetTimeServer(t *testing.T) {
41 serverTime := time.Date(2025, 1, 1, 0, 0, 0, 0, time.UTC)

Callers

nothing calls this directly

Calls 1

formatTimeFunction · 0.85

Tested by

no test coverage detected