LCOV - code coverage report
Current view: top level - libs/utils/src - lsn.rs (source / functions) Coverage Total Hit
Test: 8b13a09a5c233d98abd4a0d3e59157e7db16d6fd.info Lines: 85.6 % 326 279
Test Date: 2024-11-21 10:53:51 Functions: 59.0 % 105 62

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::Lsn>::page_lsn 0
<utils::lsn::Lsn>::page_offset_in_segment 0
<utils::lsn::Lsn>::saturating_sub::<_> 0
::saturating_sub::<_> 0
::saturating_sub:: 0
<utils::lsn::Lsn>::segment_lsn 0
<utils::lsn::LsnParseError as core::fmt::Display>::fmt 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::deserialize::<&mut serde_json::de::Deserializer> 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::AtomicLsn as core::convert::From<utils::lsn::Lsn>>::from 6
<<utils::lsn::Lsn as serde::de::Deserialize>::deserialize::LsnVisitor as serde::de::Visitor>::visit_str::<_> 219
<::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:: 218
<utils::lsn::Lsn as core::str::traits::FromStr>::from_str 731
<utils::lsn::AtomicLsn>::fetch_max 1146
<utils::lsn::AtomicLsn>::store 1357
<utils::lsn::AtomicLsn>::new 2091
<utils::lsn::Lsn>::checked_sub::<_> 4627
::checked_sub::<_> 0
::checked_sub:: 6
::checked_sub:: 4621
<utils::lsn::Lsn>::from_hex::<_> 4967
::from_hex::<_> 0
::from_hex::<&str> 4967
<utils::lsn::Lsn as core::fmt::Debug>::fmt 8966
<utils::lsn::Lsn as core::convert::From<u64>>::from 11189
<utils::lsn::Lsn>::calc_padding::<_> 11842
::calc_padding::<_> 0
::calc_padding:: 2
::calc_padding:: 11840
<utils::lsn::Lsn>::segment_number 16547
<utils::lsn::Lsn as serde::ser::Serialize>::serialize::<_> 20655
::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::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 serde_json::ser::Serializer<&mut alloc::vec::Vec, serde_json::ser::PrettyFormatter>> 0
::serialize::<&mut serde_json::ser::Serializer<&mut utils::http::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:: 10
::serialize::<&mut bincode::ser::Serializer<&mut alloc::vec::Vec, bincode::config::WithOtherIntEncoding, bincode::config::int::FixintEncoding>>> 24
::serialize::<&mut bincode::ser::Serializer<&mut alloc::vec::Vec, bincode::config::WithOtherLimit, bincode::config::int::FixintEncoding>, bincode::config::limit::Infinite>>> 29
::serialize::<&mut bincode::ser::SizeChecker<&mut bincode::config::WithOtherIntEncoding, bincode::config::int::FixintEncoding>>> 29
::serialize::<&mut bincode::ser::Serializer<&mut alloc::vec::Vec, bincode::config::WithOtherLimit, bincode::config::int::FixintEncoding>, bincode::config::limit::Infinite>>> 98
::serialize::<&mut bincode::ser::SizeChecker<&mut bincode::config::WithOtherIntEncoding, bincode::config::int::FixintEncoding>>> 98
::serialize::<&mut bincode::ser::Serializer<&mut >::try_from::Crc32Sink, bincode::config::WithOtherIntEncoding, bincode::config::int::FixintEncoding>>> 168
::serialize::<&mut bincode::ser::Serializer<&mut alloc::vec::Vec, bincode::config::WithOtherIntEncoding, bincode::config::int::FixintEncoding>>> 3144
::serialize::<&mut serde_json::ser::Serializer<&mut alloc::vec::Vec>> 8435
::serialize::<&mut serde_json::ser::Serializer> 8615
<<utils::lsn::Lsn as serde::de::Deserialize>::deserialize::LsnVisitor as serde::de::Visitor>::visit_u64::<_> 22034
<::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::> 22032
<utils::lsn::Lsn as serde::de::Deserialize>::deserialize::<_> 22255
::deserialize::<&mut serde_json::de::Deserializer>> 0
::deserialize::<_> 0
::deserialize::> 0
::deserialize::> 0
::deserialize::> 0
::deserialize::>>>>> 0
::deserialize::<&mut serde_assert::de::Deserializer> 5
::deserialize:: 10
::deserialize::<&mut bincode::de::Deserializer, bincode::config::int::FixintEncoding>, bincode::config::limit::Infinite>>> 35
::deserialize::<&mut serde_json::de::Deserializer> 46
::deserialize::<&mut serde_json::de::Deserializer> 162
::deserialize::<&mut bincode::de::Deserializer, bincode::config::int::FixintEncoding>, bincode::config::limit::Infinite>>> 234
::deserialize::<&mut bincode::de::Deserializer, bincode::config::int::FixintEncoding>, bincode::config::trailing::AllowTrailing>, bincode::config::limit::Infinite>>> 2258
::deserialize::<&mut bincode::de::Deserializer>, bincode::config::WithOtherIntEncoding, bincode::config::int::FixintEncoding>>> 19505
<utils::lsn::Lsn>::remaining_in_block 809646
<utils::lsn::Lsn>::segment_offset 818210
<utils::lsn::Lsn>::block_offset 829987
<utils::lsn::Lsn as core::ops::arith::AddAssign<u64>>::add_assign 1602044
<utils::lsn::Lsn as core::ops::arith::Add<u64>>::add 2925202
<utils::lsn::Lsn>::widening_sub::<_> 4803014
::widening_sub::<_> 0
::widening_sub:: 4
::widening_sub:: 4803010
<utils::lsn::RecordLsn as utils::seqwait::MonotonicCounter<utils::lsn::Lsn>>::cnt_advance 4804416
<utils::lsn::AtomicLsn>::load 4805422
<u64 as core::convert::From<utils::lsn::Lsn>>::from 4944260
<utils::lsn::Lsn as core::fmt::Display>::fmt 5168109
<utils::lsn::Lsn>::is_aligned 5280380
<utils::lsn::Lsn>::align 5451964
<utils::lsn::RecordLsn as utils::seqwait::MonotonicCounter<utils::lsn::Lsn>>::cnt_value 5505772
<utils::lsn::Lsn>::is_valid 8723842

Generated by: LCOV version 2.1-beta