pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add some test cases to improve test coverage of parse_expr.c.
Date: Sat, 06 Jul 2019 03:56:40 +0000
Message-ID: <E1hjboW-0004cq-AV@gemulon.postgresql.org> (raw)

Add some test cases to improve test coverage of parse_expr.c.

I chanced to notice while thumbing through lcov reports that we had
exactly no coverage of BETWEEN SYMMETRIC, nor of current_time(N) and
localtime(N).  Improve that.

parse_expr.c still has a pretty awful coverage number, but a large part
of that is due to lack of coverage of the operator_precedence_warning
logic.  I have zero desire to write tests for that; I think ripping it
out would be more sensible at this point.

Branch
------
master

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

Modified Files
--------------
src/test/regress/expected/expressions.out | 85 ++++++++++++++++++++++++++++++-
src/test/regress/sql/expressions.sql      | 33 +++++++++++-
2 files changed, 116 insertions(+), 2 deletions(-)



Message-ID: <E1hjboW-0004cq-AV@gemulon.postgresql.org>
Permalink:  ../E1hjboW-0004cq-AV@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1hjboW-0004cq-AV@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: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Add some test cases to improve test coverage of parse_expr.c.
  In-Reply-To: <E1hjboW-0004cq-AV@gemulon.postgresql.org>
  References: <E1hjboW-0004cq-AV@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