MCPcopy Create free account
hub / github.com/alibaba/open-code-review / TestFormatTime_UTC

Function TestFormatTime_UTC

internal/viewer/server_test.go:133–140  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

131}
132
133func TestFormatTime_UTC(t *testing.T) {
134 input := time.Date(2025, 1, 1, 0, 0, 0, 0, time.UTC)
135 got := formatTime(input)
136 want := "2025-01-01 08:00"
137 if got != want {
138 t.Errorf("formatTime(UTC midnight) = %q, want %q (should be +8h)", got, want)
139 }
140}

Callers

nothing calls this directly

Calls 1

formatTimeFunction · 0.85

Tested by

no test coverage detected