LCOV - code coverage report
Current view: top level - libs/utils/src - lsn.rs (source / functions) Coverage Total Hit
Test: 309d74c7615cee485c3506897fba3db69780454f.info Lines: 89.5 % 325 291
Test Date: 2025-03-19 16:14:43 Functions: 59.1 % 110 65

Function Name Sort by function name Hit count Sort by function hit count
<<utils::lsn::Lsn as serde::de::Deserialize>::deserialize::LsnVisitor as serde::de::Visitor>::visit_str::<_>::{closure#0} 0
<::deserialize::LsnVisitor as serde::de::Visitor>::visit_str::<_>::{closure#0} 0
<::deserialize::LsnVisitor as serde::de::Visitor>::visit_str::>::{closure#0} 0
<::deserialize::LsnVisitor as serde::de::Visitor>::visit_str::::{closure#0} 0
<::deserialize::LsnVisitor as serde::de::Visitor>::visit_str::::{closure#0} 0
<utils::lsn::LsnSampler as rand::distributions::uniform::UniformSampler>::new::<_, _> 0
::new::<_, _> 0
::new:: 0
<utils::lsn::LsnSampler as rand::distributions::uniform::UniformSampler>::new_inclusive::<_, _> 0
<utils::lsn::LsnSampler as rand::distributions::uniform::UniformSampler>::sample::<_> 0
::sample::<_> 0
::sample:: 0
utils::lsn::serde_as_u64::deserialize::<_> 0
utils::lsn::serde_as_u64::serialize::<_> 0
<utils::lsn::AtomicLsn>::fetch_add 1
utils::lsn::tests::test_atomic_lsn 1
utils::lsn::tests::test_lsn_bincode_ensure_roundtrip 1
utils::lsn::tests::test_lsn_bincode_serde 1
utils::lsn::tests::test_lsn_ensure_roundtrip 1
utils::lsn::tests::test_lsn_math 1
utils::lsn::tests::test_lsn_serde 1
utils::lsn::tests::test_lsn_strings 1
<<utils::lsn::Lsn as serde::de::Deserialize>::deserialize::LsnVisitor as serde::de::Visitor>::expecting 2
<utils::lsn::Lsn as core::str::traits::FromStr>::from_str::{closure#1} 2
<utils::lsn::Lsn as core::str::traits::FromStr>::from_str::{closure#0} 3
<utils::lsn::Lsn>::page_lsn 5
<utils::lsn::Lsn>::page_offset_in_segment 5
<utils::lsn::Lsn>::saturating_sub::<_> 7
::saturating_sub::<_> 0
::saturating_sub:: 7
<utils::lsn::Lsn>::segment_lsn 14
<utils::lsn::AtomicLsn as core::convert::From<utils::lsn::Lsn>>::from 44
<<utils::lsn::Lsn as serde::de::Deserialize>::deserialize::LsnVisitor as serde::de::Visitor>::visit_str::<_> 517
<::deserialize::LsnVisitor as serde::de::Visitor>::visit_str::<_> 0
<::deserialize::LsnVisitor as serde::de::Visitor>::visit_str::> 0
<::deserialize::LsnVisitor as serde::de::Visitor>::visit_str:: 1
<::deserialize::LsnVisitor as serde::de::Visitor>::visit_str:: 516
<utils::lsn::Lsn as core::str::traits::FromStr>::from_str 1416
<utils::lsn::AtomicLsn>::fetch_max 2358
<utils::lsn::AtomicLsn>::store 2849
<utils::lsn::AtomicLsn>::new 4569
<utils::lsn::Lsn>::checked_sub::<_> 5570
::checked_sub::<_> 0
::checked_sub:: 83
::checked_sub:: 5487
<<utils::lsn::Lsn as serde::de::Deserialize>::deserialize::LsnVisitor as serde::de::Visitor>::visit_u64::<_> 5728
<::deserialize::LsnVisitor as serde::de::Visitor>::visit_u64::<_> 0
<::deserialize::LsnVisitor as serde::de::Visitor>::visit_u64:: 0
<::deserialize::LsnVisitor as serde::de::Visitor>::visit_u64:: 2
<::deserialize::LsnVisitor as serde::de::Visitor>::visit_u64::> 5726
<utils::lsn::Lsn as serde::de::Deserialize>::deserialize::<_> 6247
::deserialize::<&mut bincode::de::Deserializer>, bincode::config::WithOtherIntEncoding, bincode::config::int::FixintEncoding>>> 0
::deserialize::<&mut bincode::de::Deserializer>, bincode::config::WithOtherTrailing, bincode::config::trailing::AllowTrailing>>> 0
::deserialize::<&mut serde_json::de::Deserializer>> 0
::deserialize::<_> 0
::deserialize::> 0
::deserialize::> 0
::deserialize::> 0
::deserialize::>>>>> 0
::deserialize::>> 0
::deserialize::<&mut serde_assert::de::Deserializer> 5
::deserialize:: 20
::deserialize::<&mut bincode::de::Deserializer, bincode::config::int::FixintEncoding>, bincode::config::limit::Infinite>>> 32
::deserialize::<&mut serde_json::de::Deserializer> 92
::deserialize::<&mut serde_json::de::Deserializer> 404
::deserialize::<&mut bincode::de::Deserializer, bincode::config::int::FixintEncoding>, bincode::config::limit::Infinite>>> 1042
::deserialize::<&mut bincode::de::Deserializer, bincode::config::int::FixintEncoding>, bincode::config::trailing::AllowTrailing>, bincode::config::limit::Infinite>>> 4652
<utils::lsn::Lsn>::from_hex::<_> 10851
::from_hex::<_> 0
::from_hex::<&str> 10851
<utils::lsn::Lsn>::calc_padding::<_> 12562
::calc_padding::<_> 0
::calc_padding:: 2
::calc_padding:: 12560
<utils::lsn::Lsn>::segment_number 17283
<utils::lsn::Lsn as core::convert::From<u64>>::from 27382
<utils::lsn::Lsn as serde::ser::Serialize>::serialize::<_> 44472
::serialize::<&mut bincode::ser::Serializer<&mut alloc::vec::Vec, bincode::config::WithOtherIntEncoding>> 0
::serialize::<&mut bincode::ser::Serializer<&mut alloc::vec::Vec, bincode::config::WithOtherLimit, bincode::config::trailing::AllowTrailing>, bincode::config::limit::Infinite>>> 0
::serialize::<&mut bincode::ser::Serializer<&mut bytes::buf::writer::Writer, bincode::config::WithOtherIntEncoding, bincode::config::int::FixintEncoding>>> 0
::serialize::<&mut bincode::ser::SizeChecker<&mut bincode::config::WithOtherIntEncoding>> 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::SizeChecker<&mut bincode::config::WithOtherLimit, bincode::config::trailing::AllowTrailing>, bincode::config::limit::Infinite>>> 0
::serialize::<&mut bincode::ser::SizeChecker<&mut bincode::config::WithOtherTrailing, bincode::config::trailing::AllowTrailing>>> 0
::serialize::<&mut serde_json::ser::Serializer<&mut alloc::vec::Vec, serde_json::ser::PrettyFormatter>> 0
::serialize::<&mut serde_json::ser::Serializer<&mut http_utils::endpoint::ChannelWriter>> 0
::serialize::<_> 0
::serialize::, serde_json::ser::CompactFormatter>> 0
::serialize::, serde_json::ser::PrettyFormatter>> 0
::serialize::> 0
::serialize::> 0
::serialize:: 0
::serialize::<&serde_assert::ser::Serializer> 5
::serialize:: 20
::serialize::<&mut bincode::ser::Serializer<&mut alloc::vec::Vec, bincode::config::WithOtherLimit, bincode::config::int::FixintEncoding>, bincode::config::limit::Infinite>>> 26
::serialize::<&mut bincode::ser::SizeChecker<&mut bincode::config::WithOtherIntEncoding, bincode::config::int::FixintEncoding>>> 26
::serialize::<&mut bincode::ser::Serializer<&mut alloc::vec::Vec, bincode::config::WithOtherIntEncoding, bincode::config::int::FixintEncoding>>> 161
::serialize::<&mut bincode::ser::Serializer<&mut >::try_from::Crc32Sink, bincode::config::WithOtherIntEncoding, bincode::config::int::FixintEncoding>>> 456
::serialize::<&mut bincode::ser::Serializer<&mut alloc::vec::Vec, bincode::config::WithOtherLimit, bincode::config::int::FixintEncoding>, bincode::config::limit::Infinite>>> 770
::serialize::<&mut bincode::ser::SizeChecker<&mut bincode::config::WithOtherIntEncoding, bincode::config::int::FixintEncoding>>> 770
::serialize::<&mut bincode::ser::Serializer<&mut alloc::vec::Vec, bincode::config::WithOtherIntEncoding, bincode::config::int::FixintEncoding>>> 6500
::serialize::<&mut serde_json::ser::Serializer<&mut alloc::vec::Vec>> 17551
::serialize::<&mut serde_json::ser::Serializer> 18187
<utils::lsn::Lsn as core::fmt::Debug>::fmt 96804
<utils::lsn::Lsn>::remaining_in_block 1560007
<utils::lsn::Lsn>::segment_offset 1581887
<utils::lsn::Lsn>::block_offset 1593672
<utils::lsn::Lsn as core::ops::arith::AddAssign<u64>>::add_assign 1937110
<utils::lsn::Lsn as core::ops::arith::Add<u64>>::add 8104463
<utils::lsn::Lsn>::widening_sub::<_> 9606024
::widening_sub::<_> 0
::widening_sub:: 4
::widening_sub:: 9606020
<utils::lsn::RecordLsn as utils::seqwait::MonotonicCounter<utils::lsn::Lsn>>::cnt_advance 9608920
<utils::lsn::AtomicLsn>::load 9610787
<u64 as core::convert::From<utils::lsn::Lsn>>::from 9835244
<utils::lsn::Lsn as core::fmt::Display>::fmt 10335414
<utils::lsn::Lsn>::is_aligned 10561646
<utils::lsn::Lsn>::align 10880408
<utils::lsn::RecordLsn as utils::seqwait::MonotonicCounter<utils::lsn::Lsn>>::cnt_value 11009410
<utils::lsn::Lsn>::is_valid 17449745

Generated by: LCOV version 2.1-beta