MCPcopy Create free account
hub / github.com/PostHog/duckgres / TestSplitHostPortIPv6

Function TestSplitHostPortIPv6

server/querylog_test.go:311–319  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

309 shortPtr := &short
310 if got := truncateNullableQuery(shortPtr); got == nil || *got != short {
311 t.Fatalf("expected short query unchanged, got %#v", got)
312 }
313
314 long := make([]byte, maxQueryLength+100)
315 for i := range long {
316 long[i] = 'x'
317 }
318 longStr := string(long)
319 longPtr := &longStr
320 got := truncateNullableQuery(longPtr)
321 if got == nil {
322 t.Fatal("expected non-nil truncated query")

Callers

nothing calls this directly

Calls 1

splitHostPortFunction · 0.85

Tested by

no test coverage detected