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

Function TestSessionMiscCommands

tests/integration/session_test.go:350–375  ·  view source on GitHub ↗

TestSessionMiscCommands tests miscellaneous session commands

(t *testing.T)

Source from the content-addressed store, hash-verified

348
349// TestSessionMiscCommands tests miscellaneous session commands
350func TestSessionMiscCommands(t *testing.T) {
351 tests := []QueryTest{
352 // DISCARD should be safely handled
353 {
354 Name: "discard_all",
355 Query: "DISCARD ALL",
356 DuckgresOnly: true,
357 },
358 {
359 Name: "discard_plans",
360 Query: "DISCARD PLANS",
361 DuckgresOnly: true,
362 },
363 {
364 Name: "discard_sequences",
365 Query: "DISCARD SEQUENCES",
366 DuckgresOnly: true,
367 },
368 {
369 Name: "discard_temp",
370 Query: "DISCARD TEMP",
371 DuckgresOnly: true,
372 },
373 }
374 runQueryTests(t, tests)
375}

Callers

nothing calls this directly

Calls 1

runQueryTestsFunction · 0.85

Tested by

no test coverage detected