pgsql: Add regression tests exercising more code paths in nodeLimit.c.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Add regression tests exercising more code paths in nodeLimit.c.
Date: 2017-08-11 21:28:16
Message-ID: E1dgHTc-0005o8-Fo@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Add regression tests exercising more code paths in nodeLimit.c.

Perusal of the code coverage report shows that the existing regression
test cases for LIMIT/OFFSET don't exercise the nodeLimit code paths
involving backwards scan, empty results, or null values of LIMIT/OFFSET.
Improve the coverage.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/3c8de95979008d67713429d858957c5c78c23d75

Modified Files
--------------
src/test/regress/expected/limit.out | 179 ++++++++++++++++++++++++++++++++++++
src/test/regress/sql/limit.sql | 42 +++++++++
2 files changed, 221 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2017-08-11 21:39:47 pgsql: Be more thorough about cleaning out gcov litter.
Previous Message Peter Eisentraut 2017-08-11 20:43:07 pgsql: doc: Add example for inet vs cidr difference