LCOV - code coverage report
Current view: top level - tests - raii_helper.cpp (source / functions) Hit Total Coverage
Test: coverage.info Lines: 7 7 100.0 %
Date: 2019-04-24 14:10:30 Functions: 4 4 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /*
       2             :   Zipios -- a small C++ library that provides easy access to .zip files.
       3             : 
       4             :   Copyright (C) 2000-2007  Thomas Sondergaard
       5             :   Copyright (C) 2015-2019  Made to Order Software Corporation
       6             : 
       7             :   This library is free software; you can redistribute it and/or
       8             :   modify it under the terms of the GNU Lesser General Public
       9             :   License as published by the Free Software Foundation; either
      10             :   version 2.1 of the License, or (at your option) any later version.
      11             : 
      12             :   This library is distributed in the hope that it will be useful,
      13             :   but WITHOUT ANY WARRANTY; without even the implied warranty of
      14             :   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
      15             :   Lesser General Public License for more details.
      16             : 
      17             :   You should have received a copy of the GNU Lesser General Public
      18             :   License along with this library; if not, write to the Free Software
      19             :   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
      20             : */
      21             : 
      22             : /** \file
      23             :  *
      24             :  * Zipios RAII objects used in various unit tests.
      25             :  */
      26             : 
      27             : #include "tests.hpp"
      28             : 
      29             : #include <unistd.h>
      30             : 
      31             : 
      32             : namespace zipios_test
      33             : {
      34             : 
      35             : 
      36         537 : auto_unlink_t::auto_unlink_t(std::string const& filename)
      37         537 :     : m_filename(filename)
      38             : {
      39         537 : }
      40             : 
      41        1074 : auto_unlink_t::~auto_unlink_t()
      42             : {
      43         537 :     unlink(m_filename.c_str());
      44         537 : }
      45             : 
      46             : 
      47           3 : } // zipios_tests namespace
      48             : 
      49             : // Local Variables:
      50             : // mode: cpp
      51             : // indent-tabs-mode: nil
      52             : // c-basic-offset: 4
      53             : // tab-width: 4
      54             : // End:
      55             : 
      56             : // vim: ts=4 sw=4 et

Generated by: LCOV version 1.12