pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Improve coverage of psql for backslash commands with \if and \el
Date: Thu, 12 Sep 2019 01:36:19 +0000
Message-ID: <E1i8E1z-0002HI-KZ@gemulon.postgresql.org> (raw)

Improve coverage of psql for backslash commands with \if and \elif

This adds tests to cover more code paths to ignore backslash commands in
false branches when using \if|\elif|\else, and improves the coverage of
\elif.

Author: Fabien Coelho
Discussion: https://postgr.es/m/alpine.DEB.2.21.1908281618520.28828@lancre

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/aafe2762b152ffd4cb839d2a01df6cfcc3c6df6c

Modified Files
--------------
src/test/regress/expected/psql.out | 63 +++++++++++++++++++++++++++++++++-----
src/test/regress/sql/psql.sql      | 62 ++++++++++++++++++++++++++++++++-----
2 files changed, 111 insertions(+), 14 deletions(-)



Message-ID: <E1i8E1z-0002HI-KZ@gemulon.postgresql.org>
Permalink:  ../E1i8E1z-0002HI-KZ@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1i8E1z-0002HI-KZ@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: michael@paquier.xyz
  Subject: Re: pgsql: Improve coverage of psql for backslash commands with \if and \el
  In-Reply-To: <E1i8E1z-0002HI-KZ@gemulon.postgresql.org>
  References: <E1i8E1z-0002HI-KZ@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox