(t *testing.T)
| 29 | } |
| 30 | |
| 31 | func 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 | |
| 40 | func TestGetTimeServer(t *testing.T) { |
| 41 | serverTime := time.Date(2025, 1, 1, 0, 0, 0, 0, time.UTC) |
nothing calls this directly
no test coverage detected