LCOV - code coverage report
Current view: top level - xmpp - xmpp_channel.cc (source / functions) Hit Total Coverage
Test: OpenSDN C/C++ coverage (all TARGET_SET jobs) Lines: 4 10 40.0 %
Date: 2026-11-09 02:10:49 Functions: 1 1 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /*
       2             :  * Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
       3             :  * Copyright Contributors to the OpenSDN project
       4             :  */
       5             : 
       6             : #include "xmpp/xmpp_channel.h"
       7             : 
       8             : using std::string;
       9             : 
      10             : namespace xmps {
      11             : 
      12          24 : string PeerIdToName(PeerId id) {
      13          24 :     switch (id) {
      14           0 :     case CONFIG:
      15           0 :         return "IFMap";
      16             :         break;
      17          24 :     case BGP:
      18          24 :         return "BGP";
      19             :         break;
      20           0 :     case DNS:
      21           0 :         return "DNS";
      22             :         break;
      23           0 :     case OTHER:
      24             :     default:
      25           0 :         return "OTHER";
      26             :         break;
      27             :     }
      28             :     return "OTHER";
      29             : }
      30             : 
      31             : }

Generated by: LCOV version 1.14