(t *testing.T)
| 37 | |
| 38 | func TestFormatTimestampMidDay(t *testing.T) { |
| 39 | ts := time.Date(2024, 1, 15, 14, 0, 0, 0, time.UTC) |
| 40 | got := formatTimestamp(ts) |
| 41 | want := "2024-01-15T14:00" |
| 42 | if got != want { |
| 43 | t.Errorf("formatTimestamp = %q, want %q", got, want) |
| 44 | } |
| 45 | } |
| 46 | |
| 47 | func TestFormatTimestampZero(t *testing.T) { |
| 48 | var ts time.Time |
| 49 | got := formatTimestamp(ts) |
| 50 | if got != "" { |
nothing calls this directly
no test coverage detected