pgsql: Improve regression test coverage for psql output formats.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Improve regression test coverage for psql output formats.
Date: 2018-11-26 17:41:49
Message-ID: E1gRKtJ-0006t0-1N@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Improve regression test coverage for psql output formats.

As penance for the "\pset format latex" silliness, add some regression
test coverage for the off-the-beaten-path output formats, which formerly
had exactly no coverage, except for some poorly-thought-out (unreadable,
repetitive, and incomplete) tests for asciidoc format.

I make no claims for the behavior exposed here actually being correct;
these test cases are just designed to ensure full code coverage in
fe_utils/print.c. This brings the line coverage for that file up
from ~60% to ~93%.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/9a98984f4999b80435bcdcddf90bf9f3e5fc9df0

Modified Files
--------------
src/test/regress/expected/psql.out | 1509 ++++++++++++++++++++++++++++++++----
src/test/regress/sql/psql.sql | 282 ++++++-
2 files changed, 1639 insertions(+), 152 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Alvaro Herrera 2018-11-26 18:09:43 Re: pgsql: Integrate recovery.conf into postgresql.conf
Previous Message Stephen Frost 2018-11-26 17:21:18 Re: pgsql: Integrate recovery.conf into postgresql.conf