Coverage Report

Created: 2023-11-12 09:30

/proc/self/cwd/source/extensions/load_balancing_policies/cluster_provided/config.cc
Line
Count
Source (jump to first uncovered line)
1
#include "source/extensions/load_balancing_policies/cluster_provided/config.h"
2
3
namespace Envoy {
4
namespace Extensions {
5
namespace LoadBalancingPolices {
6
namespace ClusterProvided {
7
8
Upstream::ThreadAwareLoadBalancerPtr Factory::create(OptRef<const Upstream::LoadBalancerConfig>,
9
                                                     const Upstream::ClusterInfo&,
10
                                                     const Upstream::PrioritySet&, Runtime::Loader&,
11
0
                                                     Random::RandomGenerator&, TimeSource&) {
12
  // Cluster provided load balancer has empty implementation. Because it is a special case to
13
  // tell the cluster to use the load balancer provided by the cluster.
14
0
  return nullptr;
15
0
};
16
17
/**
18
 * Static registration for the Factory. @see RegisterFactory.
19
 */
20
REGISTER_FACTORY(Factory, Upstream::TypedLoadBalancerFactory);
21
22
} // namespace ClusterProvided
23
} // namespace LoadBalancingPolices
24
} // namespace Extensions
25
} // namespace Envoy