(t *testing.T)
| 20 | } |
| 21 | |
| 22 | func 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 | |
| 31 | func TestFormatTimeRFC3339(t *testing.T) { |
| 32 | ts := time.Date(2025, 3, 15, 10, 30, 0, 0, time.UTC) |
nothing calls this directly
no test coverage detected