LCOV - code coverage report
Current view: top level - root/contrail/src/contrail-analytics/contrail-collector/ruleparser - t_doc.h (source / functions) Hit Total Coverage
Test: OpenSDN C/C++ coverage (all TARGET_SET jobs) Lines: 2 10 20.0 %
Date: 2026-08-03 02:19:58 Functions: 2 6 33.3 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /*
       2             :  * Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
       3             :  */
       4             : 
       5             : #ifndef T_DOC_H
       6             : #define T_DOC_H
       7             : 
       8             : /**
       9             :  * Documentation stubs
      10             :  *
      11             :  */
      12             : class t_doc {
      13             : 
      14             :  public:
      15          20 :   t_doc() : has_doc_(false) {}
      16          20 :   virtual ~t_doc() {}
      17             : 
      18           0 :   void set_doc(const std::string& doc) {
      19           0 :     doc_ = doc;
      20           0 :     has_doc_ = true;
      21           0 :   }
      22             : 
      23           0 :   const std::string& get_doc() const {
      24           0 :     return doc_;
      25             :   }
      26             : 
      27           0 :   bool has_doc() {
      28           0 :     return has_doc_;
      29             :   }
      30             : 
      31             :  private:
      32             :   std::string doc_;
      33             :   bool has_doc_;
      34             : 
      35             : };
      36             : 
      37             : #endif

Generated by: LCOV version 1.14