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

Function TestTypesUUID

tests/integration/types_test.go:173–183  ·  view source on GitHub ↗

TestTypesUUID tests UUID type handling

(t *testing.T)

Source from the content-addressed store, hash-verified

171 }
172 runQueryTests(t, tests)
173}
174
175// TestTypesUUID tests UUID type handling
176func TestTypesUUID(t *testing.T) {
177 tests := []QueryTest{
178 {Name: "uuid_literal", Query: "SELECT 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::UUID"},
179 {Name: "gen_random_uuid", Query: "SELECT gen_random_uuid() IS NOT NULL"},
180 {Name: "uuid_comparison", Query: "SELECT 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::UUID = 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::UUID"},
181
182 // From table
183 {Name: "select_uuid_column", Query: "SELECT uuid_col FROM types_test WHERE id = 1"},
184 }
185 runQueryTests(t, tests)
186}

Callers

nothing calls this directly

Calls 1

runQueryTestsFunction · 0.85

Tested by

no test coverage detected