LCOV - code coverage report
Current view: top level - libs/postgres_ffi/src - pg_constants_v15.rs (source / functions) Coverage Total Hit
Test: 249f165943bd2c492f96a3f7d250276e4addca1a.info Lines: 100.0 % 3 3
Test Date: 2024-11-20 18:39:52 Functions: 100.0 % 1 1

            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 = 512; /* sizeof(RelMapFile) in relmapper.c */
      13              : 
      14              : pub use super::super::v14::bindings::PGDATA_SUBDIRS;
      15              : 
      16          108 : 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          108 :     (bimg_info & ANY_COMPRESS_FLAG) != 0
      20          108 : }
        

Generated by: LCOV version 2.1-beta