From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Increase test coverage for worker_spi by ∞%
Date: Sun, 02 Jun 2019 04:34:42 +0000
Message-ID: <E1hXICg-0004Y5-Jl@gemulon.postgresql.org> (raw)
Increase test coverage for worker_spi by ∞%
This test module was not getting invoked, other than at compile time,
limiting its usefulness -- and keeping its coverage at 0%. Add a
minimal regression test to ensure it runs on make check-world; this
makes it 92% covered (line-wise), which seems sufficient.
Author: Álvaro Herrera <alvherre@alvh.no-ip.org>
Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://postgr.es/m/20190529193256.GA17603@alvherre.pgsql
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/4b3f1dd71b74f82dedbf37c331d0a444368c4009
Modified Files
--------------
src/test/modules/worker_spi/Makefile | 8 ++++
src/test/modules/worker_spi/dynamic.conf | 2 +
.../modules/worker_spi/expected/worker_spi.out | 50 ++++++++++++++++++++++
src/test/modules/worker_spi/sql/worker_spi.sql | 35 +++++++++++++++
src/test/modules/worker_spi/worker_spi.c | 12 +++++-
5 files changed, 106 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: alvherre@alvh.no-ip.org
Subject: Re: pgsql: Increase test coverage for worker_spi by ∞%
In-Reply-To: <E1hXICg-0004Y5-Jl@gemulon.postgresql.org>
References: <E1hXICg-0004Y5-Jl@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