LCOV - code coverage report
Current view: top level - ifmap - ifmap_object.cc (source / functions) Hit Total Coverage
Test: OpenSDN C/C++ coverage (all TARGET_SET jobs) Lines: 20 28 71.4 %
Date: 2026-11-09 02:10:49 Functions: 7 11 63.6 %
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 "ifmap/ifmap_object.h"
       7             : 
       8      171224 : IFMapObject::IFMapObject()
       9      171224 :     : refcount_(0), sequence_number_(0) {
      10      171224 : }
      11             : 
      12      171224 : IFMapObject::~IFMapObject() {
      13      171224 : }
      14             : 
      15      143060 : void IFMapObject::Release(IFMapObject *object) {
      16      286120 :     if (!object->node_.is_linked()) {
      17      143060 :         delete object;
      18             :     }
      19      143060 : }
      20             : 
      21         255 : IFMapIdentifier::IFMapIdentifier() {
      22         255 : }
      23             : 
      24       94942 : IFMapIdentifier::IFMapIdentifier(int property_count) :
      25       94942 :     property_set_(property_count), old_property_set_(property_count) {
      26       94942 : }
      27             : 
      28          16 : void IFMapIdentifier::TransferPropertyToOldProperty() {
      29          16 :     old_property_set_ = property_set_;
      30          16 :     property_set_.reset();
      31          16 : }
      32             : 
      33           0 : bool IFMapIdentifier::ResolveStalePropertiesAndResetOld() {
      34           0 :     bool ret = (property_set_ != old_property_set_);
      35           0 :     old_property_set_.reset();
      36           0 :     return ret;
      37             : }
      38             : 
      39           0 : bool IFMapIdentifier::ResolveStaleness() {
      40           0 :     return ResolveStalePropertiesAndResetOld();
      41             : }
      42             : 
      43       76027 : IFMapLinkAttr::IFMapLinkAttr() {
      44       76027 : }
      45             : 
      46             : // TODO: might need to resolve staleness by checking contents of data
      47           0 : bool IFMapLinkAttr::ResolveStaleness() {
      48           0 :     return false;
      49             : }
      50             : 

Generated by: LCOV version 1.14