LCOV - code coverage report
Current view: top level - vnsw/agent/resource_manager - resource_cmn.cc (source / functions) Hit Total Coverage
Test: OpenSDN C/C++ coverage (all TARGET_SET jobs) Lines: 4 6 66.7 %
Date: 2026-08-03 02:19:58 Functions: 1 1 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /*
       2             :  * Copyright (c) 2016 Juniper Networks, Inc. All rights reserved.
       3             :  */
       4             : 
       5             : #include <boost/uuid/uuid_io.hpp>
       6             : #include <cmn/agent_cmn.h>
       7             : #include <cmn/agent.h>
       8             : #include <resource_manager/resource_cmn.h>
       9             : #include <resource_manager/resource_table.h>
      10             : #include <resource_manager/resource_manager.h>
      11             : 
      12             : //Include various data types and derivatives
      13             : #include <resource_manager/index_resource.h>
      14             : #include <resource_manager/mpls_index.h>
      15             : 
      16          18 : ResourceTable *Resource::Create(Type type, ResourceManager *rm) {
      17          18 :     switch (type) {
      18          18 :     case MPLS_INDEX:
      19             :     case INTERFACE_INDEX:
      20             :     case VRF_INDEX:
      21             :     case QOS_INDEX:
      22             :     case BGP_AS_SERVICE_INDEX:
      23             :     case MIRROR_INDEX:
      24          18 :         return new IndexResourceTable(rm);
      25           0 :     default: {
      26           0 :         assert(0);
      27             :     }
      28             :     };
      29             :     return NULL;
      30             : }

Generated by: LCOV version 1.14