Coverage Report

Created: 2023-11-12 09:30

/proc/self/cwd/source/common/config/resource_name.h
Line
Count
Source
1
#pragma once
2
3
#include <string>
4
#include <vector>
5
6
#include "source/common/protobuf/protobuf.h"
7
8
namespace Envoy {
9
namespace Config {
10
11
/**
12
 * Get resource name from api type.
13
 */
14
20.6k
template <typename Current> std::string getResourceName() {
15
20.6k
  return createReflectableMessage(Current())->GetDescriptor()->full_name();
16
20.6k
}
std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > Envoy::Config::getResourceName<envoy::config::cluster::v3::Cluster>()
Line
Count
Source
14
237
template <typename Current> std::string getResourceName() {
15
237
  return createReflectableMessage(Current())->GetDescriptor()->full_name();
16
237
}
std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > Envoy::Config::getResourceName<envoy::config::endpoint::v3::ClusterLoadAssignment>()
Line
Count
Source
14
42
template <typename Current> std::string getResourceName() {
15
42
  return createReflectableMessage(Current())->GetDescriptor()->full_name();
16
42
}
std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > Envoy::Config::getResourceName<envoy::config::endpoint::v3::LbEndpoint>()
Line
Count
Source
14
42
template <typename Current> std::string getResourceName() {
15
42
  return createReflectableMessage(Current())->GetDescriptor()->full_name();
16
42
}
std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > Envoy::Config::getResourceName<envoy::extensions::transport_sockets::tls::v3::Secret>()
Line
Count
Source
14
2.76k
template <typename Current> std::string getResourceName() {
15
2.76k
  return createReflectableMessage(Current())->GetDescriptor()->full_name();
16
2.76k
}
Unexecuted instantiation: std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > Envoy::Config::getResourceName<envoy::config::core::v3::TypedExtensionConfig>()
std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > Envoy::Config::getResourceName<envoy::config::route::v3::ScopedRouteConfiguration>()
Line
Count
Source
14
2.73k
template <typename Current> std::string getResourceName() {
15
2.73k
  return createReflectableMessage(Current())->GetDescriptor()->full_name();
16
2.73k
}
std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > Envoy::Config::getResourceName<envoy::config::route::v3::RouteConfiguration>()
Line
Count
Source
14
10.7k
template <typename Current> std::string getResourceName() {
15
10.7k
  return createReflectableMessage(Current())->GetDescriptor()->full_name();
16
10.7k
}
Unexecuted instantiation: std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > Envoy::Config::getResourceName<envoy::config::route::v3::VirtualHost>()
std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > Envoy::Config::getResourceName<envoy::service::runtime::v3::Runtime>()
Line
Count
Source
14
1.16k
template <typename Current> std::string getResourceName() {
15
1.16k
  return createReflectableMessage(Current())->GetDescriptor()->full_name();
16
1.16k
}
std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > Envoy::Config::getResourceName<envoy::config::listener::v3::Listener>()
Line
Count
Source
14
2.87k
template <typename Current> std::string getResourceName() {
15
2.87k
  return createReflectableMessage(Current())->GetDescriptor()->full_name();
16
2.87k
}
Unexecuted instantiation: std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > Envoy::Config::getResourceName<envoy::extensions::filters::network::dubbo_proxy::v3::MultipleRouteConfiguration>()
Unexecuted instantiation: std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > Envoy::Config::getResourceName<envoy::extensions::filters::network::thrift_proxy::v3::RouteConfiguration>()
17
18
/**
19
 * Get type url from api type.
20
 */
21
10.9k
template <typename Current> std::string getTypeUrl() {
22
10.9k
  return "type.googleapis.com/" + getResourceName<Current>();
23
10.9k
}
std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > Envoy::Config::getTypeUrl<envoy::config::endpoint::v3::ClusterLoadAssignment>()
Line
Count
Source
21
28
template <typename Current> std::string getTypeUrl() {
22
28
  return "type.googleapis.com/" + getResourceName<Current>();
23
28
}
std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > Envoy::Config::getTypeUrl<envoy::config::endpoint::v3::LbEndpoint>()
Line
Count
Source
21
42
template <typename Current> std::string getTypeUrl() {
22
42
  return "type.googleapis.com/" + getResourceName<Current>();
23
42
}
std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > Envoy::Config::getTypeUrl<envoy::extensions::transport_sockets::tls::v3::Secret>()
Line
Count
Source
21
2.76k
template <typename Current> std::string getTypeUrl() {
22
2.76k
  return "type.googleapis.com/" + getResourceName<Current>();
23
2.76k
}
std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > Envoy::Config::getTypeUrl<envoy::config::route::v3::RouteConfiguration>()
Line
Count
Source
21
5.38k
template <typename Current> std::string getTypeUrl() {
22
5.38k
  return "type.googleapis.com/" + getResourceName<Current>();
23
5.38k
}
Unexecuted instantiation: std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > Envoy::Config::getTypeUrl<envoy::config::cluster::v3::Cluster>()
std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > Envoy::Config::getTypeUrl<envoy::config::route::v3::ScopedRouteConfiguration>()
Line
Count
Source
21
2.73k
template <typename Current> std::string getTypeUrl() {
22
2.73k
  return "type.googleapis.com/" + getResourceName<Current>();
23
2.73k
}
24
25
} // namespace Config
26
} // namespace Envoy