pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Improve regression test coverage for hash indexes.
4+ messages / 2 participants
[nested] [flat]

* pgsql: Improve regression test coverage for hash indexes.
@ 2016-10-18 20:00 Robert Haas <rhaas@postgresql.org>
  0 siblings, 0 replies; 4+ messages in thread

From: Robert Haas @ 2016-10-18 20:00 UTC (permalink / raw)
  To: pgsql-committers

Improve regression test coverage for hash indexes.

On my system, this improves coverage for src/backend/access/hash from
61.3% of lines to 88.2% of lines, and from 83.5% of functions to 97.5%
of functions, which is pretty good for 36 lines of tests.

Mithun Cy, reviewing by Amit Kapila and Álvaro Herrera

Branch
------
master

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

Modified Files
--------------
src/test/regress/expected/hash_index.out | 36 ++++++++++++++++++++++++++
src/test/regress/sql/hash_index.sql      | 43 ++++++++++++++++++++++++++++++++
2 files changed, 79 insertions(+)


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


^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* pgsql: Improve regression test coverage for TID scanning.
@ 2017-03-20 16:30 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 4+ messages in thread

From: Tom Lane @ 2017-03-20 16:30 UTC (permalink / raw)
  To: pgsql-committers

Improve regression test coverage for TID scanning.

TidScan plan nodes were not systematically tested before.  These additions
raise the LOC coverage number for the basic regression tests from 52% to
92% in nodeTidscan.c, and from 60% to 93% in tidpath.c.

Andres Freund, tweaked a bit by me

Discussion: https://postgr.es/m/20170320062511.hp5qeurtxrwsvfxr@alap3.anarazel.de

Branch
------
master

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

Modified Files
--------------
src/test/regress/expected/tidscan.out | 179 ++++++++++++++++++++++++++++++++++
src/test/regress/parallel_schedule    |   2 +-
src/test/regress/serial_schedule      |   1 +
src/test/regress/sql/tidscan.sql      |  66 +++++++++++++
4 files changed, 247 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


^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* pgsql: Improve regression test coverage for src/backend/tsearch/spell.c
@ 2018-04-13 17:49 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 4+ messages in thread

From: Tom Lane @ 2018-04-13 17:49 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Improve regression test coverage for src/backend/tsearch/spell.c.

In passing, throw an error if the AF count is too small, rather than
just silently discarding extra affix entries.

Note that the new regression test cases require installing the
updated src/backend/tsearch/dicts files.

Arthur Zakirov

Discussion: https://postgr.es/m/20180413113447.GA32474@zakirov.localdomain

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/8bf358c18ec930ddfb998873369e2fc38608d3e1

Modified Files
--------------
.../tsearch/dicts/hunspell_sample_long.affix       | 25 +++++++++++++++---
.../tsearch/dicts/hunspell_sample_long.dict        |  3 +++
.../tsearch/dicts/hunspell_sample_num.affix        |  8 ++++++
src/backend/tsearch/dicts/hunspell_sample_num.dict |  3 ++-
src/backend/tsearch/spell.c                        |  9 +++++--
src/test/regress/expected/tsdicts.out              | 30 ++++++++++++++++++++++
src/test/regress/sql/tsdicts.sql                   |  5 ++++
7 files changed, 77 insertions(+), 6 deletions(-)



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* pgsql: Improve regression test coverage for psql output formats.
@ 2018-11-26 17:41 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 4+ messages in thread

From: Tom Lane @ 2018-11-26 17:41 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Improve regression test coverage for psql output formats.

As penance for the "\pset format latex" silliness, add some regression
test coverage for the off-the-beaten-path output formats, which formerly
had exactly no coverage, except for some poorly-thought-out (unreadable,
repetitive, and incomplete) tests for asciidoc format.

I make no claims for the behavior exposed here actually being correct;
these test cases are just designed to ensure full code coverage in
fe_utils/print.c.  This brings the line coverage for that file up
from ~60% to ~93%.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/9a98984f4999b80435bcdcddf90bf9f3e5fc9df0

Modified Files
--------------
src/test/regress/expected/psql.out | 1509 ++++++++++++++++++++++++++++++++----
src/test/regress/sql/psql.sql      |  282 ++++++-
2 files changed, 1639 insertions(+), 152 deletions(-)



^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2018-11-26 17:41 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2016-10-18 20:00 pgsql: Improve regression test coverage for hash indexes. Robert Haas <rhaas@postgresql.org>
2017-03-20 16:30 pgsql: Improve regression test coverage for TID scanning. Tom Lane <tgl@sss.pgh.pa.us>
2018-04-13 17:49 pgsql: Improve regression test coverage for src/backend/tsearch/spell.c Tom Lane <tgl@sss.pgh.pa.us>
2018-11-26 17:41 pgsql: Improve regression test coverage for psql output formats. Tom Lane <tgl@sss.pgh.pa.us>

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