Improve test coverage of network address functions
authorMichael Paquier <michael@paquier.xyz>
Tue, 28 Jan 2025 23:49:48 +0000 (08:49 +0900)
committerMichael Paquier <michael@paquier.xyz>
Tue, 28 Jan 2025 23:49:48 +0000 (08:49 +0900)
commit4f071349c0c28543fa8b84a5ce0b2f619c089ace
treea961f50f3010f0aa2e84c294a03ce802debbce5e
parent75eb9766ec201b62f264554019757716093e2a2f
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
src/test/regress/expected/inet.out
src/test/regress/sql/inet.sql