(t *testing.T)
| 9339 | } |
| 9340 | |
| 9341 | func 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 | |
| 9352 | func TestDefaultClientIDWithHost(t *testing.T) { |
| 9353 | t.Parallel() |
nothing calls this directly
no test coverage detected
searching dependent graphs…