LCOV - code coverage report
Current view: top level - pageserver/src/tenant - metadata.rs (source / functions) Coverage Total Hit
Test: 8ff8efadb0253cf618c612650348666c0c564111.info Lines: 92.4 % 370 342
Test Date: 2024-11-20 17:53:50 Functions: 58.5 % 82 48

Function Name Sort by function name Hit count Sort by function hit count
<<pageserver::tenant::metadata::TimelineMetadataBodyV1 as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::expecting 2
<::deserialize::__Field as serde::de::Deserialize>::deserialize::<_> 0
<::deserialize::__FieldVisitor as serde::de::Visitor>::expecting 0
<::deserialize::__FieldVisitor as serde::de::Visitor>::visit_bytes::<_> 0
<::deserialize::__FieldVisitor as serde::de::Visitor>::visit_str::<_> 0
<::deserialize::__FieldVisitor as serde::de::Visitor>::visit_u64::<_> 0
<::deserialize::__Visitor as serde::de::Visitor>::expecting 0
<::deserialize::__Visitor as serde::de::Visitor>::visit_map::<_> 0
<::deserialize::__Visitor as serde::de::Visitor>::visit_seq::<<&mut bincode::de::Deserializer<_, _> as serde::de::Deserializer>::deserialize_tuple::Access, bincode::config::int::FixintEncoding>, bincode::config::limit::Infinite>>> 2
<<pageserver::tenant::metadata::TimelineMetadataBodyV2 as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::expecting 498
<::deserialize::__Field as serde::de::Deserialize>::deserialize::> 182
<::deserialize::__Field as serde::de::Deserialize>::deserialize::> 14
<::deserialize::__Field as serde::de::Deserialize>::deserialize:: 14
<::deserialize::__FieldVisitor as serde::de::Visitor>::expecting 0
<::deserialize::__FieldVisitor as serde::de::Visitor>::visit_bytes::<_> 0
<::deserialize::__FieldVisitor as serde::de::Visitor>::visit_str:: 210
<::deserialize::__FieldVisitor as serde::de::Visitor>::visit_u64::<_> 0
<::deserialize::__Visitor as serde::de::Visitor>::expecting 0
<::deserialize::__Visitor as serde::de::Visitor>::visit_map::<&mut serde_json::value::de::MapDeserializer> 2
<::deserialize::__Visitor as serde::de::Visitor>::visit_map::> 26
<::deserialize::__Visitor as serde::de::Visitor>::visit_map::> 2
<::deserialize::__Visitor as serde::de::Visitor>::visit_seq::<<&mut bincode::de::Deserializer<_, _> as serde::de::Deserializer>::deserialize_tuple::Access, bincode::config::int::FixintEncoding>, bincode::config::limit::Infinite>>> 48
<<pageserver::tenant::metadata::TimelineMetadataHeader as core::convert::TryFrom<&pageserver::tenant::metadata::TimelineMetadataBodyV2>>::try_from::Crc32Sink as std::io::Write>::flush 0
<<pageserver::tenant::metadata::TimelineMetadataHeader as core::convert::TryFrom<&pageserver::tenant::metadata::TimelineMetadataBodyV2>>::try_from::Crc32Sink as std::io::Write>::write 500
<<pageserver::tenant::metadata::TimelineMetadataHeader as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::expecting 52
<::deserialize::__Field as serde::de::Deserialize>::deserialize::<_> 0
<::deserialize::__FieldVisitor as serde::de::Visitor>::expecting 0
<::deserialize::__FieldVisitor as serde::de::Visitor>::visit_bytes::<_> 0
<::deserialize::__FieldVisitor as serde::de::Visitor>::visit_str::<_> 0
<::deserialize::__FieldVisitor as serde::de::Visitor>::visit_u64::<_> 0
<::deserialize::__Visitor as serde::de::Visitor>::expecting 0
<::deserialize::__Visitor as serde::de::Visitor>::visit_map::<_> 0
<::deserialize::__Visitor as serde::de::Visitor>::visit_seq::<<&mut bincode::de::Deserializer<_, _> as serde::de::Deserializer>::deserialize_tuple::Access, bincode::config::int::FixintEncoding>, bincode::config::limit::Infinite>>> 52
<<pageserver::tenant::metadata::modern_serde::deserializes_bytes_as_well_as_equivalent_body_v2::Wrapper as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::expecting 6
<<::deserialize::__Visitor as serde::de::Visitor>::visit_seq::__DeserializeWith as serde::de::Deserialize>::deserialize::<_> 0
<::deserialize::__Visitor as serde::de::Visitor>::expecting 0
<::deserialize::__Visitor as serde::de::Visitor>::visit_newtype_struct::<&mut serde_json::de::Deserializer> 2
<::deserialize::__Visitor as serde::de::Visitor>::visit_newtype_struct:: 2
<::deserialize::__Visitor as serde::de::Visitor>::visit_seq::<_> 0
<::deserialize::__Visitor as serde::de::Visitor>::visit_seq::<_>::{closure#0} 0
<::serialize::__SerializeWith as serde::ser::Serialize>::serialize:: 2
<pageserver::tenant::metadata::Crc32CalculationFailed as core::fmt::Display>::fmt 0
::source 0
::fmt 0
<pageserver::tenant::metadata::MetadataUpdate>::new 1146
<pageserver::tenant::metadata::TimelineMetadata>::ancestor_lsn 650
<pageserver::tenant::metadata::TimelineMetadata>::ancestor_timeline 438
<pageserver::tenant::metadata::TimelineMetadata>::apply 1146
<pageserver::tenant::metadata::TimelineMetadata>::detach_from_ancestor 0
<pageserver::tenant::metadata::TimelineMetadata>::disk_consistent_lsn 21222
<pageserver::tenant::metadata::TimelineMetadata>::example 12
<pageserver::tenant::metadata::TimelineMetadata>::from_bytes 50
<pageserver::tenant::metadata::TimelineMetadata>::initdb_lsn 418
<pageserver::tenant::metadata::TimelineMetadata>::latest_gc_cutoff_lsn 418
<pageserver::tenant::metadata::TimelineMetadata>::new 438
<pageserver::tenant::metadata::TimelineMetadata>::pg_version 422
<pageserver::tenant::metadata::TimelineMetadata>::prev_record_lsn 418
<pageserver::tenant::metadata::TimelineMetadata>::reparent 0
<pageserver::tenant::metadata::TimelineMetadata>::to_bytes 18
<pageserver::tenant::metadata::TimelineMetadata>::upgrade_timeline_metadata 2
<pageserver::tenant::metadata::TimelineMetadata>::with_recalculated_checksum 6
<pageserver::tenant::metadata::TimelineMetadataHeader as core::convert::TryFrom<&pageserver::tenant::metadata::TimelineMetadataBodyV2>>::try_from 36
<pageserver::tenant::metadata::modern_serde::deserialize::Visitor as serde::de::Visitor>::expecting 0
<pageserver::tenant::metadata::modern_serde::deserialize::Visitor as serde::de::Visitor>::visit_map::<&mut serde_json::value::de::MapDeserializer> 30
::visit_map::<&mut serde_json::value::de::MapDeserializer> 2
::visit_map::> 26
::visit_map::> 2
<pageserver::tenant::metadata::modern_serde::deserialize::Visitor as serde::de::Visitor>::visit_seq::<&mut serde_json::value::de::SeqDeserializer> 16
::visit_seq::<&mut serde_json::value::de::SeqDeserializer> 0
::visit_seq::> 14
::visit_seq::> 2
<pageserver::tenant::metadata::modern_serde::deserialize::Visitor as serde::de::Visitor>::visit_seq::<&mut serde_json::value::de::SeqDeserializer>::{closure#0} 16
::visit_seq::<&mut serde_json::value::de::SeqDeserializer>::{closure#0} 0
::visit_seq::>::{closure#0} 14
::visit_seq::>::{closure#0} 2
<pageserver::tenant::metadata::tests::test_metadata_upgrade::TimelineMetadataV1>::to_bytes 2
pageserver::tenant::metadata::modern_serde::deserialize::<serde_json::value::Value> 46
pageserver::tenant::metadata::modern_serde::deserialize::<&mut serde_json::de::Deserializer> 40
pageserver::tenant::metadata::modern_serde::deserialize::<&mut serde_json::de::Deserializer> 4
pageserver::tenant::metadata::modern_serde::deserialize:: 2
pageserver::tenant::metadata::modern_serde::deserializes_bytes_as_well_as_equivalent_body_v2 2
pageserver::tenant::metadata::modern_serde::serialize::<serde_json::value::ser::Serializer> 2880
pageserver::tenant::metadata::modern_serde::serialize::<&mut serde_json::ser::Serializer<&mut alloc::vec::Vec, serde_json::ser::PrettyFormatter>> 0
pageserver::tenant::metadata::modern_serde::serialize::<&mut serde_json::ser::Serializer<&mut alloc::vec::Vec>> 1426
pageserver::tenant::metadata::modern_serde::serialize::<&mut serde_json::ser::Serializer> 1452
pageserver::tenant::metadata::modern_serde::serialize::, serde_json::ser::CompactFormatter>> 0
pageserver::tenant::metadata::modern_serde::serialize::, serde_json::ser::PrettyFormatter>> 0
pageserver::tenant::metadata::modern_serde::serialize::> 0
pageserver::tenant::metadata::modern_serde::serialize:: 2
pageserver::tenant::metadata::tests::metadata_serializes_correctly 2
pageserver::tenant::metadata::tests::test_metadata_bincode_serde_ensure_roundtrip 2
pageserver::tenant::metadata::tests::test_metadata_upgrade 2

Generated by: LCOV version 2.1-beta