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

          Line data    Source code
       1             : #include "source/extensions/config_subscription/grpc/xds_source_id.h"
       2             : 
       3             : #include "absl/strings/str_cat.h"
       4             : 
       5             : namespace Envoy {
       6             : namespace Config {
       7             : 
       8             : XdsConfigSourceId::XdsConfigSourceId(absl::string_view authority_id,
       9             :                                      absl::string_view resource_type_url)
      10           0 :     : authority_id_(authority_id), resource_type_url_(resource_type_url) {}
      11             : 
      12           0 : std::string XdsConfigSourceId::toKey() const {
      13             :   // The delimiter between parts of the key. The type URL cannot contain a "+" character, so we
      14             :   // don't run the risk of collisions with different parts of the key having a "+" in them.
      15           0 :   static constexpr char DELIMITER[] = "+";
      16           0 :   return absl::StrCat(authority_id_, DELIMITER, resource_type_url_);
      17           0 : }
      18             : 
      19             : } // namespace Config
      20             : } // namespace Envoy

Generated by: LCOV version 1.15