Coverage Report

Created: 2024-09-19 09:45

/proc/self/cwd/test/common/http/xff_extension.cc
Line
Count
Source (jump to first uncovered line)
1
#include "test/common/http/xff_extension.h"
2
3
#include "source/extensions/http/original_ip_detection/xff/xff.h"
4
5
namespace Envoy {
6
7
1
Http::OriginalIPDetectionSharedPtr getXFFExtension(uint32_t hops, bool skip_xff_append) {
8
1
  return std::make_shared<Extensions::Http::OriginalIPDetection::Xff::XffIPDetection>(
9
1
      hops, skip_xff_append);
10
1
}
11
12
Http::OriginalIPDetectionSharedPtr getXFFExtension(std::vector<Network::Address::CidrRange> cidrs,
13
0
                                                   bool skip_xff_append) {
14
0
  return std::make_shared<Extensions::Http::OriginalIPDetection::Xff::XffIPDetection>(
15
0
      cidrs, skip_xff_append);
16
0
}
17
18
} // namespace Envoy