LCOV - code coverage report
Current view: top level - libs/postgres_ffi/src - xlog_utils.rs (source / functions) Coverage Total Hit
Test: aca8877be6ceba750c1be359ed71bc1799d52b30.info Lines: 93.9 % 327 307
Test Date: 2024-02-14 18:05:35 Functions: 77.1 % 109 84

Function Name Sort by function name Hit count Sort by function hit count
postgres_ffi::v14::xlog_utils::main 0
postgres_ffi::v14::xlog_utils::main 0
postgres_ffi::v15::xlog_utils::main 0
postgres_ffi::v16::xlog_utils::main 0
postgres_ffi::v14::xlog_utils::tests::test_ts_conversion 6
postgres_ffi::v14::xlog_utils::tests::test_ts_conversion 2
postgres_ffi::v15::xlog_utils::tests::test_ts_conversion 2
postgres_ffi::v16::xlog_utils::tests::test_ts_conversion 2
postgres_ffi::v14::xlog_utils::tests::test_ts_conversion::{closure#0} 6
postgres_ffi::v14::xlog_utils::tests::test_ts_conversion::{closure#0} 2
postgres_ffi::v15::xlog_utils::tests::test_ts_conversion::{closure#0} 2
postgres_ffi::v16::xlog_utils::tests::test_ts_conversion::{closure#0} 2
postgres_ffi::v14::xlog_utils::encode_logical_message 9
postgres_ffi::v15::xlog_utils::encode_logical_message 2
postgres_ffi::v16::xlog_utils::encode_logical_message 2
postgres_ffi::v14::xlog_utils::encode_logical_message 5
postgres_ffi::v14::xlog_utils::timestamp_conversions::from_pg_timestamp 22
postgres_ffi::v15::xlog_utils::timestamp_conversions::from_pg_timestamp 4
postgres_ffi::v16::xlog_utils::timestamp_conversions::from_pg_timestamp 4
postgres_ffi::v14::xlog_utils::timestamp_conversions::from_pg_timestamp 14
postgres_ffi::v14::xlog_utils::find_end_of_wal 228
postgres_ffi::v15::xlog_utils::find_end_of_wal 14
postgres_ffi::v16::xlog_utils::find_end_of_wal 14
postgres_ffi::v14::xlog_utils::find_end_of_wal 200
postgres_ffi::v14::xlog_utils::open_wal_segment 255
postgres_ffi::v15::xlog_utils::open_wal_segment 18
postgres_ffi::v16::xlog_utils::open_wal_segment 18
postgres_ffi::v14::xlog_utils::open_wal_segment 219
postgres_ffi::v14::xlog_utils::XLogFromFileName 309
postgres_ffi::v15::xlog_utils::XLogFromFileName 24
postgres_ffi::v16::xlog_utils::XLogFromFileName 24
postgres_ffi::v14::xlog_utils::XLogFromFileName 261
postgres_ffi::v14::xlog_utils::generate_pg_control 595
postgres_ffi::v15::xlog_utils::generate_pg_control 0
postgres_ffi::v16::xlog_utils::generate_pg_control 0
postgres_ffi::v14::xlog_utils::generate_pg_control 595
<postgres_ffi::v14::bindings::XLogLongPageHeaderData>::encode 601
::encode 0
::encode 0
::encode 601
<postgres_ffi::v14::bindings::XLogLongPageHeaderData>::encode::{closure#0} 601
::encode::{closure#0} 0
::encode::{closure#0} 0
::encode::{closure#0} 601
postgres_ffi::v14::xlog_utils::generate_wal_segment 601
postgres_ffi::v15::xlog_utils::generate_wal_segment 0
postgres_ffi::v16::xlog_utils::generate_wal_segment 0
postgres_ffi::v14::xlog_utils::generate_wal_segment 601
postgres_ffi::v14::xlog_utils::IsPartialXLogFileName 709
postgres_ffi::v15::xlog_utils::IsPartialXLogFileName 0
postgres_ffi::v16::xlog_utils::IsPartialXLogFileName 0
postgres_ffi::v14::xlog_utils::IsPartialXLogFileName 709
<postgres_ffi::v14::bindings::XLogPageHeaderData>::encode 780
::encode 0
::encode 183
::encode 597
<postgres_ffi::v14::bindings::XLogPageHeaderData>::encode::{closure#0} 780
::encode::{closure#0} 0
::encode::{closure#0} 183
::encode::{closure#0} 597
postgres_ffi::v14::xlog_utils::IsXLogFileName 1108
postgres_ffi::v15::xlog_utils::IsXLogFileName 54
postgres_ffi::v16::xlog_utils::IsXLogFileName 54
postgres_ffi::v14::xlog_utils::IsXLogFileName 1000
postgres_ffi::v14::xlog_utils::normalize_lsn 1356
postgres_ffi::v15::xlog_utils::normalize_lsn 0
postgres_ffi::v16::xlog_utils::normalize_lsn 0
postgres_ffi::v14::xlog_utils::normalize_lsn 1356
<postgres_ffi::v14::bindings::XLogLongPageHeaderData>::from_bytes::<bytes::bytes_mut::BytesMut> 1547
::from_bytes:: 4
::from_bytes:: 4
::from_bytes:: 1539
<postgres_ffi::v14::bindings::CheckPoint>::decode 2650
::decode 2
::decode 2
::decode 2646
postgres_ffi::v14::xlog_utils::XLogFileName 5851
postgres_ffi::v15::xlog_utils::XLogFileName 18
postgres_ffi::v16::xlog_utils::XLogFileName 18
postgres_ffi::v14::xlog_utils::XLogFileName 5815
postgres_ffi::v14::xlog_utils::IsXLogFileName::{closure#0} 8136
postgres_ffi::v15::xlog_utils::IsXLogFileName::{closure#0} 816
postgres_ffi::v16::xlog_utils::IsXLogFileName::{closure#0} 816
postgres_ffi::v14::xlog_utils::IsXLogFileName::{closure#0} 6504
postgres_ffi::v14::xlog_utils::XLogSegmentsPerXLogId 12011
postgres_ffi::v15::xlog_utils::XLogSegmentsPerXLogId 60
postgres_ffi::v16::xlog_utils::XLogSegmentsPerXLogId 60
postgres_ffi::v14::xlog_utils::XLogSegmentsPerXLogId 11891
<postgres_ffi::v14::xlog_utils::XlLogicalMessage>::encode 32815
::encode 2
::encode 5
::encode 32808
<postgres_ffi::v14::bindings::CheckPoint>::encode 34914
::encode 0
::encode 0
::encode 34914
<postgres_ffi::v14::bindings::XLogRecord>::encode 65630
::encode 4
::encode 10
::encode 65616
<postgres_ffi::v14::xlog_utils::XlLogicalMessage as serde::ser::Serialize>::serialize::<&mut bincode::ser::SizeChecker<&mut bincode::config::WithOtherIntEncoding<bincode::config::WithOtherEndian<bincode::config::DefaultOptions, bincode::config::endian::LittleEndian>, bincode::config::int::FixintEncoding>>> 65630
::serialize::<&mut bincode::ser::SizeChecker<&mut bincode::config::WithOtherLimit, bincode::config::int::FixintEncoding>, bincode::config::limit::Infinite>>> 0
::serialize::<&mut bincode::ser::SizeChecker<&mut bincode::config::WithOtherLimit, bincode::config::int::FixintEncoding>, bincode::config::limit::Infinite>>> 0
::serialize::<&mut bincode::ser::SizeChecker<&mut bincode::config::WithOtherLimit, bincode::config::int::FixintEncoding>, bincode::config::limit::Infinite>>> 0
::serialize::<&mut bincode::ser::Serializer<&mut alloc::vec::Vec, bincode::config::WithOtherLimit, bincode::config::int::FixintEncoding>, bincode::config::limit::Infinite>>> 2
::serialize::<&mut bincode::ser::SizeChecker<&mut bincode::config::WithOtherIntEncoding, bincode::config::int::FixintEncoding>>> 2
::serialize::<&mut bincode::ser::Serializer<&mut alloc::vec::Vec, bincode::config::WithOtherLimit, bincode::config::int::FixintEncoding>, bincode::config::limit::Infinite>>> 5
::serialize::<&mut bincode::ser::SizeChecker<&mut bincode::config::WithOtherIntEncoding, bincode::config::int::FixintEncoding>>> 5
::serialize::<&mut bincode::ser::Serializer<&mut alloc::vec::Vec, bincode::config::WithOtherLimit, bincode::config::int::FixintEncoding>, bincode::config::limit::Infinite>>> 32808
::serialize::<&mut bincode::ser::SizeChecker<&mut bincode::config::WithOtherIntEncoding, bincode::config::int::FixintEncoding>>> 32808
postgres_ffi::v14::xlog_utils::XLogSegNoOffsetToRecPtr 66307
postgres_ffi::v15::xlog_utils::XLogSegNoOffsetToRecPtr 24
postgres_ffi::v14::xlog_utils::XLogSegNoOffsetToRecPtr 647
postgres_ffi::v16::xlog_utils::XLogSegNoOffsetToRecPtr 65636
postgres_ffi::v14::xlog_utils::get_current_timestamp 758126
postgres_ffi::v15::xlog_utils::get_current_timestamp 2
postgres_ffi::v16::xlog_utils::get_current_timestamp 2
postgres_ffi::v14::xlog_utils::get_current_timestamp 758122
postgres_ffi::v14::xlog_utils::timestamp_conversions::to_pg_timestamp 758319
postgres_ffi::v15::xlog_utils::timestamp_conversions::to_pg_timestamp 6
postgres_ffi::v16::xlog_utils::timestamp_conversions::to_pg_timestamp 6
postgres_ffi::v14::xlog_utils::timestamp_conversions::to_pg_timestamp 758307
<postgres_ffi::v14::bindings::XLogPageHeaderData>::from_bytes::<bytes::bytes_mut::BytesMut> 3223639
::from_bytes:: 8634
::from_bytes:: 11124
::from_bytes:: 3203881
<postgres_ffi::v14::bindings::CheckPoint>::update_next_xid 71483956
::update_next_xid 8
::update_next_xid 8
::update_next_xid 71483940
<postgres_ffi::v14::bindings::XLogRecord>::from_bytes::<_> 72693843
::from_bytes::<_> 0
::from_bytes::<_> 0
::from_bytes::<_> 0
::from_bytes:: 72693843
<postgres_ffi::v14::bindings::XLogRecord>::from_slice 156326246
::from_slice 76287
::from_slice 145940
::from_slice 156104019
<postgres_ffi::v14::bindings::XLogRecord>::is_xlog_switch_record 156326246
::is_xlog_switch_record 76287
::is_xlog_switch_record 145940
::is_xlog_switch_record 156104019

Generated by: LCOV version 2.1-beta