test_saslprep: Apply proper indentation

Noticed before koel has the idea to complain.  Rebase thinko from commit
aa73838a5c.
master
Michael Paquier 5 days ago
parent c95cd2991f
commit 015d32016d
  1. 3
      src/test/modules/test_saslprep/t/001_saslprep_ranges.pl
  2. 22
      src/test/modules/test_saslprep/test_saslprep.c
  3. 2
      src/tools/pgindent/typedefs.list

@ -32,7 +32,8 @@ my $result = $node->safe_psql(
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;
done_testing();

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

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

Loading…
Cancel
Save