LCOV - code coverage report
Current view: top level - source/extensions/retry/host/omit_host_metadata - omit_host_metadata.cc (source / functions) Hit Total Coverage
Test: coverage.dat Lines: 0 5 0.0 %
Date: 2024-01-05 06:35:25 Functions: 0 1 0.0 %

          Line data    Source code
       1             : #include "source/extensions/retry/host/omit_host_metadata/omit_host_metadata.h"
       2             : 
       3             : #include "source/common/config/metadata.h"
       4             : 
       5             : namespace Envoy {
       6             : namespace Extensions {
       7             : namespace Retry {
       8             : namespace Host {
       9             : 
      10           0 : bool OmitHostsRetryPredicate::shouldSelectAnotherHost(const Upstream::Host& host) {
      11             :   // Note: The additional check to verify if the labelSet is empty is performed since
      12             :   // metadataLabelMatch returns true in case of an empty labelSet. However, for an empty labelSet,
      13             :   // i.e. if there is no matching criteria defined, this method should return false.
      14           0 :   return !label_set_.empty() && Envoy::Config::Metadata::metadataLabelMatch(
      15           0 :                                     label_set_, host.metadata().get(),
      16           0 :                                     Envoy::Config::MetadataFilters::get().ENVOY_LB, true);
      17           0 : }
      18             : 
      19             : } // namespace Host
      20             : } // namespace Retry
      21             : } // namespace Extensions
      22             : } // namespace Envoy

Generated by: LCOV version 1.15