forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitce1b0f9
committed
Improve grammar of options for command arrays in TAP tests
This commit rewrites a good chunk of the command arrays in TAP testswith a grammar based on the following rules:- Fat commas are used between option names and their values, making itclear to both humans and perltidy that values and names are boundtogether. This is particularly useful for the readability of multi-linecommand arrays, and there are plenty of them in the TAP tests. Most ofthe test code is updated to use this style. Some commands usedparenthesis to show the link, or attached values and options in a singlestring. These are updated to use fat commas instead.- Option names are switched to use their long names, making them moreself-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 chunkof them.Author: Dagfinn Ilmari MannsåkerReviewed-by: Michael Paquier, Peter Smith, Euler TaveiraDiscussion:https://postgr.es/m/87jzc46d8u.fsf@wibble.ilmari.org1 parent4a0e731 commitce1b0f9
File tree
65 files changed
+2311
-1318
lines changed- contrib/basebackup_to_shell/t
- src
- bin
- initdb/t
- pg_amcheck/t
- pg_basebackup/t
- pg_checksums/t
- pg_combinebackup/t
- pg_ctl/t
- pg_dump/t
- pg_resetwal/t
- pg_rewind/t
- pg_test_fsync/t
- pg_test_timing/t
- pg_upgrade/t
- pg_verifybackup/t
- pg_waldump/t
- pgbench/t
- psql/t
- scripts/t
- test
- recovery/t
- ssl/t
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
65 files changed
+2311
-1318
lines changedLines changed: 18 additions & 12 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
25 | 25 |
| |
26 | 26 |
| |
27 | 27 |
| |
28 |
| - | |
| 28 | + | |
29 | 29 |
| |
30 | 30 |
| |
31 | 31 |
| |
| |||
37 | 37 |
| |
38 | 38 |
| |
39 | 39 |
| |
40 |
| - | |
| 40 | + | |
| 41 | + | |
41 | 42 |
| |
42 | 43 |
| |
43 | 44 |
| |
44 |
| - | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
45 | 49 |
| |
46 | 50 |
| |
47 | 51 |
| |
48 |
| - | |
| 52 | + | |
49 | 53 |
| |
50 | 54 |
| |
51 | 55 |
| |
| |||
64 | 68 |
| |
65 | 69 |
| |
66 | 70 |
| |
67 |
| - | |
| 71 | + | |
68 | 72 |
| |
69 | 73 |
| |
70 | 74 |
| |
71 | 75 |
| |
72 | 76 |
| |
73 |
| - | |
| 77 | + | |
74 | 78 |
| |
75 | 79 |
| |
76 | 80 |
| |
| |||
87 | 91 |
| |
88 | 92 |
| |
89 | 93 |
| |
90 |
| - | |
| 94 | + | |
91 | 95 |
| |
92 | 96 |
| |
93 | 97 |
| |
94 | 98 |
| |
95 | 99 |
| |
96 | 100 |
| |
97 |
| - | |
| 101 | + | |
98 | 102 |
| |
99 | 103 |
| |
100 | 104 |
| |
101 | 105 |
| |
102 |
| - | |
| 106 | + | |
103 | 107 |
| |
104 | 108 |
| |
105 | 109 |
| |
| |||
133 | 137 |
| |
134 | 138 |
| |
135 | 139 |
| |
136 |
| - | |
137 |
| - | |
138 |
| - | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
139 | 145 |
| |
140 | 146 |
| |
141 | 147 |
| |
|
Lines changed: 20 additions & 16 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
22 | 22 |
| |
23 | 23 |
| |
24 | 24 |
| |
25 |
| - | |
| 25 | + | |
26 | 26 |
| |
27 | 27 |
| |
28 | 28 |
| |
29 | 29 |
| |
30 |
| - | |
31 |
| - | |
| 30 | + | |
32 | 31 |
| |
33 | 32 |
| |
34 | 33 |
| |
35 |
| - | |
| 34 | + | |
36 | 35 |
| |
37 | 36 |
| |
38 |
| - | |
39 |
| - | |
| 37 | + | |
40 | 38 |
| |
41 | 39 |
| |
42 | 40 |
| |
| |||
49 | 47 |
| |
50 | 48 |
| |
51 | 49 |
| |
52 |
| - | |
| 50 | + | |
53 | 51 |
| |
54 | 52 |
| |
55 |
| - | |
56 |
| - | |
57 |
| - | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
58 | 59 |
| |
59 | 60 |
| |
60 | 61 |
| |
| |||
75 | 76 |
| |
76 | 77 |
| |
77 | 78 |
| |
78 |
| - | |
| 79 | + | |
79 | 80 |
| |
80 | 81 |
| |
81 | 82 |
| |
82 | 83 |
| |
83 |
| - | |
| 84 | + | |
| 85 | + | |
84 | 86 |
| |
85 | 87 |
| |
86 | 88 |
| |
87 | 89 |
| |
88 |
| - | |
| 90 | + | |
| 91 | + | |
89 | 92 |
| |
90 | 93 |
| |
91 | 94 |
| |
| |||
126 | 129 |
| |
127 | 130 |
| |
128 | 131 |
| |
129 |
| - | |
| 132 | + | |
130 | 133 |
| |
131 | 134 |
| |
132 | 135 |
| |
| |||
246 | 249 |
| |
247 | 250 |
| |
248 | 251 |
| |
249 |
| - | |
| 252 | + | |
| 253 | + | |
250 | 254 |
| |
251 | 255 |
| |
252 | 256 |
| |
| |||
279 | 283 |
| |
280 | 284 |
| |
281 | 285 |
| |
282 |
| - | |
| 286 | + | |
283 | 287 |
| |
284 | 288 |
| |
285 | 289 |
|
0 commit comments
Comments
(0)