Skip to content

Commit 6af8b89

Browse files
committed
perltidy pg_dump TAP tests
The pg_dump TAP tests have gotten pretty far from what perltidy thinks they should be, so fix that, and in passing use long-form argument names with arguments passed via "=" in a similar vein to 58da833. No functional changes here, just whitespace and changing runs from "-f" to "--file=", and similar.
1 parent 58da833 commit 6af8b89

File tree

3 files changed

+477
-433
lines changed

3 files changed

+477
-433
lines changed

src/bin/pg_dump/t/001_basic.pl

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,9 @@
4949
'pg_restore: options -s/--schema-only and -a/--data-only cannot be used together'
5050
);
5151

52-
command_exit_is(
53-
[ 'pg_restore', '-d', 'xxx', '-f', 'xxx' ],
52+
command_exit_is([ 'pg_restore', '-d', 'xxx', '-f', 'xxx' ],
5453
1,
55-
'pg_restore: options -d/--dbname and -f/--file cannot be used together'
56-
);
54+
'pg_restore: options -d/--dbname and -f/--file cannot be used together');
5755

5856
command_exit_is(
5957
[ 'pg_dump', '-c', '-a' ],
@@ -63,7 +61,7 @@
6361
command_exit_is(
6462
[ 'pg_restore', '-c', '-a' ],
6563
1,
66-
'pg_restore: options -c/--clean and -a/--data-only cannot be used together');
64+
'pg_restore: options -c/--clean and -a/--data-only cannot be used together');
6765

6866
command_exit_is(
6967
[ 'pg_dump', '--inserts', '-o' ],
@@ -80,8 +78,10 @@
8078
command_exit_is([ 'pg_dump', '-j3' ],
8179
1, 'pg_dump: parallel backup only supported by the directory format');
8280

83-
command_exit_is([ 'pg_restore', '--single-transaction', '-j3' ],
84-
1, 'pg_restore: cannot specify both --single-transaction and multiple jobs');
81+
command_exit_is(
82+
[ 'pg_restore', '--single-transaction', '-j3' ],
83+
1,
84+
'pg_restore: cannot specify both --single-transaction and multiple jobs');
8585

8686
command_exit_is([ 'pg_restore', '--if-exists' ],
8787
1, 'pg_restore: option --if-exists requires option -c/--clean');

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy