postgresql/contrib/basebackup_to_shell
Michael Paquier ce1b0f9da0 Improve grammar of options for command arrays in TAP tests
This commit rewrites a good chunk of the command arrays in TAP tests
with a grammar based on the following rules:
- Fat commas are used between option names and their values, making it
clear to both humans and perltidy that values and names are bound
together.  This is particularly useful for the readability of multi-line
command arrays, and there are plenty of them in the TAP tests.  Most of
the test code is updated to use this style.  Some commands used
parenthesis to show the link, or attached values and options in a single
string.  These are updated to use fat commas instead.
- Option names are switched to use their long names, making them more
self-documented.  Based on a suggestion by Andrew Dunstan.
- Add some trailing commas after the last item in multi-line arrays,
which is a common perl style.

Not all the places are taken care of, but this covers a very good chunk
of them.

Author: Dagfinn Ilmari Mannsåker
Reviewed-by: Michael Paquier, Peter Smith, Euler Taveira
Discussion: https://postgr.es/m/87jzc46d8u.fsf@wibble.ilmari.org
2025-01-22 14:47:13 +09:00
..
t Improve grammar of options for command arrays in TAP tests 2025-01-22 14:47:13 +09:00
.gitignore Add .gitignore for basebackup_to_shell. 2022-03-30 19:59:44 -04:00
basebackup_to_shell.c Update copyright for 2025 2025-01-01 11:21:55 -05:00
Makefile
meson.build Update copyright for 2025 2025-01-01 11:21:55 -05:00