MCPcopy Index your code
hub / github.com/dnote/dnote / TestFormatTS

Function TestFormatTS

pkg/server/presenters/helpers_test.go:25–32  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

23)
24
25func TestFormatTS(t *testing.T) {
26 input := time.Date(2025, 1, 15, 10, 30, 45, 123456789, time.UTC)
27 expected := time.Date(2025, 1, 15, 10, 30, 45, 123457000, time.UTC)
28
29 got := FormatTS(input)
30
31 assert.Equal(t, got, expected, "FormatTS mismatch")
32}

Callers

nothing calls this directly

Calls 2

EqualFunction · 0.92
FormatTSFunction · 0.85

Tested by

no test coverage detected