postgres/contrib/amcheck
Michael Paquier fabb33b351 Improve TAP tests by replacing ok() with better Test::More functions
The TAP tests whose ok() calls are changed in this commit were relying
on perl operators, rather than equivalents available in Test::More.  For
example, rather than the following:
ok($data =~ qr/expr/m, "expr matching");
ok($data !~ qr/expr/m, "expr not matching");
The new test code uses this equivalent:
like($data, qr/expr/m, "expr matching");
unlike($data, qr/expr/m, "expr not matching");

A huge benefit of the new formulation is that it is possible to know
about the values we are checking if a failure happens, making debugging
easier, should the test runs happen in the buildfarm, in the CI or
locally.

This change leads to more test code overall as perltidy likes to make
the code pretty the way it is in this commit.

Author: Sadhuprasad Patro <b.sadhu@gmail.com>
Discussion: https://postgr.es/m/CAFF0-CHhwNx_Cv2uy7tKjODUbeOgPrJpW4Rpf1jqB16_1bU2sg@mail.gmail.com
2025-10-17 14:39:09 +09:00
..
expected amcheck: Improve error message for partitioned index target. 2025-07-14 20:05:10 +09:00
sql amcheck: Improve error message for partitioned index target. 2025-07-14 20:05:10 +09:00
t Improve TAP tests by replacing ok() with better Test::More functions 2025-10-17 14:39:09 +09:00
.gitignore
amcheck--1.1--1.2.sql Allow amcheck to re-find tuples using new search. 2019-03-20 10:41:36 -07:00
amcheck--1.2--1.3.sql Extend amcheck to check heap pages. 2020-10-22 08:44:18 -04:00
amcheck--1.3--1.4.sql Teach contrib/amcheck to check the unique constraint violation 2023-10-28 00:21:23 +03:00
amcheck--1.4--1.5.sql amcheck: Add gin_index_check() to verify GIN index 2025-03-29 15:44:29 +01:00
amcheck--1.0--1.1.sql Add amcheck verification of heap relations belonging to btree indexes. 2018-03-31 19:52:01 -07:00
amcheck--1.0.sql
amcheck.control amcheck: Add gin_index_check() to verify GIN index 2025-03-29 15:44:29 +01:00
Makefile amcheck: Add gin_index_check() to verify GIN index 2025-03-29 15:44:29 +01:00
meson.build amcheck: Fix checks of entry order for GIN indexes 2025-06-17 14:55:29 +02:00
verify_common.c amcheck: Improve error message for partitioned index target. 2025-07-14 20:05:10 +09:00
verify_common.h Fix various incorrect filename references 2025-09-22 13:33:17 +12:00
verify_gin.c Remove unneeded casts of BufferGetPage() result 2025-08-29 07:18:29 +02:00
verify_heapam.c amcheck: Improve confusing message 2025-07-01 12:24:17 +02:00
verify_nbtree.c Standardize LSN formatting by zero padding 2025-07-07 13:57:43 +02:00