LCOV - code coverage report
Current view:
top level
-
storage_controller/src
- scheduler.rs
(
source
/ functions)
Coverage
Total
Hit
Test:
7eb96e224e685167ad85f58f858387d8cf253f63.info
Lines:
83.0 %
464
385
Test Date:
2024-09-23 21:23:07
Functions:
69.8 %
43
30
Function Name
Hit count
<storage_controller::scheduler::ScheduleError as core::fmt::Display>::fmt
0
<storage_controller::scheduler::Scheduler>::compute_fill_requirement
0
<storage_controller::scheduler::Scheduler>::expected_attached_shard_count
0
<storage_controller::scheduler::Scheduler>::expected_attached_shard_count::{closure#0}
0
<storage_controller::scheduler::Scheduler>::node_remove
0
<storage_controller::scheduler::Scheduler>::nodes_by_attached_shard_count
0
<storage_controller::scheduler::Scheduler>::nodes_by_attached_shard_count::{closure#0}
0
<storage_controller::scheduler::Scheduler>::nodes_by_attached_shard_count::{closure#1}
0
<storage_controller::scheduler::Scheduler>::schedule_shard::{closure#6}
0
::schedule_shard::{closure#6}
0
::schedule_shard::{closure#7}
0
<utils::http::error::ApiError as core::convert::From<storage_controller::scheduler::ScheduleError>>::from
0
<storage_controller::scheduler::Scheduler>::consistency_check::<std::collections::hash::map::Values<utils::id::NodeId, storage_controller::node::Node>, core::array::iter::IntoIter<&storage_controller::tenant_shard::TenantShard, 1>>
1
::consistency_check::
, alloc::collections::btree::map::Values
>
0
::consistency_check::
, core::array::iter::IntoIter<&storage_controller::tenant_shard::TenantShard, 1>>
1
storage_controller::scheduler::tests::scheduler_basic
1
storage_controller::scheduler::tests::scheduler_basic::{closure#0}
1
storage_controller::scheduler::tests::scheduler_utilization
1
<storage_controller::scheduler::Scheduler>::node_preferred::{closure#2}
2
<storage_controller::scheduler::SchedulerNode as core::cmp::PartialEq>::eq
3
<storage_controller::scheduler::Scheduler>::node_preferred::{closure#0}
4
<storage_controller::scheduler::Scheduler>::node_preferred::{closure#0}::{closure#0}
4
<storage_controller::scheduler::Scheduler>::node_preferred::{closure#1}
4
<storage_controller::scheduler::Scheduler>::node_upsert
7
<storage_controller::scheduler::Scheduler>::new::<_>
8
::new::<_>
0
::new::
>
1
::new::
>
7
storage_controller::scheduler::test_utils::make_test_nodes
8
storage_controller::scheduler::tests::scheduler_utilization::assert_scheduler_chooses
11
<storage_controller::scheduler::Scheduler>::get_node_attached_shard_count
12
<storage_controller::scheduler::Scheduler>::get_node_shard_count
12
<storage_controller::scheduler::Scheduler>::node_preferred
14
<storage_controller::scheduler::ScheduleMode as core::default::Default>::default
16
<storage_controller::scheduler::AffinityScore as core::ops::arith::Add>::add
20
storage_controller::scheduler::test_utils::make_test_nodes::{closure#0}
25
<storage_controller::scheduler::Scheduler>::schedule_shard
38
<storage_controller::scheduler::ScheduleContext>::push_attached
39
<storage_controller::scheduler::ScheduleContext>::avoid
41
<storage_controller::scheduler::ScheduleContext>::get_node_affinity
45
<storage_controller::scheduler::ScheduleContext>::get_node_attachments
45
<storage_controller::scheduler::AffinityScore>::inc
80
<storage_controller::scheduler::Scheduler>::schedule_shard::{closure#1}
84
<storage_controller::scheduler::Scheduler>::update_node_ref_counts
91
<storage_controller::scheduler::Scheduler>::schedule_shard::{closure#2}
100
<storage_controller::scheduler::Scheduler>::schedule_shard::{closure#0}
115
Generated by:
LCOV version 2.1-beta