MCPcopy Create free account
hub / github.com/riverqueue/river / TestTimeString

Function TestTimeString

riverdriver/riversqlite/river_sqlite_driver_test.go:36–41  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

34}
35
36func TestTimeString(t *testing.T) {
37 t.Parallel()
38
39 require.Equal(t, "2025-04-30 13:26:39.123", timeString(time.Date(2025, 4, 30, 13, 26, 39, 123456789, time.UTC)))
40 require.Equal(t, "2025-04-30 13:26:39.124", timeString(time.Date(2025, 4, 30, 13, 26, 39, 123800000, time.UTC))) // test rounding
41}
42
43func TestTimeStringNullable(t *testing.T) {
44 t.Parallel()

Callers

nothing calls this directly

Calls 1

timeStringFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…