LCOV - code coverage report
Current view: top level - dom/xslt/xpath - txForwardContext.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 0 26 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 8 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2             : /* This Source Code Form is subject to the terms of the Mozilla Public
       3             :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       4             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
       5             : 
       6             : #include "txForwardContext.h"
       7             : #include "txNodeSet.h"
       8             : 
       9           0 : const txXPathNode& txForwardContext::getContextNode()
      10             : {
      11           0 :     return mContextNode;
      12             : }
      13             : 
      14           0 : uint32_t txForwardContext::size()
      15             : {
      16           0 :     return (uint32_t)mContextSet->size();
      17             : }
      18             : 
      19           0 : uint32_t txForwardContext::position()
      20             : {
      21           0 :     int32_t pos = mContextSet->indexOf(mContextNode);
      22           0 :     NS_ASSERTION(pos >= 0, "Context is not member of context node list.");
      23           0 :     return (uint32_t)(pos + 1);
      24             : }
      25             : 
      26           0 : nsresult txForwardContext::getVariable(int32_t aNamespace, nsIAtom* aLName,
      27             :                                        txAExprResult*& aResult)
      28             : {
      29           0 :     NS_ASSERTION(mInner, "mInner is null!!!");
      30           0 :     return mInner->getVariable(aNamespace, aLName, aResult);
      31             : }
      32             : 
      33             : nsresult
      34           0 : txForwardContext::isStripSpaceAllowed(const txXPathNode& aNode, bool& aAllowed)
      35             : {
      36           0 :     NS_ASSERTION(mInner, "mInner is null!!!");
      37           0 :     return mInner->isStripSpaceAllowed(aNode, aAllowed);
      38             : }
      39             : 
      40           0 : void* txForwardContext::getPrivateContext()
      41             : {
      42           0 :     NS_ASSERTION(mInner, "mInner is null!!!");
      43           0 :     return mInner->getPrivateContext();
      44             : }
      45             : 
      46           0 : txResultRecycler* txForwardContext::recycler()
      47             : {
      48           0 :     NS_ASSERTION(mInner, "mInner is null!!!");
      49           0 :     return mInner->recycler();
      50             : }
      51             : 
      52           0 : void txForwardContext::receiveError(const nsAString& aMsg, nsresult aRes)
      53             : {
      54           0 :     NS_ASSERTION(mInner, "mInner is null!!!");
      55             : #ifdef DEBUG
      56           0 :     nsAutoString error(NS_LITERAL_STRING("forwarded error: "));
      57           0 :     error.Append(aMsg);
      58           0 :     mInner->receiveError(error, aRes);
      59             : #else
      60             :     mInner->receiveError(aMsg, aRes);
      61             : #endif
      62           0 : }

Generated by: LCOV version 1.13