]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
test_saslprep: Apply proper indentation
authorMichael Paquier <michael@paquier.xyz>
Thu, 19 Mar 2026 04:42:24 +0000 (13:42 +0900)
committerMichael Paquier <michael@paquier.xyz>
Thu, 19 Mar 2026 04:42:24 +0000 (13:42 +0900)
Noticed before koel has the idea to complain.  Rebase thinko from commit
aa73838a5c94.

src/test/modules/test_saslprep/t/001_saslprep_ranges.pl
src/test/modules/test_saslprep/test_saslprep.c
src/tools/pgindent/typedefs.list

index b353017c06518190aa6104425c39c267341993fb..3ff0e3b10e674fc9b42b4b6af04d4f63b18c5110 100644 (file)
@@ -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();
index b4deab1b52f7b01e72dec31563ab13be73974c35..70ff7069bf70fc3faa3c4ac1d086f8ed18e4c7d5 100644 (file)
@@ -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 \
index 174e2798443acda34ef429640cad724b50c7bba6..4673eca9cd61806bc829026cf926596549d50c6b 100644 (file)
@@ -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