pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: pgsql-committers@postgresql.org
Subject: pgsql: Improve expression evaluation test coverage.
Date: Sat, 11 Mar 2017 23:43:36 +0000
Message-ID: <E1cmqfg-0001A5-G3@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Improve expression evaluation test coverage.

Upcoming patches are revamping expression evaluation significantly. It
therefore seems prudent to try to ensure that the coverage of the
existing evaluation code is high.

This commit adds coverage for the cases that can reasonably be
tested. There's still a bunch of unreachable error messages and such,
but otherwise this achieves nearly full regression test coverage (with
the exception of the unused GetAttributeByNum/GetAttributeByName).

Author: Andres Freund
Discussion: https://postgr.es/m/20170310194021.ek4bs4bl2khxkmll@alap3.anarazel.de

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/ce38949ba23ab311f274aa4196be09d18d30e5a6

Modified Files
--------------
src/backend/executor/execQual.c           |  1 +
src/test/regress/expected/arrays.out      | 81 +++++++++++++++++++++++++++++++
src/test/regress/expected/boolean.out     | 24 +++++++++
src/test/regress/expected/case.out        |  8 +++
src/test/regress/expected/expressions.out | 77 +++++++++++++++++++++++++++++
src/test/regress/expected/inherit.out     |  6 +++
src/test/regress/expected/privileges.out  | 37 ++++++++++++++
src/test/regress/expected/rowtypes.out    | 40 +++++++++++++++
src/test/regress/parallel_schedule        |  2 +-
src/test/regress/serial_schedule          |  1 +
src/test/regress/sql/arrays.sql           | 33 +++++++++++++
src/test/regress/sql/boolean.sql          | 20 ++++++++
src/test/regress/sql/case.sql             |  5 ++
src/test/regress/sql/expressions.sql      | 36 ++++++++++++++
src/test/regress/sql/inherit.sql          |  1 +
src/test/regress/sql/privileges.sql       | 12 +++++
src/test/regress/sql/rowtypes.sql         | 23 +++++++++
17 files changed, 406 insertions(+), 1 deletion(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


Message-ID: <E1cmqfg-0001A5-G3@gemulon.postgresql.org>
Permalink:  ../E1cmqfg-0001A5-G3@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1cmqfg-0001A5-G3@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: andres@anarazel.de
  Subject: Re: pgsql: Improve expression evaluation test coverage.
  In-Reply-To: <E1cmqfg-0001A5-G3@gemulon.postgresql.org>
  References: <E1cmqfg-0001A5-G3@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