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

Michael Paquier <michael@paquier.xyz>

Commit: aafe2762b152ffd4cb839d2a01df6cfcc3c6df6c
Author: Michael Paquier <michael@paquier.xyz>
Date: 2019-09-12T01:35:13Z
Releases: 13.0
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

Files

PathChange+/−
src/test/regress/expected/psql.out modified +56 −7
src/test/regress/sql/psql.sql modified +55 −7

Discussion