diff options
author | Peter Eisentraut | 2021-02-11 08:56:14 +0000 |
---|---|---|
committer | Peter Eisentraut | 2021-02-11 08:56:14 +0000 |
commit | 69273c8f88d7e6295ed7b38114969fa3ea03eff2 (patch) | |
tree | 8ccbcbbdccb06afb883fa4e8d4682e9f452fccd9 /src/test/regress/expected/inet.out | |
parent | e7f42914854926c2afbb89b9cd0e381fd90766be (diff) |
Add test case for abbrev(cidr)
This will in particular add some good test coverage for
inet_cidr_ntop.c, which was previously completely uncovered.
Reviewed-by: Tom Lane <[email protected]>
Discussion: https://www.postgresql.org/message-id/flat/cb0c4662-4596-dab4-7f64-839c5e8582c8%40enterprisedb.com
Diffstat (limited to 'src/test/regress/expected/inet.out')
-rw-r--r-- | src/test/regress/expected/inet.out | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/test/regress/expected/inet.out b/src/test/regress/expected/inet.out index 298af7e913e..d5bf9e2aaa5 100644 --- a/src/test/regress/expected/inet.out +++ b/src/test/regress/expected/inet.out @@ -88,6 +88,28 @@ SELECT i AS inet, host(i), text(i), family(i) FROM INET_TBL; ::4.3.2.1/24 | ::4.3.2.1 | ::4.3.2.1/24 | 6 (17 rows) +SELECT c AS cidr, abbrev(c) FROM INET_TBL; + cidr | abbrev +--------------------+-------------------- + 192.168.1.0/24 | 192.168.1/24 + 192.168.1.0/26 | 192.168.1.0/26 + 192.168.1.0/24 | 192.168.1/24 + 192.168.1.0/24 | 192.168.1/24 + 192.168.1.0/24 | 192.168.1/24 + 192.168.1.0/24 | 192.168.1/24 + 10.0.0.0/8 | 10/8 + 10.0.0.0/32 | 10.0.0.0/32 + 10.1.2.3/32 | 10.1.2.3/32 + 10.1.2.0/24 | 10.1.2/24 + 10.1.0.0/16 | 10.1/16 + 10.0.0.0/8 | 10/8 + 10.0.0.0/8 | 10/8 + 10.0.0.0/8 | 10/8 + 10:23::f1/128 | 10:23::f1/128 + 10:23::8000/113 | 10:23::8000/113 + ::ffff:1.2.3.4/128 | ::ffff:1.2.3.4/128 +(17 rows) + SELECT c AS cidr, broadcast(c), i AS inet, broadcast(i) FROM INET_TBL; cidr | broadcast | inet | broadcast |