LCOV - code coverage report
Current view: top level - control_plane/attachment_service/src - persistence.rs (source / functions) Coverage Total Hit
Test: aca8877be6ceba750c1be359ed71bc1799d52b30.info Lines: 94.9 % 295 280
Test Date: 2024-02-14 18:05:35 Functions: 68.3 % 145 99

Function Name Sort by function name Hit count Sort by function hit count
<attachment_service::persistence::Persistence>::begin_shard_split::{closure#0}::{closure#0}::{closure#0}::{closure#0} 0
<attachment_service::persistence::Persistence>::list_tenant_shards::{closure#0}::{closure#1} 0
<attachment_service::persistence::Persistence>::list_tenant_shards_json::{closure#0}::{closure#0} 0
<attachment_service::persistence::Persistence>::list_tenant_shards_json::{closure#0}::{closure#1} 0
<attachment_service::persistence::Persistence>::list_tenant_shards_json::{closure#0}::{closure#2} 0
<attachment_service::persistence::Persistence>::list_tenant_shards_json::{closure#0}::{closure#3} 0
<attachment_service::persistence::Persistence>::re_attach::{closure#0}::{closure#0}::{closure#1} 0
<attachment_service::persistence::Persistence>::delete_node::{closure#0}::{closure#0} 1
<attachment_service::persistence::DatabaseError as core::fmt::Debug>::fmt 2
>::from 0
>::from 0
::source 0
::fmt 0
::fmt 0
>::from 2
<attachment_service::persistence::Persistence>::begin_shard_split 2
<attachment_service::persistence::Persistence>::begin_shard_split::{closure#0} 2
<attachment_service::persistence::Persistence>::begin_shard_split::{closure#0}::{closure#0} 2
<attachment_service::persistence::Persistence>::begin_shard_split::{closure#0}::{closure#0}::{closure#0} 2
<attachment_service::persistence::Persistence>::complete_shard_split 2
<attachment_service::persistence::Persistence>::complete_shard_split::{closure#0} 2
<attachment_service::persistence::Persistence>::complete_shard_split::{closure#0}::{closure#0} 2
<attachment_service::persistence::Persistence>::complete_shard_split::{closure#0}::{closure#0}::{closure#0} 2
<attachment_service::persistence::Persistence>::delete_node 2
::delete_node 1
::delete_node::{closure#0} 1
<attachment_service::persistence::Persistence>::list_tenant_shards::{closure#0}::{closure#2} 2
<attachment_service::persistence::Persistence>::list_tenant_shards_json 2
<attachment_service::persistence::Persistence>::list_tenant_shards_json::{closure#0} 2
<attachment_service::persistence::Persistence>::delete_tenant::{closure#0}::{closure#0} 7
<attachment_service::persistence::Persistence>::detach::{closure#0}::{closure#0} 7
<attachment_service::persistence::Persistence>::delete_tenant 14
::delete_tenant 7
::delete_tenant::{closure#0} 7
<attachment_service::persistence::Persistence>::detach 14
::detach 7
::detach::{closure#0} 7
<attachment_service::persistence::Persistence>::list_nodes::{closure#0}::{closure#0}::{closure#0} 21
<attachment_service::persistence::Persistence>::new 366
<attachment_service::persistence::Persistence>::write_tenants_json::{closure#0}::{closure#0} 366
<attachment_service::persistence::Persistence>::write_tenants_json::{closure#0}::{closure#1} 366
<attachment_service::persistence::Persistence>::list_nodes::{closure#0}::{closure#0} 371
<attachment_service::persistence::Persistence>::list_nodes::{closure#0}::{closure#1} 371
<attachment_service::persistence::JsonPersistence as serde::ser::Serialize>::serialize::<_> 374
<::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::<_> 0
<::deserialize::__Visitor as serde::de::Visitor>::visit_seq::> 0
::deserialize::<_> 0
::serialize::<_> 0
<::deserialize::__Field as serde::de::Deserialize>::deserialize::> 2
<::deserialize::__FieldVisitor as serde::de::Visitor>::visit_str:: 2
<::deserialize::__Visitor as serde::de::Visitor>::visit_map::> 2
::deserialize::<&mut serde_json::de::Deserializer> 2
::serialize::<&mut serde_json::ser::Serializer<&mut alloc::vec::Vec>> 366
<attachment_service::persistence::Persistence>::insert_node::{closure#0}::{closure#0} 400
<attachment_service::persistence::NodePersistence as serde::de::Deserialize>::deserialize::<_> 431
<::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::<_> 0
>::construct_selection 0
>::values 0
::deserialize::<_> 0
::serialize::<&mut serde_json::ser::Serializer<&mut alloc::vec::Vec>> 10
>::build 21
<&attachment_service::persistence::NodePersistence as diesel::insertable::Insertable>::values 400
<attachment_service::persistence::Persistence>::insert_tenant_shards 481
<attachment_service::persistence::Persistence>::insert_tenant_shards::{closure#0} 481
<attachment_service::persistence::Persistence>::insert_tenant_shards::{closure#0}::{closure#0} 481
<attachment_service::persistence::Persistence>::insert_tenant_shards::{closure#0}::{closure#0}::{closure#0} 481
<attachment_service::persistence::Persistence>::re_attach::{closure#0}::{closure#0}::{closure#0} 624
<attachment_service::persistence::Persistence>::re_attach::{closure#0}::{closure#0}::{closure#0}::{closure#0} 624
<attachment_service::persistence::Persistence>::increment_generation 703
<attachment_service::persistence::Persistence>::increment_generation::{closure#0} 703
<attachment_service::persistence::Persistence>::increment_generation::{closure#0}::{closure#0} 703
<attachment_service::persistence::Persistence>::list_tenant_shards::{closure#0}::{closure#0} 732
<attachment_service::persistence::Persistence>::write_tenants_json 732
::write_tenants_json 366
::write_tenants_json::{closure#0} 366
<attachment_service::persistence::Persistence>::list_nodes 742
::list_nodes 371
::list_nodes::{closure#0} 371
<attachment_service::persistence::Persistence>::insert_node 800
::insert_node 400
::insert_node::{closure#0} 400
<attachment_service::persistence::Persistence>::re_attach 1248
::re_attach::{closure#0} 0
::re_attach 624
::re_attach::{closure#0}::{closure#0} 624
<attachment_service::persistence::Persistence>::list_tenant_shards 1464
::list_tenant_shards 732
::list_tenant_shards::{closure#0} 732
<attachment_service::persistence::Persistence>::with_conn::<<attachment_service::persistence::Persistence>::detach::{closure#0}::{closure#0}, usize> 3330
::with_conn::<::delete_node::{closure#0}::{closure#0}, ()> 1
::with_conn::<::begin_shard_split::{closure#0}::{closure#0}, ()> 2
::with_conn::<::complete_shard_split::{closure#0}::{closure#0}, ()> 2
::with_conn::<::delete_tenant::{closure#0}::{closure#0}, ()> 7
::with_conn::<::detach::{closure#0}::{closure#0}, usize> 7
::with_conn::<::list_nodes::{closure#0}::{closure#0}, alloc::vec::Vec> 371
::with_conn::<::insert_node::{closure#0}::{closure#0}, ()> 400
::with_conn::<::insert_tenant_shards::{closure#0}::{closure#0}, ()> 481
::with_conn::<::re_attach::{closure#0}::{closure#0}::{closure#0}, alloc::vec::Vec> 624
::with_conn::<::increment_generation::{closure#0}::{closure#0}, attachment_service::persistence::TenantShardPersistence> 703
::with_conn::<::list_tenant_shards::{closure#0}::{closure#0}, alloc::vec::Vec> 732
<attachment_service::persistence::Persistence>::with_conn::<<attachment_service::persistence::Persistence>::detach::{closure#0}::{closure#0}, usize>::{closure#0} 3330
::with_conn::<::delete_node::{closure#0}::{closure#0}, ()>::{closure#0} 1
::with_conn::<::begin_shard_split::{closure#0}::{closure#0}, ()>::{closure#0} 2
::with_conn::<::complete_shard_split::{closure#0}::{closure#0}, ()>::{closure#0} 2
::with_conn::<::delete_tenant::{closure#0}::{closure#0}, ()>::{closure#0} 7
::with_conn::<::detach::{closure#0}::{closure#0}, usize>::{closure#0} 7
::with_conn::<::list_nodes::{closure#0}::{closure#0}, alloc::vec::Vec>::{closure#0} 371
::with_conn::<::insert_node::{closure#0}::{closure#0}, ()>::{closure#0} 400
::with_conn::<::insert_tenant_shards::{closure#0}::{closure#0}, ()>::{closure#0} 481
::with_conn::<::re_attach::{closure#0}::{closure#0}::{closure#0}, alloc::vec::Vec>::{closure#0} 624
::with_conn::<::increment_generation::{closure#0}::{closure#0}, attachment_service::persistence::TenantShardPersistence>::{closure#0} 703
::with_conn::<::list_tenant_shards::{closure#0}::{closure#0}, alloc::vec::Vec>::{closure#0} 732
<attachment_service::persistence::Persistence>::with_conn::<<attachment_service::persistence::Persistence>::detach::{closure#0}::{closure#0}, usize>::{closure#0}::{closure#0} 3330
::with_conn::<::delete_node::{closure#0}::{closure#0}, ()>::{closure#0}::{closure#0} 1
::with_conn::<::begin_shard_split::{closure#0}::{closure#0}, ()>::{closure#0}::{closure#0} 2
::with_conn::<::complete_shard_split::{closure#0}::{closure#0}, ()>::{closure#0}::{closure#0} 2
::with_conn::<::delete_tenant::{closure#0}::{closure#0}, ()>::{closure#0}::{closure#0} 7
::with_conn::<::detach::{closure#0}::{closure#0}, usize>::{closure#0}::{closure#0} 7
::with_conn::<::list_nodes::{closure#0}::{closure#0}, alloc::vec::Vec>::{closure#0}::{closure#0} 371
::with_conn::<::insert_node::{closure#0}::{closure#0}, ()>::{closure#0}::{closure#0} 400
::with_conn::<::insert_tenant_shards::{closure#0}::{closure#0}, ()>::{closure#0}::{closure#0} 481
::with_conn::<::re_attach::{closure#0}::{closure#0}::{closure#0}, alloc::vec::Vec>::{closure#0}::{closure#0} 624
::with_conn::<::increment_generation::{closure#0}::{closure#0}, attachment_service::persistence::TenantShardPersistence>::{closure#0}::{closure#0} 703
::with_conn::<::list_tenant_shards::{closure#0}::{closure#0}, alloc::vec::Vec>::{closure#0}::{closure#0} 732
<attachment_service::persistence::TenantShardPersistence as core::clone::Clone>::clone 3871
<::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::<_> 0
<::deserialize::__Visitor as serde::de::Visitor>::visit_seq::> 0
::deserialize::<_> 0
::serialize::<_> 0
<::deserialize::__Visitor as serde::de::Visitor>::visit_map::> 2
::deserialize::<&mut serde_json::de::Deserializer> 2
>::values 10
::clone 12
<::deserialize::__Field as serde::de::Deserialize>::deserialize::> 18
<::deserialize::__FieldVisitor as serde::de::Visitor>::visit_str:: 18
::serialize::<&mut serde_json::ser::Serializer<&mut alloc::vec::Vec>> 508
<&attachment_service::persistence::TenantShardPersistence as diesel::insertable::Insertable>::values 509
>::construct_selection 1327
>::build 1465

Generated by: LCOV version 2.1-beta