LCOV - code coverage report
Current view: top level - libs/utils/src - lsn.rs (source / functions) Coverage Total Hit
Test: aca8877be6ceba750c1be359ed71bc1799d52b30.info Lines: 89.0 % 355 316
Test Date: 2024-02-14 18:05:35 Functions: 70.4 % 115 81

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>::from_filename::<_> 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::RecordLsn as core::fmt::Debug>::fmt 0
::clone 0
::fmt 0
utils::lsn::serde_as_u64::serialize::<_> 0
<utils::lsn::AtomicLsn>::fetch_add 2
<utils::lsn::LsnParseError as core::fmt::Debug>::fmt 2
::fmt 0
::fmt 0
::eq 2
utils::lsn::tests::test_atomic_lsn 2
utils::lsn::tests::test_atomic_lsn::{closure#0} 2
utils::lsn::tests::test_lsn_bincode_ensure_roundtrip 2
utils::lsn::tests::test_lsn_bincode_ensure_roundtrip::{closure#0} 2
utils::lsn::tests::test_lsn_bincode_serde 2
utils::lsn::tests::test_lsn_bincode_serde::{closure#0} 2
utils::lsn::tests::test_lsn_ensure_roundtrip 2
utils::lsn::tests::test_lsn_ensure_roundtrip::{closure#0} 2
utils::lsn::tests::test_lsn_math 2
utils::lsn::tests::test_lsn_math::{closure#0} 2
utils::lsn::tests::test_lsn_serde 2
utils::lsn::tests::test_lsn_serde::{closure#0} 2
utils::lsn::tests::test_lsn_strings 2
utils::lsn::tests::test_lsn_strings::{closure#0} 2
<<utils::lsn::Lsn as serde::de::Deserialize>::deserialize::LsnVisitor as serde::de::Visitor>::expecting 4
<utils::lsn::AtomicLsn>::fetch_max 4
<utils::lsn::Lsn as core::str::traits::FromStr>::from_str::{closure#1} 4
<utils::lsn::Lsn as core::str::traits::FromStr>::from_str::{closure#0} 6
utils::lsn::serde_as_u64::deserialize::<_> 9
utils::lsn::serde_as_u64::deserialize::<_> 0
utils::lsn::serde_as_u64::deserialize::<&mut serde_json::de::Deserializer> 9
<utils::lsn::AtomicLsn as core::convert::From<utils::lsn::Lsn>>::from 443
<utils::lsn::Lsn>::page_lsn 597
<utils::lsn::Lsn>::page_offset_in_segment 597
<utils::lsn::Lsn>::calc_padding::<_> 781
::calc_padding::<_> 0
::calc_padding:: 16
::calc_padding:: 765
<utils::lsn::Lsn>::segment_lsn 1499
<utils::lsn::AtomicLsn>::new 4778
<<utils::lsn::Lsn as serde::de::Deserialize>::deserialize::LsnVisitor as serde::de::Visitor>::visit_str::<_> 13617
<::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:: 2
<::deserialize::LsnVisitor as serde::de::Visitor>::visit_str:: 13615
<utils::lsn::AtomicLsn>::store 14615
<utils::lsn::Lsn as core::str::traits::FromStr>::from_str 19025
<utils::lsn::Lsn as core::fmt::Debug>::fmt 22416
<utils::lsn::Lsn>::from_hex::<_> 124679
::from_hex::<_> 0
::from_hex::<&str> 124679
<utils::lsn::Lsn as serde::ser::Serialize>::serialize::<_> 245347
::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::<_> 0
::serialize::, serde_json::ser::CompactFormatter>> 0
::serialize::, serde_json::ser::PrettyFormatter>> 0
::serialize::> 0
::serialize:: 0
::serialize:: 7
::serialize::<&serde_assert::ser::Serializer> 10
::serialize::<&mut bincode::ser::Serializer<&mut alloc::vec::Vec, bincode::config::WithOtherLimit, bincode::config::int::FixintEncoding>, bincode::config::limit::Infinite>>> 58
::serialize::<&mut bincode::ser::SizeChecker<&mut bincode::config::WithOtherIntEncoding, bincode::config::int::FixintEncoding>>> 58
::serialize::<&mut serde_json::ser::Serializer<&mut utils::http::endpoint::ChannelWriter>> 96
::serialize::<&mut serde_json::ser::Serializer<&mut alloc::vec::Vec, serde_json::ser::PrettyFormatter>> 266
::serialize::<&mut bincode::ser::Serializer<&mut alloc::vec::Vec, bincode::config::WithOtherIntEncoding, bincode::config::int::FixintEncoding>>> 38133
::serialize::<&mut bincode::ser::Serializer<&mut alloc::vec::Vec, bincode::config::WithOtherIntEncoding, bincode::config::int::FixintEncoding>>> 38582
::serialize::<&mut serde_json::ser::Serializer<&mut alloc::vec::Vec>> 48191
::serialize::<&mut bincode::ser::Serializer<&mut alloc::vec::Vec, bincode::config::WithOtherLimit, bincode::config::int::FixintEncoding>, bincode::config::limit::Infinite>>> 59973
::serialize::<&mut bincode::ser::SizeChecker<&mut bincode::config::WithOtherIntEncoding, bincode::config::int::FixintEncoding>>> 59973
<utils::lsn::Lsn>::widening_sub::<_> 1356131
::widening_sub::<_> 0
::widening_sub:: 8
::widening_sub:: 1356123
<utils::lsn::Lsn>::segment_number 1695831
<utils::lsn::Lsn>::checked_sub::<_> 2500153
::checked_sub::<_> 0
::checked_sub:: 81157
::checked_sub:: 2418996
<utils::lsn::AtomicLsn>::load 2874301
<utils::lsn::Lsn as core::fmt::Display>::fmt 6381231
<utils::lsn::Lsn as core::convert::From<u64>>::from 6791539
<u64 as core::convert::From<utils::lsn::Lsn>>::from 9505793
<<utils::lsn::Lsn as serde::de::Deserialize>::deserialize::LsnVisitor as serde::de::Visitor>::visit_u64::<_> 12147824
<::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:: 4
<::deserialize::LsnVisitor as serde::de::Visitor>::visit_u64::> 12147820
<utils::lsn::Lsn as serde::de::Deserialize>::deserialize::<_> 12161445
::deserialize::<_> 0
::deserialize::> 0
::deserialize:: 7
::deserialize::<&mut serde_assert::de::Deserializer> 10
::deserialize::<&mut serde_json::de::Deserializer>> 44
::deserialize::<&mut serde_json::de::Deserializer> 50
::deserialize::>>>>> 113
::deserialize::<&mut bincode::de::Deserializer, bincode::config::int::FixintEncoding>, bincode::config::limit::Infinite>>> 1291
::deserialize::<&mut bincode::de::Deserializer, bincode::config::int::FixintEncoding>, bincode::config::limit::Infinite>>> 6083
::deserialize::<&mut serde_json::de::Deserializer> 13401
::deserialize::<&mut bincode::de::Deserializer, bincode::config::int::FixintEncoding>, bincode::config::trailing::AllowTrailing>, bincode::config::limit::Infinite>>> 45466
::deserialize::<&mut bincode::de::Deserializer>, bincode::config::WithOtherIntEncoding, bincode::config::int::FixintEncoding>>> 12094980
<utils::lsn::Lsn>::is_valid 16217585
<utils::lsn::Lsn as core::ops::arith::Add<u64>>::add 59671984
<utils::lsn::RecordLsn as utils::seqwait::MonotonicCounter<utils::lsn::Lsn>>::cnt_advance 74247913
<utils::lsn::RecordLsn as utils::seqwait::MonotonicCounter<utils::lsn::Lsn>>::cnt_value 77543996
<utils::lsn::Lsn>::is_aligned 151459847
<utils::lsn::Lsn>::remaining_in_block 163130477
<utils::lsn::Lsn>::block_offset 165532059
<utils::lsn::Lsn>::segment_offset 168658543
<utils::lsn::Lsn>::align 307788072
<utils::lsn::Lsn as core::ops::arith::AddAssign<u64>>::add_assign 322035083
<utils::lsn::Lsn as core::cmp::Ord>::cmp 1423575339
::hash::<_> 0
::hash:: 35759220
::clone 106409549
::cmp 150035171
::eq 311652816
::partial_cmp 819718583

Generated by: LCOV version 2.1-beta