MCPcopy Create free account
hub / github.com/basecamp/hey-cli / TestFormatTimestampZero

Function TestFormatTimestampZero

internal/cmd/sdk_test.go:31–37  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

29 berlin := time.FixedZone("CEST", 2*60*60)
30 ts := time.Date(2026, 8, 21, 9, 0, 0, 0, berlin)
31 got := formatTimestamp(ts)
32 want := "2026-08-21T09:00"
33 if got != want {
34 t.Errorf("formatTimestamp = %q, want %q", got, want)
35 }
36}
37
38func TestFormatTimestampMidDay(t *testing.T) {
39 ts := time.Date(2024, 1, 15, 14, 0, 0, 0, time.UTC)
40 got := formatTimestamp(ts)

Callers

nothing calls this directly

Calls 1

formatTimestampFunction · 0.70

Tested by

no test coverage detected