LCOV - code coverage report
Current view: top level - dom/xslt/xpath - txExpr.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 0 12 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 2 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 "txExpr.h"
       7             : 
       8             : nsresult
       9           0 : Expr::evaluateToBool(txIEvalContext* aContext, bool& aResult)
      10             : {
      11           0 :     RefPtr<txAExprResult> exprRes;
      12           0 :     nsresult rv = evaluate(aContext, getter_AddRefs(exprRes));
      13           0 :     NS_ENSURE_SUCCESS(rv, rv);
      14             : 
      15           0 :     aResult = exprRes->booleanValue();
      16             : 
      17           0 :     return NS_OK;
      18             : }
      19             : 
      20             : nsresult
      21           0 : Expr::evaluateToString(txIEvalContext* aContext, nsString& aResult)
      22             : {
      23           0 :     RefPtr<txAExprResult> exprRes;
      24           0 :     nsresult rv = evaluate(aContext, getter_AddRefs(exprRes));
      25           0 :     NS_ENSURE_SUCCESS(rv, rv);
      26             : 
      27           0 :     exprRes->stringValue(aResult);
      28             : 
      29           0 :     return NS_OK;
      30             : }

Generated by: LCOV version 1.13