LCOV - code coverage report
Current view: top level - libs/utils/src - shard.rs (source / functions) Coverage Total Hit
Test: 53437f7e869ac68c86c7d3e4c20964c0156f158c.info Lines: 81.2 % 245 199
Test Date: 2024-09-20 16:14:12 Functions: 42.7 % 89 38

Function Name Sort by function name Hit count Sort by function hit count
<<utils::shard::ShardCount as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::expecting 0
<::deserialize::__Visitor as serde::de::Visitor>::expecting 0
<::deserialize::__Visitor as serde::de::Visitor>::visit_newtype_struct::<&mut serde_json::de::Deserializer> 0
<::deserialize::__Visitor as serde::de::Visitor>::visit_newtype_struct::<_> 0
<::deserialize::__Visitor as serde::de::Visitor>::visit_newtype_struct:: 0
<::deserialize::__Visitor as serde::de::Visitor>::visit_newtype_struct::>>>>> 0
<::deserialize::__Visitor as serde::de::Visitor>::visit_newtype_struct:: 0
<::deserialize::__Visitor as serde::de::Visitor>::visit_seq::<_> 0
<<utils::shard::ShardIndex as serde::de::Deserialize>::deserialize::IdVisitor as serde::de::Visitor>::expecting 0
<<utils::shard::ShardIndex as serde::de::Deserialize>::deserialize::IdVisitor as serde::de::Visitor>::visit_seq::<_> 1
<::deserialize::IdVisitor as serde::de::Visitor>::visit_seq::<<&mut bincode::de::Deserializer<_, _> as serde::de::Deserializer>::deserialize_tuple::Access, bincode::config::trailing::AllowTrailing>, bincode::config::limit::Infinite>>> 1
<::deserialize::IdVisitor as serde::de::Visitor>::visit_seq::<_> 0
<::deserialize::IdVisitor as serde::de::Visitor>::visit_seq::> 0
<::deserialize::IdVisitor as serde::de::Visitor>::visit_seq::> 0
<<utils::shard::ShardIndex as serde::de::Deserialize>::deserialize::IdVisitor as serde::de::Visitor>::visit_str::<_> 9384
<::deserialize::IdVisitor as serde::de::Visitor>::visit_str::<_> 0
<::deserialize::IdVisitor as serde::de::Visitor>::visit_str::> 0
<::deserialize::IdVisitor as serde::de::Visitor>::visit_str:: 9384
<<utils::shard::ShardNumber as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::expecting 0
<::deserialize::__Visitor as serde::de::Visitor>::expecting 0
<::deserialize::__Visitor as serde::de::Visitor>::visit_newtype_struct::<_> 0
<::deserialize::__Visitor as serde::de::Visitor>::visit_newtype_struct:: 0
<::deserialize::__Visitor as serde::de::Visitor>::visit_seq::<_> 0
<<utils::shard::TenantShardId as serde::de::Deserialize>::deserialize::IdVisitor as serde::de::Visitor>::expecting 0
<<utils::shard::TenantShardId as serde::de::Deserialize>::deserialize::IdVisitor as serde::de::Visitor>::visit_seq::<_> 2
<::deserialize::IdVisitor as serde::de::Visitor>::visit_seq::<&mut serde::de::value::SeqDeserializer, >::new>, serde_json::error::Error>> 0
<::deserialize::IdVisitor as serde::de::Visitor>::visit_seq::<&mut serde::de::value::SeqDeserializer, >::new>, serde_json::error::Error>> 0
<::deserialize::IdVisitor as serde::de::Visitor>::visit_seq::<&mut serde_json::value::de::SeqDeserializer> 0
<::deserialize::IdVisitor as serde::de::Visitor>::visit_seq::<<&mut bincode::de::Deserializer<_, _> as serde::de::Deserializer>::deserialize_tuple::Access, bincode::config::trailing::AllowTrailing>, bincode::config::limit::Infinite>>> 2
<::deserialize::IdVisitor as serde::de::Visitor>::visit_seq::<_> 0
<::deserialize::IdVisitor as serde::de::Visitor>::visit_seq::> 0
<::deserialize::IdVisitor as serde::de::Visitor>::visit_seq::>>>>> 0
<<utils::shard::TenantShardId as serde::de::Deserialize>::deserialize::IdVisitor as serde::de::Visitor>::visit_str::<_> 19
<::deserialize::IdVisitor as serde::de::Visitor>::visit_str::<_> 0
<::deserialize::IdVisitor as serde::de::Visitor>::visit_str::> 0
<::deserialize::IdVisitor as serde::de::Visitor>::visit_str:: 19
<utils::shard::ShardCount>::count 14412666
<utils::shard::ShardCount>::is_unsharded 0
<utils::shard::ShardCount>::literal 2
<utils::shard::ShardCount>::new 5737
<utils::shard::ShardIndex as core::convert::From<[u8; 2]>>::from 1
<utils::shard::ShardIndex as core::fmt::Debug>::fmt 4554
<utils::shard::ShardIndex as core::fmt::Display>::fmt 5995
<utils::shard::ShardIndex as core::str::traits::FromStr>::from_str 9385
<utils::shard::ShardIndex as serde::de::Deserialize>::deserialize::<_> 9385
::deserialize::<&mut bincode::de::Deserializer, bincode::config::trailing::AllowTrailing>, bincode::config::limit::Infinite>>> 1
::deserialize::<&mut serde_json::de::Deserializer> 0
::deserialize::<&mut serde_json::de::Deserializer> 9384
::deserialize::<_> 0
<utils::shard::ShardIndex as serde::ser::Serialize>::serialize::<_> 50
::serialize::<&mut bincode::ser::Serializer<&mut alloc::vec::Vec, bincode::config::WithOtherLimit, bincode::config::trailing::AllowTrailing>, bincode::config::limit::Infinite>>> 1
::serialize::<&mut bincode::ser::SizeChecker<&mut bincode::config::WithOtherLimit, bincode::config::trailing::AllowTrailing>, bincode::config::limit::Infinite>>> 0
::serialize::<&mut bincode::ser::SizeChecker<&mut bincode::config::WithOtherTrailing, bincode::config::trailing::AllowTrailing>>> 1
::serialize::<&mut serde_json::ser::Serializer<&mut alloc::vec::Vec, serde_json::ser::PrettyFormatter>> 0
::serialize::<&mut serde_json::ser::Serializer<&mut alloc::vec::Vec>> 24
::serialize::<&mut serde_json::ser::Serializer> 24
::serialize::<_> 0
::serialize::, serde_json::ser::CompactFormatter>> 0
::serialize::, serde_json::ser::PrettyFormatter>> 0
::serialize::> 0
<utils::shard::ShardIndex>::get_suffix 4155
<utils::shard::ShardIndex>::is_unsharded 216405
<utils::shard::ShardIndex>::new 0
<utils::shard::ShardIndex>::unsharded 306
<utils::shard::ShardSlug as core::fmt::Display>::fmt 34025
<utils::shard::TenantShardId as core::convert::From<[u8; 18]>>::from 2
<utils::shard::TenantShardId as core::fmt::Debug>::fmt 9384
<utils::shard::TenantShardId as core::fmt::Display>::fmt 37100
<utils::shard::TenantShardId as core::str::traits::FromStr>::from_str 13089
<utils::shard::TenantShardId as serde::de::Deserialize>::deserialize::<_> 21
::deserialize::<&mut bincode::de::Deserializer, bincode::config::trailing::AllowTrailing>, bincode::config::limit::Infinite>>> 2
::deserialize::<&mut serde_json::de::Deserializer> 0
::deserialize::<_> 0
::deserialize::> 0
::deserialize::> 0
::deserialize::> 0
::deserialize::> 12
::deserialize::> 6
::deserialize:: 1
::deserialize::>>>>> 0
<utils::shard::TenantShardId as serde::ser::Serialize>::serialize::<_> 126
::serialize::<&mut bincode::ser::Serializer<&mut alloc::vec::Vec, bincode::config::WithOtherLimit, bincode::config::trailing::AllowTrailing>, bincode::config::limit::Infinite>>> 2
::serialize::<&mut bincode::ser::SizeChecker<&mut bincode::config::WithOtherLimit, bincode::config::trailing::AllowTrailing>, bincode::config::limit::Infinite>>> 0
::serialize::<&mut bincode::ser::SizeChecker<&mut bincode::config::WithOtherTrailing, bincode::config::trailing::AllowTrailing>>> 2
::serialize::<&mut serde_json::ser::Serializer<&mut alloc::vec::Vec, serde_json::ser::PrettyFormatter>> 0
::serialize::<&mut serde_json::ser::Serializer<&mut alloc::vec::Vec>> 84
::serialize::<_> 0
::serialize::, serde_json::ser::CompactFormatter>> 36
::serialize::, serde_json::ser::CompactFormatter>> 0
::serialize::, serde_json::ser::PrettyFormatter>> 0
::serialize:: 0
::serialize:: 2
<utils::shard::TenantShardId>::is_shard_zero 18
<utils::shard::TenantShardId>::is_unsharded 0
<utils::shard::TenantShardId>::shard_slug 34025
<utils::shard::TenantShardId>::split 4
<utils::shard::TenantShardId>::tenant_range 0
<utils::shard::TenantShardId>::to_index 0
<utils::shard::TenantShardId>::unsharded 95

Generated by: LCOV version 2.1-beta