LCOV - code coverage report
Current view: top level - libs/utils/src - shard.rs (source / functions) Coverage Total Hit
Test: 8ff8efadb0253cf618c612650348666c0c564111.info Lines: 81.2 % 245 199
Test Date: 2024-11-20 17:53:50 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::<_> 3128
<::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:: 3128
<<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::<_> 7
<::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:: 7
<utils::shard::ShardCount>::count 4809219
<utils::shard::ShardCount>::is_unsharded 0
<utils::shard::ShardCount>::literal 2
<utils::shard::ShardCount>::new 9019
<utils::shard::ShardIndex as core::convert::From<[u8; 2]>>::from 1
<utils::shard::ShardIndex as core::fmt::Debug>::fmt 1538
<utils::shard::ShardIndex as core::fmt::Display>::fmt 2038
<utils::shard::ShardIndex as core::str::traits::FromStr>::from_str 3129
<utils::shard::ShardIndex as serde::de::Deserialize>::deserialize::<_> 3129
::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> 3128
::deserialize::<_> 0
<utils::shard::ShardIndex as serde::ser::Serialize>::serialize::<_> 18
::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>> 8
::serialize::<&mut serde_json::ser::Serializer> 8
::serialize::<_> 0
::serialize::, serde_json::ser::CompactFormatter>> 0
::serialize::, serde_json::ser::PrettyFormatter>> 0
::serialize::> 0
<utils::shard::ShardIndex>::get_suffix 1454
<utils::shard::ShardIndex>::is_unsharded 72282
<utils::shard::ShardIndex>::new 0
<utils::shard::ShardIndex>::unsharded 102
<utils::shard::ShardSlug as core::fmt::Display>::fmt 11722
<utils::shard::TenantShardId as core::convert::From<[u8; 18]>>::from 2
<utils::shard::TenantShardId as core::fmt::Debug>::fmt 3128
<utils::shard::TenantShardId as core::fmt::Display>::fmt 13246
<utils::shard::TenantShardId as core::str::traits::FromStr>::from_str 4451
<utils::shard::TenantShardId as serde::de::Deserialize>::deserialize::<_> 9
::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::> 4
::deserialize::> 2
::deserialize:: 1
::deserialize::>>>>> 0
<utils::shard::TenantShardId as serde::ser::Serialize>::serialize::<_> 46
::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>> 28
::serialize::<_> 0
::serialize::, serde_json::ser::CompactFormatter>> 12
::serialize::, serde_json::ser::CompactFormatter>> 0
::serialize::, serde_json::ser::PrettyFormatter>> 0
::serialize:: 0
::serialize:: 2
<utils::shard::TenantShardId>::is_shard_zero 6
<utils::shard::TenantShardId>::is_unsharded 0
<utils::shard::TenantShardId>::shard_slug 24281
<utils::shard::TenantShardId>::split 6
<utils::shard::TenantShardId>::tenant_range 0
<utils::shard::TenantShardId>::to_index 0
<utils::shard::TenantShardId>::unsharded 39

Generated by: LCOV version 2.1-beta