From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Improve test coverage of ruleutils.c.
Date: Fri, 06 Dec 2019 22:40:43 +0000
Message-ID: <E1idMHD-00026W-Vf@gemulon.postgresql.org> (raw)
Improve test coverage of ruleutils.c.
While fooling around with the EXPLAIN improvements I've been working
on, I noticed that there were some large gaps in our test coverage
of ruleutils.c, according to the code coverage report. This commit
just adds a few test cases to improve coverage of:
get_name_for_var_field()
get_update_query_targetlist_def()
isSimpleNode()
get_sublink_expr()
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/830d1c73b3f4524bc897ddab5c6c3b47840c915a
Modified Files
--------------
src/test/regress/expected/create_view.out | 103 +++++++++++++++++++++++++++++-
src/test/regress/expected/rules.out | 24 +++++++
src/test/regress/sql/create_view.sql | 35 ++++++++++
src/test/regress/sql/rules.sql | 11 ++++
4 files changed, 172 insertions(+), 1 deletion(-)
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: tgl@sss.pgh.pa.us
Subject: Re: pgsql: Improve test coverage of ruleutils.c.
In-Reply-To: <E1idMHD-00026W-Vf@gemulon.postgresql.org>
References: <E1idMHD-00026W-Vf@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