(t *testing.T)
| 299 | t.Error("Expected error for empty port") |
| 300 | } |
| 301 | } |
| 302 | |
| 303 | func 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 | } |
nothing calls this directly
no test coverage detected