LCOV - code coverage report
Current view: top level - libs/postgres_ffi/src - pg_constants_v16.rs (source / functions) Coverage Total Hit
Test: 8b13a09a5c233d98abd4a0d3e59157e7db16d6fd.info Lines: 0.0 % 3 0
Test Date: 2024-11-21 10:53:51 Functions: 0.0 % 1 0

            Line data    Source code
       1              : pub const XACT_XINFO_HAS_DROPPED_STATS: u32 = 1u32 << 8;
       2              : 
       3              : pub const XLOG_DBASE_CREATE_FILE_COPY: u8 = 0x00;
       4              : pub const XLOG_DBASE_CREATE_WAL_LOG: u8 = 0x10;
       5              : pub const XLOG_DBASE_DROP: u8 = 0x20;
       6              : 
       7              : pub const BKPIMAGE_APPLY: u8 = 0x02; /* page image should be restored during replay */
       8              : pub const BKPIMAGE_COMPRESS_PGLZ: u8 = 0x04; /* page image is compressed */
       9              : pub const BKPIMAGE_COMPRESS_LZ4: u8 = 0x08; /* page image is compressed */
      10              : pub const BKPIMAGE_COMPRESS_ZSTD: u8 = 0x10; /* page image is compressed */
      11              : 
      12              : pub const SIZEOF_RELMAPFILE: usize = 524; /* sizeof(RelMapFile) in relmapper.c */
      13              : 
      14              : pub use super::super::v14::bindings::PGDATA_SUBDIRS;
      15              : 
      16            0 : pub fn bkpimg_is_compressed(bimg_info: u8) -> bool {
      17              :     const ANY_COMPRESS_FLAG: u8 = BKPIMAGE_COMPRESS_PGLZ | BKPIMAGE_COMPRESS_LZ4 | BKPIMAGE_COMPRESS_ZSTD;
      18              : 
      19            0 :     (bimg_info & ANY_COMPRESS_FLAG) != 0
      20            0 : }
        

Generated by: LCOV version 2.1-beta