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

Function TestSplitHostPort

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

Source from the content-addressed store, hash-verified

299 t.Error("Expected error for empty port")
300 }
301}
302
303func TestTruncateNullableQuery(t *testing.T) {
304 if truncateNullableQuery(nil) != nil {
305 t.Fatal("nil query should stay nil")
306 }
307
308 short := "SELECT 1"
309 shortPtr := &short
310 if got := truncateNullableQuery(shortPtr); got == nil || *got != short {
311 t.Fatalf("expected short query unchanged, got %#v", got)
312 }

Callers

nothing calls this directly

Calls 1

splitHostPortFunction · 0.85

Tested by

no test coverage detected