mirror of
https://github.com/neondatabase/neon.git
synced 2026-05-24 00:20:37 +00:00
Add tests for some extensions currently not covered by the regression tests (#11191)
## Problem Some extensions do not contain tests, which can be easily run on top of docker-compose or staging. ## Summary of changes Added the pg_regress based tests for `pg_tiktoken`, `pgx_ulid`, `pg_rag` Now they will be run on top of docker-compose, but I intend to adopt them to be run on top staging in the next PRs
This commit is contained in:
12
docker-compose/ext-src/pgx_ulid-src/sql/03_ulid_errors.sql
Normal file
12
docker-compose/ext-src/pgx_ulid-src/sql/03_ulid_errors.sql
Normal file
@@ -0,0 +1,12 @@
|
||||
-- Test ULID error handling
|
||||
|
||||
-- Test invalid ULID string (too short)
|
||||
SELECT '01GV5PA9EQG7D82Q3Y4PKBZSY'::ulid;
|
||||
|
||||
-- Test invalid ULID string (invalid character)
|
||||
SELECT '01GV5PA9EQG7D82Q3Y4PKBZSYU'::ulid;
|
||||
|
||||
-- Test NULL handling
|
||||
SELECT 'NULL to ulid conversion returns NULL' as test_name,
|
||||
NULL::ulid IS NULL as result;
|
||||
|
||||
Reference in New Issue
Block a user