LCOV - code coverage report
Current view: top level - xml - xml_base.cc (source / functions) Hit Total Coverage
Test: OpenSDN C/C++ coverage (all TARGET_SET jobs) Lines: 6 9 66.7 %
Date: 2026-11-09 02:10:49 Functions: 2 3 66.7 %
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 "xml/xml_base.h"
       7             : #include "xml/xml_pugi.h"
       8             : 
       9             : XmppXmlImplFactory *XmppXmlImplFactory::Inst_ = NULL;
      10             : 
      11     4214066 : XmlBase *XmppXmlImplFactory::GetXmlImpl() {
      12     4214066 :     return new XmlPugi();
      13             : }
      14             : 
      15           0 : void XmppXmlImplFactory::ReleaseXmlImpl(XmlBase *tmp) {
      16           0 :     delete tmp;
      17           0 : }
      18             : 
      19     4214068 : XmppXmlImplFactory *XmppXmlImplFactory::Instance() {
      20     4214068 :     if (Inst_ == NULL)
      21         366 :         Inst_ = new XmppXmlImplFactory();
      22     4214069 :     return Inst_;
      23             : }

Generated by: LCOV version 1.14