LCOV - code coverage report
Current view: top level - safekeeper/src - safekeeper.rs (source / functions) Coverage Total Hit
Test: 2e3a7638747e564a4f6d1af1cc0c3b3438fbb740.info Lines: 85.0 % 912 775
Test Date: 2024-11-20 01:36:58 Functions: 52.5 % 217 114

Function Name Sort by function name Hit count Sort by function hit count
<<safekeeper::safekeeper::AcceptorState as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::expecting 5
<::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::<&mut serde_json::value::de::MapDeserializer> 0
<::deserialize::__Visitor as serde::de::Visitor>::visit_seq::<&mut serde_json::value::de::SeqDeserializer> 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>>> 5
<<safekeeper::safekeeper::AppendRequestHeader as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::expecting 3675
<::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::WithOtherIntEncoding, bincode::config::int::FixintEncoding>>> 3675
<<safekeeper::safekeeper::PersistedPeerInfo 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::<&mut serde_json::value::de::MapDeserializer> 0
<::deserialize::__Visitor as serde::de::Visitor>::visit_seq::<&mut serde_json::value::de::SeqDeserializer> 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
<<safekeeper::safekeeper::ProposerGreeting as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::expecting 20108
<::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::WithOtherIntEncoding, bincode::config::int::FixintEncoding>>> 20108
<<safekeeper::safekeeper::ServerInfo as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::expecting 3
<::deserialize::__Field as serde::de::Deserialize>::deserialize::> 0
<::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::<&mut serde_json::value::de::MapDeserializer> 0
<::deserialize::__Visitor as serde::de::Visitor>::visit_map::> 0
<::deserialize::__Visitor as serde::de::Visitor>::visit_seq::<&mut serde_json::value::de::SeqDeserializer> 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>>> 3
<::deserialize::__Visitor as serde::de::Visitor>::visit_seq::> 0
<<safekeeper::safekeeper::TermHistory as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::expecting 5
<::deserialize::__Visitor as serde::de::Visitor>::expecting 0
<::deserialize::__Visitor as serde::de::Visitor>::visit_newtype_struct::<&mut bincode::de::Deserializer, bincode::config::int::FixintEncoding>, bincode::config::limit::Infinite>>> 5
<::deserialize::__Visitor as serde::de::Visitor>::visit_newtype_struct:: 0
<::deserialize::__Visitor as serde::de::Visitor>::visit_seq::<_> 0
<<safekeeper::safekeeper::TermLsn as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::expecting 4
<::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::<&mut serde_json::value::de::MapDeserializer> 0
<::deserialize::__Visitor as serde::de::Visitor>::visit_seq::<&mut serde_json::value::de::SeqDeserializer> 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>>> 4
<<safekeeper::safekeeper::VoteRequest as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::expecting 2957
<::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::WithOtherIntEncoding, bincode::config::int::FixintEncoding>>> 2957
<safekeeper::safekeeper::AcceptorProposerMessage>::serialize 26160
<safekeeper::safekeeper::AcceptorState>::get_last_log_term 43
<safekeeper::safekeeper::AppendResponse>::term_only 0
<safekeeper::safekeeper::PersistedPeerInfo as core::default::Default>::default 0
<safekeeper::safekeeper::PersistedPeerInfo>::new 0
<safekeeper::safekeeper::ProposerAcceptorMessage>::parse 27599
<safekeeper::safekeeper::ProposerAcceptorMessage>::size 0
<safekeeper::safekeeper::SafeKeeper<safekeeper::control_file::FileStorage, safekeeper::wal_storage::PhysicalStorage>>::append_response 3098
>::append_response 501
>::append_response 2279
>::append_response 0
>::append_response 3
>::append_response 315
<safekeeper::safekeeper::SafeKeeper<safekeeper::control_file::FileStorage, safekeeper::wal_storage::PhysicalStorage>>::flush_lsn 16694
>::flush_lsn 1922
>::flush_lsn 13620
>::flush_lsn 0
>::flush_lsn 13
>::flush_lsn 1139
<safekeeper::safekeeper::SafeKeeper<safekeeper::control_file::FileStorage, safekeeper::wal_storage::PhysicalStorage>>::get_last_log_term 43
>::get_last_log_term 33
>::get_last_log_term 8
>::get_last_log_term 0
>::get_last_log_term 2
>::get_last_log_term 0
<safekeeper::safekeeper::SafeKeeper<safekeeper::control_file::FileStorage, safekeeper::wal_storage::PhysicalStorage>>::get_term_history 3820
>::get_term_history 162
>::get_term_history 3642
>::get_term_history 0
>::get_term_history 4
>::get_term_history 12
<safekeeper::safekeeper::SafeKeeper<safekeeper::control_file::FileStorage, safekeeper::wal_storage::PhysicalStorage>>::handle_append_request 3679
>::handle_append_request 564
>::handle_append_request 2709
>::handle_append_request 0
>::handle_append_request 4
>::handle_append_request 402
<safekeeper::safekeeper::SafeKeeper<safekeeper::control_file::FileStorage, safekeeper::wal_storage::PhysicalStorage>>::handle_append_request::{closure#0} 3679
>::handle_append_request::{closure#0} 564
>::handle_append_request::{closure#0} 2709
>::handle_append_request::{closure#0} 0
>::handle_append_request::{closure#0} 4
>::handle_append_request::{closure#0} 402
<safekeeper::safekeeper::SafeKeeper<safekeeper::control_file::FileStorage, safekeeper::wal_storage::PhysicalStorage>>::handle_elected 861
>::handle_elected 52
>::handle_elected 805
>::handle_elected 0
>::handle_elected 2
>::handle_elected 2
<safekeeper::safekeeper::SafeKeeper<safekeeper::control_file::FileStorage, safekeeper::wal_storage::PhysicalStorage>>::handle_elected::{closure#0} 861
>::handle_elected::{closure#0} 52
>::handle_elected::{closure#0} 805
>::handle_elected::{closure#0} 0
>::handle_elected::{closure#0} 2
>::handle_elected::{closure#0} 2
<safekeeper::safekeeper::SafeKeeper<safekeeper::control_file::FileStorage, safekeeper::wal_storage::PhysicalStorage>>::handle_flush 6190
>::handle_flush 501
>::handle_flush::{closure#0} 501
>::handle_flush 2279
>::handle_flush::{closure#0} 2279
>::handle_flush 0
>::handle_flush::{closure#0} 0
>::handle_flush 0
>::handle_flush::{closure#0} 0
>::handle_flush 315
>::handle_flush::{closure#0} 315
<safekeeper::safekeeper::SafeKeeper<safekeeper::control_file::FileStorage, safekeeper::wal_storage::PhysicalStorage>>::handle_greeting 20108
>::handle_greeting 122
>::handle_greeting 19976
>::handle_greeting 0
>::handle_greeting 0
>::handle_greeting 10
<safekeeper::safekeeper::SafeKeeper<safekeeper::control_file::FileStorage, safekeeper::wal_storage::PhysicalStorage>>::handle_greeting::{closure#0} 20108
>::handle_greeting::{closure#0} 122
>::handle_greeting::{closure#0} 19976
>::handle_greeting::{closure#0} 0
>::handle_greeting::{closure#0} 0
>::handle_greeting::{closure#0} 10
<safekeeper::safekeeper::SafeKeeper<safekeeper::control_file::FileStorage, safekeeper::wal_storage::PhysicalStorage>>::handle_greeting::{closure#0}::{closure#2} 2416
>::handle_greeting::{closure#0}::{closure#2} 1456
>::handle_greeting::{closure#0}::{closure#3} 0
>::handle_greeting::{closure#0}::{closure#2} 960
>::handle_greeting::{closure#0}::{closure#3} 0
>::handle_greeting::{closure#0}::{closure#2} 0
>::handle_greeting::{closure#0}::{closure#3} 0
>::handle_greeting::{closure#0}::{closure#2} 0
>::handle_greeting::{closure#0}::{closure#3} 0
>::handle_greeting::{closure#0}::{closure#2} 0
>::handle_greeting::{closure#0}::{closure#3} 0
<safekeeper::safekeeper::SafeKeeper<safekeeper::control_file::FileStorage, safekeeper::wal_storage::PhysicalStorage>>::handle_vote_request 2959
>::handle_vote_request 110
>::handle_vote_request 2837
>::handle_vote_request 0
>::handle_vote_request 2
>::handle_vote_request 10
<safekeeper::safekeeper::SafeKeeper<safekeeper::control_file::FileStorage, safekeeper::wal_storage::PhysicalStorage>>::handle_vote_request::{closure#0} 2959
>::handle_vote_request::{closure#0} 110
>::handle_vote_request::{closure#0} 2837
>::handle_vote_request::{closure#0} 0
>::handle_vote_request::{closure#0} 2
>::handle_vote_request::{closure#0} 10
<safekeeper::safekeeper::SafeKeeper<safekeeper::control_file::FileStorage, safekeeper::wal_storage::PhysicalStorage>>::new 9037
>::new 51
>::new 8976
>::new 0
>::new 4
>::new 6
<safekeeper::safekeeper::SafeKeeper<safekeeper::control_file::FileStorage, safekeeper::wal_storage::PhysicalStorage>>::process_msg 30702
>::process_msg 1349
>::process_msg 28606
>::process_msg 0
>::process_msg 8
>::process_msg 739
<safekeeper::safekeeper::SafeKeeper<safekeeper::control_file::FileStorage, safekeeper::wal_storage::PhysicalStorage>>::process_msg::{closure#0} 30702
>::process_msg::{closure#0} 1349
>::process_msg::{closure#0} 28606
>::process_msg::{closure#0} 0
>::process_msg::{closure#0} 8
>::process_msg::{closure#0} 739
<safekeeper::safekeeper::SafeKeeper<safekeeper::control_file::FileStorage, safekeeper::wal_storage::PhysicalStorage>>::record_safekeeper_info 0
>::record_safekeeper_info 0
>::record_safekeeper_info::{closure#0} 0
<safekeeper::safekeeper::SafeKeeper<safekeeper::control_file::FileStorage, safekeeper::wal_storage::PhysicalStorage>>::update_commit_lsn 4394
>::update_commit_lsn 467
>::update_commit_lsn::{closure#0} 467
>::update_commit_lsn 1332
>::update_commit_lsn::{closure#0} 1332
>::update_commit_lsn 0
>::update_commit_lsn::{closure#0} 0
>::update_commit_lsn 0
>::update_commit_lsn::{closure#0} 0
>::update_commit_lsn 398
>::update_commit_lsn::{closure#0} 398
<safekeeper::safekeeper::TermHistory as core::fmt::Debug>::fmt 353
<safekeeper::safekeeper::TermHistory as core::fmt::Debug>::fmt::{closure#0} 1307
<safekeeper::safekeeper::TermHistory>::empty 1458
<safekeeper::safekeeper::TermHistory>::find_highest_common_point 865
<safekeeper::safekeeper::TermHistory>::from_bytes 859
<safekeeper::safekeeper::TermHistory>::up_to 3863
<safekeeper::safekeeper::TermLsn as core::convert::From<(u64, utils::lsn::Lsn)>>::from 18
<safekeeper::safekeeper::tests::DummyWalStore as safekeeper::wal_storage::Storage>::flush_lsn 19
<safekeeper::safekeeper::tests::DummyWalStore as safekeeper::wal_storage::Storage>::flush_wal 10
::flush_wal 5
::flush_wal::{closure#0} 5
<safekeeper::safekeeper::tests::DummyWalStore as safekeeper::wal_storage::Storage>::get_metrics 0
<safekeeper::safekeeper::tests::DummyWalStore as safekeeper::wal_storage::Storage>::initialize_first_segment 4
::initialize_first_segment 2
::initialize_first_segment::{closure#0} 2
<safekeeper::safekeeper::tests::DummyWalStore as safekeeper::wal_storage::Storage>::remove_up_to 0
<safekeeper::safekeeper::tests::DummyWalStore as safekeeper::wal_storage::Storage>::remove_up_to::{closure#0} 0
<safekeeper::safekeeper::tests::DummyWalStore as safekeeper::wal_storage::Storage>::truncate_wal 4
::truncate_wal 2
::truncate_wal::{closure#0} 2
<safekeeper::safekeeper::tests::DummyWalStore as safekeeper::wal_storage::Storage>::write_lsn 4
<safekeeper::safekeeper::tests::DummyWalStore as safekeeper::wal_storage::Storage>::write_wal 6
::write_wal 3
::write_wal::{closure#0} 3
<safekeeper::safekeeper::tests::InMemoryState as core::ops::deref::Deref>::deref 83
<safekeeper::safekeeper::tests::InMemoryState as safekeeper::control_file::Storage>::last_persist_at 0
<safekeeper::safekeeper::tests::InMemoryState as safekeeper::control_file::Storage>::persist 10
::persist 5
::persist::{closure#0} 5
safekeeper::safekeeper::tests::test_find_highest_common_point_middle 1
safekeeper::safekeeper::tests::test_find_highest_common_point_none 1
safekeeper::safekeeper::tests::test_find_highest_common_point_sk_end 1
safekeeper::safekeeper::tests::test_find_highest_common_point_walprop 1
safekeeper::safekeeper::tests::test_last_log_term_switch 2
safekeeper::safekeeper::tests::test_last_log_term_switch 1
safekeeper::safekeeper::tests::test_last_log_term_switch::{closure#0} 1
safekeeper::safekeeper::tests::test_non_consecutive_write 2
safekeeper::safekeeper::tests::test_non_consecutive_write 1
safekeeper::safekeeper::tests::test_non_consecutive_write::{closure#0} 1
safekeeper::safekeeper::tests::test_sk_state 3
safekeeper::safekeeper::tests::test_sk_state_bincode_serde_roundtrip 1
safekeeper::safekeeper::tests::test_voting 2
safekeeper::safekeeper::tests::test_voting 1
safekeeper::safekeeper::tests::test_voting::{closure#0} 1

Generated by: LCOV version 2.1-beta