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

Function TestFormatTimestampMidDay

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

Source from the content-addressed store, hash-verified

20 if got != want {
21 t.Errorf("formatTimestamp = %q, want %q", got, want)
22 }
23}
24
25// A recording carries the zone it was recorded in, and that is the wall-clock time the
26// reader recognizes. Converting to UTC first moved every hour it printed: a time track
27// started at 09:00 in Berlin read as 07:00.
28func TestFormatTimestampKeepsTheRecordingsOwnZone(t *testing.T) {
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"

Callers

nothing calls this directly

Calls 1

formatTimestampFunction · 0.70

Tested by

no test coverage detected