pgsql: Improve test coverage of network address functions

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Improve test coverage of network address functions
Date: 2025-01-28 23:50:01
Message-ID: E1tcvLF-0046pc-19@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Improve test coverage of network address functions

The following functions were not covered by any tests:
- abbrev(inet)
- set_masklen(cidr)
- set_masklen(inet)
- netmask(inet)
- hostmask(inet)

While on it, this improves the output of some of the existing queries in
the test inet to use better aliases.

Author: Aleksander Alekseev
Reviewed-by: Jacob Champion, Keisuke Kuroda, Tom Lane
Discussion: https://postgr.es/m/CAJ7c6TOyZ9bGNrDK6Z3Q0gr9ow8ZpOm+=+01mpE0dsdH4C+u9A@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/4f071349c0c28543fa8b84a5ce0b2f619c089ace

Modified Files
--------------
src/test/regress/expected/inet.out | 163 +++++++++++++++++++++++++++----------
src/test/regress/sql/inet.sql | 21 +++--
2 files changed, 135 insertions(+), 49 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message John Naylor 2025-01-29 06:58:22 pgsql: Revert "Speed up tail processing when hashing aligned C strings,
Previous Message Amit Kapila 2025-01-28 05:26:05 pgsql: Rename pubgencols_type to pubgencols in pg_publication.