LCOV - code coverage report
Current view:
top level
-
control_plane/src
- attachment_service.rs
(
source
/ functions)
Coverage
Total
Hit
Test:
aca8877be6ceba750c1be359ed71bc1799d52b30.info
Lines:
92.1 %
316
291
Test Date:
2024-02-14 18:05:35
Functions:
35.6 %
284
101
Function Name
Hit count
<alloc::string::String as core::convert::From<control_plane::attachment_service::NodeSchedulingPolicy>>::from
410
<control_plane::attachment_service::AttachHookRequest as serde::ser::Serialize>::serialize::<_>
1242
<
::deserialize::__Field as serde::de::Deserialize>::deserialize::<_>
0
<
::deserialize::__Field as serde::de::Deserialize>::deserialize::
>>>>>
414
<
::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_str::
414
<
::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_map::
>>>>>
207
<
::deserialize::__Visitor as serde::de::Visitor>::visit_seq::<_>
0
<
::deserialize::__Visitor as serde::de::Visitor>::visit_seq::
>>>>>
0
::deserialize::<_>
0
::deserialize::
>>>>>
207
::serialize::<_>
0
<control_plane::attachment_service::AttachHookResponse as serde::ser::Serialize>::serialize::<_>
207
<
::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::<_>
0
::serialize::<&mut serde_json::ser::Serializer<&mut alloc::vec::Vec
>>
207
::serialize::<_>
0
<control_plane::attachment_service::AttachmentService>::attach_hook
0
::attach_hook
0
::attach_hook::{closure#0}
0
::attach_hook::{closure#0}::{closure#0}
0
<control_plane::attachment_service::AttachmentService>::dispatch::<_, _>
3234
::dispatch::<(), ()>
778
::dispatch::<(), control_plane::attachment_service::TenantLocateResponse>
572
::dispatch::<_, _>
0
::dispatch::
0
::dispatch::
624
::dispatch::
4
::dispatch::
460
::dispatch::
0
::dispatch::
796
<control_plane::attachment_service::AttachmentService>::dispatch::<_, _>::{closure#0}
3234
::dispatch::<(), ()>::{closure#0}
778
::dispatch::<(), control_plane::attachment_service::TenantLocateResponse>::{closure#0}
572
::dispatch::<_, _>::{closure#0}
0
::dispatch::
::{closure#0}
0
::dispatch::
::{closure#0}
624
::dispatch::
::{closure#0}
4
::dispatch::
::{closure#0}
460
::dispatch::
::{closure#0}
0
::dispatch::
::{closure#0}
796
<control_plane::attachment_service::AttachmentService>::from_env
2731
<control_plane::attachment_service::AttachmentService>::get_pg_bin_dir
2200
::get_pg_bin_dir
1100
::get_pg_bin_dir::{closure#0}
1100
<control_plane::attachment_service::AttachmentService>::inspect
0
::inspect
0
::inspect::{closure#0}
0
::inspect::{closure#0}::{closure#0}
0
<control_plane::attachment_service::AttachmentService>::node_configure
0
::node_configure
0
::node_configure::{closure#0}
0
::node_configure::{closure#0}::{closure#0}
0
<control_plane::attachment_service::AttachmentService>::node_register
1248
::node_register
624
::node_register::{closure#0}
0
::node_register::{closure#0}::{closure#0}
624
<control_plane::attachment_service::AttachmentService>::pg_isready
1472
::pg_isready
736
::pg_isready::{closure#0}
736
<control_plane::attachment_service::AttachmentService>::pid_file
734
<control_plane::attachment_service::AttachmentService>::postgres_pid_file
366
<control_plane::attachment_service::AttachmentService>::setup_database
732
::setup_database
366
::setup_database::{closure#0}
366
<control_plane::attachment_service::AttachmentService>::setup_database::{closure#0}::{closure#0}
0
<control_plane::attachment_service::AttachmentService>::start
732
::start
366
::start::{closure#0}
366
<control_plane::attachment_service::AttachmentService>::start::{closure#0}::{closure#0}
736
<control_plane::attachment_service::AttachmentService>::start::{closure#0}::{closure#1}
2196
<control_plane::attachment_service::AttachmentService>::start::{closure#0}::{closure#2}
778
<control_plane::attachment_service::AttachmentService>::start::{closure#0}::{closure#2}::{closure#0}
778
<control_plane::attachment_service::AttachmentService>::status
1556
::status
778
::status::{closure#0}
0
::status::{closure#0}::{closure#0}
778
<control_plane::attachment_service::AttachmentService>::stop
736
::stop
368
::stop::{closure#0}
368
<control_plane::attachment_service::AttachmentService>::tenant_create
920
::tenant_create
460
::tenant_create::{closure#0}
0
::tenant_create::{closure#0}::{closure#0}
460
<control_plane::attachment_service::AttachmentService>::tenant_locate
1144
::tenant_locate
572
::tenant_locate::{closure#0}
0
::tenant_locate::{closure#0}::{closure#0}
572
<control_plane::attachment_service::AttachmentService>::tenant_migrate
8
::tenant_migrate
4
::tenant_migrate::{closure#0}
0
::tenant_migrate::{closure#0}::{closure#0}
4
<control_plane::attachment_service::AttachmentService>::tenant_split
0
::tenant_split
0
::tenant_split::{closure#0}
0
::tenant_split::{closure#0}::{closure#0}
0
<control_plane::attachment_service::AttachmentService>::tenant_timeline_create
1592
::tenant_timeline_create
796
::tenant_timeline_create::{closure#0}
0
::tenant_timeline_create::{closure#0}::{closure#0}
796
<control_plane::attachment_service::InspectRequest as serde::ser::Serialize>::serialize::<_>
292
<
::deserialize::__Field as serde::de::Deserialize>::deserialize::<_>
0
<
::deserialize::__Field as serde::de::Deserialize>::deserialize::
>>>>>
73
<
::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_str::
73
<
::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_map::
>>>>>
73
<
::deserialize::__Visitor as serde::de::Visitor>::visit_seq::<_>
0
<
::deserialize::__Visitor as serde::de::Visitor>::visit_seq::
>>>>>
0
::deserialize::<_>
0
::deserialize::
>>>>>
73
::serialize::<_>
0
<control_plane::attachment_service::InspectResponse as serde::ser::Serialize>::serialize::<_>
73
<
::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::<_>
0
::serialize::<&mut serde_json::ser::Serializer<&mut alloc::vec::Vec
>>
73
::serialize::<_>
0
<control_plane::attachment_service::NodeAvailability as core::clone::Clone>::clone
973
<
::deserialize::__Field as serde::de::Deserialize>::deserialize::<_>
0
<
::deserialize::__Field as serde::de::Deserialize>::deserialize::
>>>>>
3
<
::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_str::
3
<
::deserialize::__FieldVisitor as serde::de::Visitor>::visit_u64::<_>
0
<
::deserialize::__Visitor as serde::de::Visitor>::expecting
0
<
::deserialize::__Visitor as serde::de::Visitor>::visit_enum::<_>
0
<
::deserialize::__Visitor as serde::de::Visitor>::visit_enum::
>>>>>
3
<
::deserialize::__Visitor as serde::de::Visitor>::visit_enum::
>>>>>
0
::clone
961
::deserialize::<_>
0
::deserialize::
>>>>>
3
::serialize::<&mut serde_json::ser::Serializer<&mut alloc::vec::Vec
>>
0
::serialize::<_>
0
<control_plane::attachment_service::NodeAvailability as core::str::traits::FromStr>::from_str
0
<control_plane::attachment_service::NodeConfigureRequest as serde::ser::Serialize>::serialize::<_>
24
<
::deserialize::__Field as serde::de::Deserialize>::deserialize::<_>
0
<
::deserialize::__Field as serde::de::Deserialize>::deserialize::
>>>>>
8
<
::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_str::
8
<
::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_map::
>>>>>
4
<
::deserialize::__Visitor as serde::de::Visitor>::visit_seq::<_>
0
<
::deserialize::__Visitor as serde::de::Visitor>::visit_seq::
>>>>>
0
::deserialize::<_>
0
::deserialize::
>>>>>
4
::serialize::<&mut serde_json::ser::Serializer<&mut alloc::vec::Vec
>>
0
::serialize::<_>
0
<control_plane::attachment_service::NodeRegisterRequest as serde::ser::Serialize>::serialize::<_>
8112
<
::deserialize::__Field as serde::de::Deserialize>::deserialize::<_>
0
<
::deserialize::__Field as serde::de::Deserialize>::deserialize::
>>>>>
3120
<
::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_str::
3120
<
::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_map::
>>>>>
624
<
::deserialize::__Visitor as serde::de::Visitor>::visit_seq::<_>
0
<
::deserialize::__Visitor as serde::de::Visitor>::visit_seq::
>>>>>
0
::deserialize::<_>
0
::deserialize::
>>>>>
624
::serialize::<&mut serde_json::ser::Serializer<&mut alloc::vec::Vec
>>
624
::serialize::<_>
0
<control_plane::attachment_service::NodeSchedulingPolicy as core::clone::Clone>::clone
965
<
::deserialize::__Field as serde::de::Deserialize>::deserialize::<_>
0
<
::deserialize::__Field as serde::de::Deserialize>::deserialize::
>>>>>
1
<
::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_str::
1
<
::deserialize::__FieldVisitor as serde::de::Visitor>::visit_u64::<_>
0
<
::deserialize::__Visitor as serde::de::Visitor>::expecting
0
<
::deserialize::__Visitor as serde::de::Visitor>::visit_enum::<_>
0
<
::deserialize::__Visitor as serde::de::Visitor>::visit_enum::
>>>>>
1
<
::deserialize::__Visitor as serde::de::Visitor>::visit_enum::
>>>>>
0
::clone
961
::deserialize::<_>
0
::deserialize::
>>>>>
1
::serialize::<&mut serde_json::ser::Serializer<&mut alloc::vec::Vec
>>
0
::serialize::<_>
0
<control_plane::attachment_service::NodeSchedulingPolicy as core::str::traits::FromStr>::from_str
21
<control_plane::attachment_service::TenantCreateResponse as serde::ser::Serialize>::serialize::<_>
2298
<
::deserialize::__Field as serde::de::Deserialize>::deserialize::<_>
0
<
::deserialize::__Field as serde::de::Deserialize>::deserialize::
>
459
<
::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_str::
459
<
::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_map::
>
459
<
::deserialize::__Visitor as serde::de::Visitor>::visit_seq::<_>
0
<
::deserialize::__Visitor as serde::de::Visitor>::visit_seq::
>
0
::deserialize::<&mut serde_json::de::Deserializer
>
459
::deserialize::<_>
0
::serialize::<&mut serde_json::ser::Serializer<&mut alloc::vec::Vec
>>
462
::serialize::<_>
0
<control_plane::attachment_service::TenantCreateResponseShard as serde::ser::Serialize>::serialize::<_>
4378
<
::deserialize::__Field as serde::de::Deserialize>::deserialize::<_>
0
<
::deserialize::__Field as serde::de::Deserialize>::deserialize::
>
1458
<
::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_str::
1458
<
::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_map::
>
486
<
::deserialize::__Visitor as serde::de::Visitor>::visit_seq::<_>
0
<
::deserialize::__Visitor as serde::de::Visitor>::visit_seq::
>
0
::deserialize::<&mut serde_json::de::Deserializer
>
486
::deserialize::<_>
0
::serialize::<&mut serde_json::ser::Serializer<&mut alloc::vec::Vec
>>
490
::serialize::<_>
0
<control_plane::attachment_service::TenantLocateResponse as serde::ser::Serialize>::serialize::<_>
4273
<
::deserialize::__Field as serde::de::Deserialize>::deserialize::<_>
0
<
::deserialize::__Field as serde::de::Deserialize>::deserialize::
>
1144
<
::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_str::
1144
<
::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_map::
>
572
<
::deserialize::__Visitor as serde::de::Visitor>::visit_seq::<_>
0
<
::deserialize::__Visitor as serde::de::Visitor>::visit_seq::
>
0
::deserialize::<&mut serde_json::de::Deserializer
>
572
::deserialize::<_>
0
::serialize::<&mut serde_json::ser::Serializer<&mut alloc::vec::Vec
>>
841
::serialize::<_>
0
<control_plane::attachment_service::TenantLocateResponseShard as core::fmt::Debug>::fmt
10984
<
::deserialize::__Field as serde::de::Deserialize>::deserialize::<_>
0
<
::deserialize::__Field as serde::de::Deserialize>::deserialize::
>
3810
<
::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_str::
3810
<
::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_map::
>
635
<
::deserialize::__Visitor as serde::de::Visitor>::visit_seq::<_>
0
<
::deserialize::__Visitor as serde::de::Visitor>::visit_seq::
>
0
::fmt
1047
::deserialize::<&mut serde_json::de::Deserializer
>
635
::deserialize::<_>
0
::serialize::<&mut serde_json::ser::Serializer<&mut alloc::vec::Vec
>>
1047
::serialize::<_>
0
<control_plane::attachment_service::TenantShardMigrateRequest as core::fmt::Debug>::fmt
28
<
::deserialize::__Field as serde::de::Deserialize>::deserialize::<_>
0
<
::deserialize::__Field as serde::de::Deserialize>::deserialize::
>>>>>
8
<
::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_str::
8
<
::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_map::
>>>>>
4
<
::deserialize::__Visitor as serde::de::Visitor>::visit_seq::<_>
0
<
::deserialize::__Visitor as serde::de::Visitor>::visit_seq::
>>>>>
0
::fmt
0
::deserialize::<_>
0
::deserialize::
>>>>>
4
::serialize::<&mut serde_json::ser::Serializer<&mut alloc::vec::Vec
>>
4
::serialize::<_>
0
<control_plane::attachment_service::TenantShardMigrateResponse as core::fmt::Debug>::fmt
12
<
::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_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_map::
>
4
<
::deserialize::__Visitor as serde::de::Visitor>::visit_seq::<_>
0
<
::deserialize::__Visitor as serde::de::Visitor>::visit_seq::
>
0
::fmt
0
::deserialize::<&mut serde_json::de::Deserializer
>
4
::deserialize::<_>
0
::serialize::<&mut serde_json::ser::Serializer<&mut alloc::vec::Vec
>>
4
::serialize::<_>
0
Generated by:
LCOV version 2.1-beta