LCOV - code coverage report
Current view: top level - libs/postgres_ffi/src - xlog_utils.rs (source / functions) Coverage Total Hit
Test: 322b88762cba8ea666f63cda880cccab6936bf37.info Lines: 66.8 % 322 215
Test Date: 2024-02-29 11:57:12 Functions: 69.7 % 109 76

Function Name Sort by function name Hit count Sort by function hit count
<postgres_ffi::v14::bindings::XLogLongPageHeaderData>::encode 0
::encode 0
::encode 0
::encode 0
<postgres_ffi::v14::bindings::XLogLongPageHeaderData>::encode::{closure#0} 0
::encode::{closure#0} 0
::encode::{closure#0} 0
::encode::{closure#0} 0
postgres_ffi::v14::xlog_utils::IsPartialXLogFileName 0
postgres_ffi::v14::xlog_utils::IsPartialXLogFileName 0
postgres_ffi::v15::xlog_utils::IsPartialXLogFileName 0
postgres_ffi::v16::xlog_utils::IsPartialXLogFileName 0
postgres_ffi::v14::xlog_utils::generate_pg_control 0
postgres_ffi::v14::xlog_utils::generate_pg_control 0
postgres_ffi::v15::xlog_utils::generate_pg_control 0
postgres_ffi::v16::xlog_utils::generate_pg_control 0
postgres_ffi::v14::xlog_utils::generate_wal_segment 0
postgres_ffi::v14::xlog_utils::generate_wal_segment 0
postgres_ffi::v15::xlog_utils::generate_wal_segment 0
postgres_ffi::v16::xlog_utils::generate_wal_segment 0
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::normalize_lsn 0
postgres_ffi::v14::xlog_utils::normalize_lsn 0
postgres_ffi::v15::xlog_utils::normalize_lsn 0
postgres_ffi::v16::xlog_utils::normalize_lsn 0
postgres_ffi::v14::xlog_utils::encode_logical_message 6
postgres_ffi::v14::xlog_utils::encode_logical_message 2
postgres_ffi::v15::xlog_utils::encode_logical_message 2
postgres_ffi::v16::xlog_utils::encode_logical_message 2
postgres_ffi::v14::xlog_utils::get_current_timestamp 6
postgres_ffi::v14::xlog_utils::get_current_timestamp 2
postgres_ffi::v15::xlog_utils::get_current_timestamp 2
postgres_ffi::v16::xlog_utils::get_current_timestamp 2
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::bindings::CheckPoint>::encode 8
::encode 0
::encode 0
::encode 8
<postgres_ffi::v14::bindings::XLogLongPageHeaderData>::from_bytes::<bytes::bytes_mut::BytesMut> 12
::from_bytes:: 4
::from_bytes:: 4
::from_bytes:: 4
postgres_ffi::v14::xlog_utils::timestamp_conversions::from_pg_timestamp 12
postgres_ffi::v14::xlog_utils::timestamp_conversions::from_pg_timestamp 4
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::to_pg_timestamp 18
postgres_ffi::v14::xlog_utils::timestamp_conversions::to_pg_timestamp 6
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::bindings::CheckPoint>::decode 20
::decode 2
::decode 2
::decode 16
postgres_ffi::v14::xlog_utils::find_end_of_wal 42
postgres_ffi::v14::xlog_utils::find_end_of_wal 14
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::open_wal_segment 54
postgres_ffi::v14::xlog_utils::open_wal_segment 18
postgres_ffi::v15::xlog_utils::open_wal_segment 18
postgres_ffi::v16::xlog_utils::open_wal_segment 18
postgres_ffi::v14::xlog_utils::XLogFileName 56
postgres_ffi::v15::xlog_utils::XLogFileName 18
postgres_ffi::v16::xlog_utils::XLogFileName 18
postgres_ffi::v14::xlog_utils::XLogFileName 20
postgres_ffi::v14::xlog_utils::XLogFromFileName 72
postgres_ffi::v14::xlog_utils::XLogFromFileName 24
postgres_ffi::v15::xlog_utils::XLogFromFileName 24
postgres_ffi::v16::xlog_utils::XLogFromFileName 24
postgres_ffi::v14::xlog_utils::IsXLogFileName 162
postgres_ffi::v14::xlog_utils::IsXLogFileName 54
postgres_ffi::v15::xlog_utils::IsXLogFileName 54
postgres_ffi::v16::xlog_utils::IsXLogFileName 54
<postgres_ffi::v14::bindings::XLogPageHeaderData>::encode 181
::encode 0
::encode 0
::encode 181
<postgres_ffi::v14::bindings::XLogPageHeaderData>::encode::{closure#0} 181
::encode::{closure#0} 0
::encode::{closure#0} 0
::encode::{closure#0} 181
postgres_ffi::v14::xlog_utils::XLogSegmentsPerXLogId 184
postgres_ffi::v15::xlog_utils::XLogSegmentsPerXLogId 60
postgres_ffi::v16::xlog_utils::XLogSegmentsPerXLogId 60
postgres_ffi::v14::xlog_utils::XLogSegmentsPerXLogId 64
postgres_ffi::v14::xlog_utils::IsXLogFileName::{closure#0} 2448
postgres_ffi::v14::xlog_utils::IsXLogFileName::{closure#0} 816
postgres_ffi::v15::xlog_utils::IsXLogFileName::{closure#0} 816
postgres_ffi::v16::xlog_utils::IsXLogFileName::{closure#0} 816
<postgres_ffi::v14::bindings::XLogPageHeaderData>::from_bytes::<bytes::bytes_mut::BytesMut> 27968
::from_bytes:: 8230
::from_bytes:: 8614
::from_bytes:: 11124
<postgres_ffi::v14::xlog_utils::XlLogicalMessage>::encode 31922
::encode 2
::encode 2
::encode 31918
<postgres_ffi::v14::bindings::XLogRecord>::encode 63844
::encode 4
::encode 4
::encode 63836
<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>>> 63844
::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>>> 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>>> 31918
::serialize::<&mut bincode::ser::SizeChecker<&mut bincode::config::WithOtherIntEncoding, bincode::config::int::FixintEncoding>>> 31918
postgres_ffi::v14::xlog_utils::XLogSegNoOffsetToRecPtr 63904
postgres_ffi::v14::xlog_utils::XLogSegNoOffsetToRecPtr 24
postgres_ffi::v15::xlog_utils::XLogSegNoOffsetToRecPtr 24
postgres_ffi::v16::xlog_utils::XLogSegNoOffsetToRecPtr 63856
<postgres_ffi::v14::bindings::XLogRecord>::from_bytes::<_> 145852
::from_bytes::<_> 0
::from_bytes::<_> 0
::from_bytes::<_> 0
::from_bytes:: 145852
<postgres_ffi::v14::bindings::CheckPoint>::update_next_xid 145858
::update_next_xid 8
::update_next_xid 8
::update_next_xid 145842
<postgres_ffi::v14::bindings::XLogRecord>::from_slice 219308
::from_slice 84
::from_slice 73288
::from_slice 145936
<postgres_ffi::v14::bindings::XLogRecord>::is_xlog_switch_record 219308
::is_xlog_switch_record 84
::is_xlog_switch_record 73288
::is_xlog_switch_record 145936

Generated by: LCOV version 2.1-beta