LCOV - code coverage report
Current view: top level - log - dummylog.cc (source / functions) Hit Total Coverage
Test: report.info Lines: 2 8 25.0 %
Date: 2012-05-15 Functions: 1 2 50.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 6 0.0 %

           Branch data     Line data    Source code
       1                 :            : // Copyright (C) 2010  Internet Systems Consortium, Inc. ("ISC")
       2                 :            : //
       3                 :            : // Permission to use, copy, modify, and/or distribute this software for any
       4                 :            : // purpose with or without fee is hereby granted, provided that the above
       5                 :            : // copyright notice and this permission notice appear in all copies.
       6                 :            : //
       7                 :            : // THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
       8                 :            : // REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
       9                 :            : // AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
      10                 :            : // INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
      11                 :            : // LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
      12                 :            : // OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
      13                 :            : // PERFORMANCE OF THIS SOFTWARE.
      14                 :            : 
      15                 :            : #include "dummylog.h"
      16                 :            : 
      17                 :            : #include <iostream>
      18                 :            : 
      19                 :            : using namespace std;
      20                 :            : 
      21                 :            : namespace isc {
      22                 :            : namespace log {
      23                 :            : 
      24                 :            : bool denabled = false;
      25                 :        141 : string dprefix;
      26                 :            : 
      27                 :          0 : void dlog(const string& message,bool error_flag) {
      28 [ #  # ][ #  # ]:          0 :     if (denabled || error_flag) {
      29         [ #  # ]:          0 :         if (!dprefix.empty()) {
      30                 :          0 :             cerr << "[" << dprefix << "] ";
      31                 :            :         }
      32                 :          0 :         cerr << message << endl;
      33                 :            :     }
      34                 :          0 : }
      35                 :            : 
      36                 :            : }
      37                 :        141 : }

Generated by: LCOV version 1.9