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

          Line data    Source code
       1             : /*
       2             :  * Copyright (c) 2015 Juniper Networks, Inc. All rights reserved.
       3             :  * Copyright Contributors to the OpenSDN project
       4             :  */
       5             : 
       6             : #ifndef IFMAP__IFMAP_SANDESH_CONTEXT_H__
       7             : #define IFMAP__IFMAP_SANDESH_CONTEXT_H__
       8             : 
       9             : #include <sandesh/sandesh.h>
      10             : 
      11             : class IFMapServer;
      12             : 
      13             : class IFMapSandeshContext : public SandeshContext {
      14             : public:
      15         123 :     IFMapSandeshContext(IFMapServer *ifmap_server)
      16         123 :         : ifmap_server_(ifmap_server), page_limit_(0), iter_limit_(0) {
      17         123 :     }
      18         532 :     uint32_t page_limit() const { return page_limit_; }
      19          56 :     void set_page_limit(uint32_t page_limit) { page_limit_ = page_limit; }
      20             :     uint32_t iter_limit() const { return iter_limit_; }
      21             :     void set_iter_limit(uint32_t iter_limit) { iter_limit_ = iter_limit; }
      22             : 
      23         238 :     IFMapServer *ifmap_server() { return ifmap_server_; }
      24             : 
      25             : private:
      26             :     IFMapServer *ifmap_server_;
      27             :     uint32_t page_limit_;
      28             :     uint32_t iter_limit_;
      29             : };
      30             : 
      31             : #endif  // IFMAP__IFMAP_SANDESH_CONTEXT_H__

Generated by: LCOV version 1.14