MCPcopy Index your code
hub / github.com/riverqueue/river / TestDefaultClientID

Function TestDefaultClientID

client_test.go:9341–9350  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

9339}
9340
9341func TestDefaultClientID(t *testing.T) {
9342 t.Parallel()
9343
9344 host, _ := os.Hostname()
9345 require.NotEmpty(t, host)
9346
9347 startedAt := time.Date(2024, time.March, 7, 4, 39, 12, 123456789, time.UTC)
9348
9349 require.Equal(t, strings.ReplaceAll(host, ".", "_")+"_2024_03_07T04_39_12_123456", defaultClientID(startedAt))
9350}
9351
9352func TestDefaultClientIDWithHost(t *testing.T) {
9353 t.Parallel()

Callers

nothing calls this directly

Calls 1

defaultClientIDFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…