test_saslprep: Apply proper indentation

Noticed before koel has the idea to complain.  Rebase thinko from commit
aa73838a5c.
This commit is contained in:
Michael Paquier 2026-03-19 13:42:24 +09:00
parent c95cd2991f
commit 015d32016d
3 changed files with 15 additions and 12 deletions

View file

@ -32,7 +32,8 @@ my $result = $node->safe_psql(
WHERE status = 'SUCCESS' AND res IN (NULL, '') WHERE status = 'SUCCESS' AND res IN (NULL, '')
]); ]);
is($result, 'U+0000|SUCCESS|\x00|\x', "valid codepoints returning an empty password"); is($result, 'U+0000|SUCCESS|\x00|\x',
"valid codepoints returning an empty password");
$node->stop; $node->stop;
done_testing(); done_testing();

View file

@ -65,8 +65,8 @@ test_saslprep(PG_FUNCTION_ARGS)
Size result_len; Size result_len;
bytea *result_bytea = NULL; bytea *result_bytea = NULL;
const char *status = NULL; const char *status = NULL;
Datum *values; Datum *values;
bool *nulls; bool *nulls;
TupleDesc tupdesc; TupleDesc tupdesc;
pg_saslprep_rc rc; pg_saslprep_rc rc;
@ -123,16 +123,16 @@ typedef struct
static const pg_utf8_codepoint_range pg_utf8_test_ranges[] = { static const pg_utf8_codepoint_range pg_utf8_test_ranges[] = {
/* 1, 2, 3 bytes */ /* 1, 2, 3 bytes */
{0x0000, 0xD7FF}, /* Basic Multilingual Plane, before surrogates */ {0x0000, 0xD7FF}, /* Basic Multilingual Plane, before surrogates */
{0xE000, 0xFFFF}, /* Basic Multilingual Plane, after surrogates */ {0xE000, 0xFFFF}, /* Basic Multilingual Plane, after surrogates */
/* 4 bytes */ /* 4 bytes */
{0x10000, 0x1FFFF}, /* Supplementary Multilingual Plane */ {0x10000, 0x1FFFF}, /* Supplementary Multilingual Plane */
{0x20000, 0x2FFFF}, /* Supplementary Ideographic Plane */ {0x20000, 0x2FFFF}, /* Supplementary Ideographic Plane */
{0x30000, 0x3FFFF}, /* Tertiary Ideographic Plane */ {0x30000, 0x3FFFF}, /* Tertiary Ideographic Plane */
{0x40000, 0xDFFFF}, /* Unassigned planes */ {0x40000, 0xDFFFF}, /* Unassigned planes */
{0xE0000, 0xEFFFF}, /* Supplementary Special-purpose Plane */ {0xE0000, 0xEFFFF}, /* Supplementary Special-purpose Plane */
{0xF0000, 0xFFFFF}, /* Private Use Area A */ {0xF0000, 0xFFFFF}, /* Private Use Area A */
{0x100000, 0x10FFFF}, /* Private Use Area B */ {0x100000, 0x10FFFF}, /* Private Use Area B */
}; };
#define PG_UTF8_TEST_RANGES_LEN \ #define PG_UTF8_TEST_RANGES_LEN \

View file

@ -3977,6 +3977,7 @@ pg_regex_t
pg_regmatch_t pg_regmatch_t
pg_regoff_t pg_regoff_t
pg_saslprep_rc pg_saslprep_rc
pg_saslprep_test_context
pg_sha1_ctx pg_sha1_ctx
pg_sha224_ctx pg_sha224_ctx
pg_sha256_ctx pg_sha256_ctx
@ -4000,6 +4001,7 @@ pg_unicode_properties
pg_unicode_range pg_unicode_range
pg_unicode_recompinfo pg_unicode_recompinfo
pg_usec_time_t pg_usec_time_t
pg_utf8_codepoint_range
pg_utf_to_local_combined pg_utf_to_local_combined
pg_uuid_t pg_uuid_t
pg_wchar pg_wchar