LCOV - code coverage report
Current view: top level - source/common/network - upstream_subject_alt_names.cc (source / functions) Hit Total Coverage
Test: coverage.dat Lines: 4 8 50.0 %
Date: 2024-01-05 06:35:25 Functions: 2 3 66.7 %

          Line data    Source code
       1             : #include "source/common/network/upstream_subject_alt_names.h"
       2             : 
       3             : #include "envoy/registry/registry.h"
       4             : #include "envoy/stream_info/filter_state.h"
       5             : 
       6             : #include "source/common/common/macros.h"
       7             : 
       8             : namespace Envoy {
       9             : namespace Network {
      10             : 
      11         320 : const std::string& UpstreamSubjectAltNames::key() {
      12         320 :   CONSTRUCT_ON_FIRST_USE(std::string, "envoy.network.upstream_subject_alt_names");
      13         320 : }
      14             : 
      15             : class UpstreamSubjectAltNamesObjectFactory : public StreamInfo::FilterState::ObjectFactory {
      16             : public:
      17          69 :   std::string name() const override { return UpstreamSubjectAltNames::key(); }
      18             :   std::unique_ptr<StreamInfo::FilterState::Object>
      19           0 :   createFromBytes(absl::string_view data) const override {
      20           0 :     const std::vector<std::string> parts = absl::StrSplit(data, ',');
      21           0 :     return std::make_unique<UpstreamSubjectAltNames>(parts);
      22           0 :   }
      23             : };
      24             : 
      25             : REGISTER_FACTORY(UpstreamSubjectAltNamesObjectFactory, StreamInfo::FilterState::ObjectFactory);
      26             : } // namespace Network
      27             : } // namespace Envoy

Generated by: LCOV version 1.15