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-06-04 02:06:09 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             :  */
       4             : 
       5             : #include "xml/xml_base.h"
       6             : #include "xml/xml_pugi.h"
       7             : 
       8             : XmppXmlImplFactory *XmppXmlImplFactory::Inst_ = NULL;
       9             : 
      10     4303731 : XmlBase *XmppXmlImplFactory::GetXmlImpl() {
      11     4303731 :     return new XmlPugi();
      12             : }
      13             : 
      14           0 : void XmppXmlImplFactory::ReleaseXmlImpl(XmlBase *tmp) {
      15           0 :     delete tmp;
      16           0 : }
      17             : 
      18     4303730 : XmppXmlImplFactory *XmppXmlImplFactory::Instance() {
      19     4303730 :     if (Inst_ == NULL)
      20         362 :         Inst_ = new XmppXmlImplFactory();
      21     4303737 :     return Inst_;
      22             : }

Generated by: LCOV version 1.14