LCOV - code coverage report
Current view: top level - pageserver/src/tenant - metadata.rs (source / functions) Coverage Total Hit
Test: 49aa928ec5b4b510172d8b5c6d154da28e70a46c.info Lines: 92.4 % 370 342
Test Date: 2024-11-13 18:23:39 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 1144
<pageserver::tenant::metadata::TimelineMetadata>::ancestor_lsn 644
<pageserver::tenant::metadata::TimelineMetadata>::ancestor_timeline 434
<pageserver::tenant::metadata::TimelineMetadata>::apply 1144
<pageserver::tenant::metadata::TimelineMetadata>::detach_from_ancestor 0
<pageserver::tenant::metadata::TimelineMetadata>::disk_consistent_lsn 21325
<pageserver::tenant::metadata::TimelineMetadata>::example 12
<pageserver::tenant::metadata::TimelineMetadata>::from_bytes 50
<pageserver::tenant::metadata::TimelineMetadata>::initdb_lsn 414
<pageserver::tenant::metadata::TimelineMetadata>::latest_gc_cutoff_lsn 414
<pageserver::tenant::metadata::TimelineMetadata>::new 434
<pageserver::tenant::metadata::TimelineMetadata>::pg_version 418
<pageserver::tenant::metadata::TimelineMetadata>::prev_record_lsn 414
<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> 2867
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>> 1419
pageserver::tenant::metadata::modern_serde::serialize::<&mut serde_json::ser::Serializer> 1446
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