Unit test for zstd_compression.c
Add a unit test (and its infrastructure) for 'zstd_compress()'. The test checks whether 'zstd_compress()' returns correct output in case compression fails (compressed data is larger than uncompressed). To do that, 'ZSTD_compressCCtx()' is mocked to always return 'ZSTD_error_dstSize_tooSmall'. Also, an 'ifndef' is added around 'PG_MODULE_MAGIC' in zstd_compression.c
Showing
gpcontrib/zstd/test/Makefile
0 → 100644
想要评论请 注册 或 登录