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_package.h (source / functions) Hit Total Coverage
Test: coverage.info Lines: 20 20 100.0 %
Date: 2013-06-17 Functions: 6 6 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /*    unittest_package.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_PACKAGE_H
      22             : #define UNIT_TEST_PACKAGE_H
      23             : 
      24             : #include <cppunit/extensions/HelperMacros.h>
      25             : 
      26             : namespace wpkg_filename
      27             : {
      28             : class uri_filename;
      29             : }
      30             : 
      31          51 : class PackageUnitTests : public CPPUNIT_NS::TestFixture
      32             : {
      33           2 :     CPPUNIT_TEST_SUITE( PackageUnitTests );
      34           1 :         CPPUNIT_TEST( simple_package );
      35           1 :         CPPUNIT_TEST( depends_with_simple_packages );
      36           1 :         CPPUNIT_TEST( essential_package );
      37           1 :         CPPUNIT_TEST( upgrade_package );
      38           1 :         CPPUNIT_TEST( admindir_package );
      39           1 :         CPPUNIT_TEST( file_exists_in_admindir );
      40             :         //CPPUNIT_TEST( depends_distribution_packages );
      41           1 :         CPPUNIT_TEST( conflicting_packages );
      42           1 :         CPPUNIT_TEST( sorted_packages_auto_index );
      43           1 :         CPPUNIT_TEST( sorted_packages_ready_index );
      44           1 :         CPPUNIT_TEST( choices_packages );
      45           1 :         CPPUNIT_TEST( same_package_two_places_errors );
      46           1 :         CPPUNIT_TEST( self_upgrade );
      47           1 :         CPPUNIT_TEST( scripts_order );
      48           1 :         CPPUNIT_TEST( compare_versions );
      49           1 :         CPPUNIT_TEST( auto_upgrade );
      50           1 :         CPPUNIT_TEST( auto_downgrade );
      51           1 :         CPPUNIT_TEST( test_hold );
      52           2 :     CPPUNIT_TEST_SUITE_END();
      53             : 
      54             : public:
      55             :     void setUp();
      56             : 
      57             : protected:
      58             :     void sorted_packages_run(int precreate_index);
      59             : 
      60             :     void simple_package();
      61             :     void depends_with_simple_packages();
      62             :     void essential_package();
      63             :     void upgrade_package();
      64             :     void admindir_package();
      65             :     void file_exists_in_admindir();
      66             :     //void depends_distribution_packages();
      67             :     void conflicting_packages();
      68             :     void sorted_packages_auto_index();
      69             :     void sorted_packages_ready_index();
      70             :     void choices_packages();
      71             :     void same_package_two_places_errors();
      72             :     void self_upgrade();
      73             :     void scripts_order();
      74             :     void compare_versions();
      75             :     void auto_upgrade();
      76             :     void auto_downgrade();
      77             :     void test_hold();
      78             : };
      79             : 
      80             : #endif
      81             : // 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.