LCOV - code coverage report
Current view: top level - source/common/grpc - stat_names.cc (source / functions) Hit Total Coverage
Test: coverage.dat Lines: 7 7 100.0 %
Date: 2024-01-05 06:35:25 Functions: 1 1 100.0 %

          Line data    Source code
       1             : #include "source/common/grpc/stat_names.h"
       2             : 
       3             : namespace Envoy {
       4             : namespace Grpc {
       5             : 
       6             : StatNames::StatNames(Stats::SymbolTable& symbol_table)
       7             :     : pool_(symbol_table), streams_total_(pool_.add("streams_total")),
       8         481 :       google_grpc_client_creation_(pool_.add("google_grpc_client_creation")) {
       9        8658 :   for (uint32_t i = 0; i <= Status::WellKnownGrpcStatus::MaximumKnown; ++i) {
      10        8177 :     std::string status_str = absl::StrCat(i);
      11        8177 :     streams_closed_[i] = pool_.add(absl::StrCat("streams_closed_", status_str));
      12        8177 :     status_names_[status_str] = pool_.add(status_str);
      13        8177 :   }
      14         481 : }
      15             : 
      16             : } // namespace Grpc
      17             : } // namespace Envoy

Generated by: LCOV version 1.15