LCOV - code coverage report
Current view: top level - libs/utils/src - lsn.rs (source / functions) Coverage Total Hit
Test: fc67f8dc6087a0b4f4f0bcd74f6e1dc25fab8cf3.info Lines: 86.4 % 323 279
Test Date: 2024-09-24 13:57:57 Functions: 67.4 % 92 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::<serde_assert::de::Error>::{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>::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::Lsn>::calc_padding::<u32> 4
::calc_padding:: 2
::calc_padding:: 2
<utils::lsn::AtomicLsn as core::convert::From<utils::lsn::Lsn>>::from 18
<<utils::lsn::Lsn as serde::de::Deserialize>::deserialize::LsnVisitor as serde::de::Visitor>::visit_str::<serde_assert::de::Error> 655
<::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:: 654
<utils::lsn::Lsn as core::str::traits::FromStr>::from_str 2271
<utils::lsn::AtomicLsn>::fetch_max 3434
<utils::lsn::AtomicLsn>::new 6241
<utils::lsn::AtomicLsn>::store 6316
<utils::lsn::Lsn>::from_hex::<&str> 14829
<utils::lsn::Lsn>::checked_sub::<u64> 16728
::checked_sub:: 2264
::checked_sub:: 14464
<utils::lsn::Lsn as core::fmt::Debug>::fmt 21948
<utils::lsn::Lsn as core::convert::From<u64>>::from 32916
<<utils::lsn::Lsn as serde::de::Deserialize>::deserialize::LsnVisitor as serde::de::Visitor>::visit_u64::<serde_assert::de::Error> 57605
<::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::> 57603
<utils::lsn::Lsn as serde::de::Deserialize>::deserialize::<serde_json::value::Value> 58262
::deserialize::<&mut serde_json::de::Deserializer>> 0
::deserialize::> 0
::deserialize::> 0
::deserialize::>>>>> 0
::deserialize::<&mut serde_assert::de::Deserializer> 5
::deserialize:: 30
::deserialize::<&mut bincode::de::Deserializer, bincode::config::int::FixintEncoding>, bincode::config::limit::Infinite>>> 41
::deserialize::<&mut serde_json::de::Deserializer> 138
::deserialize::<&mut serde_json::de::Deserializer> 486
::deserialize::<&mut bincode::de::Deserializer, bincode::config::int::FixintEncoding>, bincode::config::limit::Infinite>>> 698
::deserialize::<&mut bincode::de::Deserializer, bincode::config::int::FixintEncoding>, bincode::config::trailing::AllowTrailing>, bincode::config::limit::Infinite>>> 6594
::deserialize::<&mut bincode::de::Deserializer>, bincode::config::WithOtherIntEncoding, bincode::config::int::FixintEncoding>>> 50270
<utils::lsn::Lsn as serde::ser::Serialize>::serialize::<&serde_assert::ser::Serializer> 61850
::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::, serde_json::ser::CompactFormatter>> 0
::serialize::, serde_json::ser::PrettyFormatter>> 0
::serialize::> 0
::serialize::> 0
::serialize:: 0
::serialize::<&serde_assert::ser::Serializer> 5
::serialize::<&mut bincode::ser::Serializer<&mut alloc::vec::Vec, bincode::config::WithOtherIntEncoding, bincode::config::int::FixintEncoding>>> 12
::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:: 30
::serialize::<&mut bincode::ser::Serializer<&mut alloc::vec::Vec, bincode::config::WithOtherLimit, bincode::config::int::FixintEncoding>, bincode::config::limit::Infinite>>> 290
::serialize::<&mut bincode::ser::SizeChecker<&mut bincode::config::WithOtherIntEncoding, bincode::config::int::FixintEncoding>>> 290
::serialize::<&mut bincode::ser::Serializer<&mut >::try_from::Crc32Sink, bincode::config::WithOtherIntEncoding, bincode::config::int::FixintEncoding>>> 504
::serialize::<&mut bincode::ser::Serializer<&mut alloc::vec::Vec, bincode::config::WithOtherIntEncoding, bincode::config::int::FixintEncoding>>> 9348
::serialize::<&mut serde_json::ser::Serializer<&mut alloc::vec::Vec>> 25363
::serialize::<&mut serde_json::ser::Serializer> 25950
<utils::lsn::Lsn>::segment_number 65265
<utils::lsn::Lsn as core::ops::arith::AddAssign<u64>>::add_assign 2242164
<utils::lsn::Lsn>::remaining_in_block 2298620
<utils::lsn::Lsn>::block_offset 2380369
<utils::lsn::Lsn>::segment_offset 2461632
<utils::lsn::Lsn as core::ops::arith::Add<u64>>::add 8892859
<utils::lsn::Lsn>::widening_sub::<u64> 14409064
::widening_sub:: 4
::widening_sub:: 14409060
<utils::lsn::RecordLsn as utils::seqwait::MonotonicCounter<utils::lsn::Lsn>>::cnt_advance 14413284
<utils::lsn::AtomicLsn>::load 14420810
<u64 as core::convert::From<utils::lsn::Lsn>>::from 14765124
<utils::lsn::Lsn as core::fmt::Display>::fmt 15503438
<utils::lsn::Lsn>::is_aligned 15841206
<utils::lsn::Lsn>::align 16316499
<utils::lsn::RecordLsn as utils::seqwait::MonotonicCounter<utils::lsn::Lsn>>::cnt_value 16511013
<utils::lsn::Lsn>::is_valid 26172123

Generated by: LCOV version 2.1-beta