wpkg test coverage results

Coverage test results of the Windows Packager by Made to Order Software Corporation.

LCOV - code coverage report
Current view: top level - tests/unittests - unittest_control.h (source / functions) Hit Total Coverage
Test: coverage.info Lines: 5 5 100.0 %
Date: 2013-06-17 Functions: 6 6 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /*    unittest_control.h
       2             :  *    Copyright (C) 2013  Made to Order Software Corporation
       3             :  *
       4             :  *    This program is free software; you can redistribute it and/or modify
       5             :  *    it under the terms of the GNU General Public License as published by
       6             :  *    the Free Software Foundation; either version 2 of the License, or
       7             :  *    (at your option) any later version.
       8             :  *
       9             :  *    This program is distributed in the hope that it will be useful,
      10             :  *    but WITHOUT ANY WARRANTY; without even the implied warranty of
      11             :  *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      12             :  *    GNU General Public License for more details.
      13             :  *
      14             :  *    You should have received a copy of the GNU General Public License along
      15             :  *    with this program; if not, write to the Free Software Foundation, Inc.,
      16             :  *    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
      17             :  *
      18             :  *    Authors
      19             :  *    Alexis Wilke   alexis@m2osw.com
      20             :  */
      21             : #ifndef UNIT_TEST_CONTROL_H
      22             : #define UNIT_TEST_CONTROL_H
      23             : 
      24             : #include <cppunit/extensions/HelperMacros.h>
      25             : #include "libdebpackages/wpkg_control.h"
      26             : 
      27             : namespace wpkg_filename
      28             : {
      29             : class uri_filename;
      30             : }
      31             : 
      32           6 : class ControlUnitTests : public CPPUNIT_NS::TestFixture
      33             : {
      34           2 :     CPPUNIT_TEST_SUITE( ControlUnitTests );
      35           1 :         CPPUNIT_TEST( files_field_to_list );
      36           1 :         CPPUNIT_TEST( all_files_field );
      37           2 :     CPPUNIT_TEST_SUITE_END();
      38             : 
      39             : public:
      40             :     void setUp();
      41             : 
      42             : protected:
      43             :     void files_field_to_list();
      44             :     void all_files_field();
      45             : 
      46             : private:
      47             :     // helper functions
      48             :     void check_field(const std::string& field_name, const std::string& default_format, wpkg_control::file_item::format_t format);
      49             : };
      50             : 
      51             : #endif
      52             : // vim: ts=4 sw=4 et

Generated by: LCOV version 1.9

The wpkg tool is an open source tool created by Made to Order Software Corporation.