LCOV - code coverage report
Current view: top level - basegfx/test - basegfx3d.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 56 56 100.0 %
Date: 2012-08-25 Functions: 47 47 100.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 102 214 47.7 %

           Branch data     Line data    Source code
       1                 :            : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2                 :            : /*************************************************************************
       3                 :            :  *
       4                 :            :  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
       5                 :            :  *
       6                 :            :  * Copyright 2000, 2010 Oracle and/or its affiliates.
       7                 :            :  *
       8                 :            :  * OpenOffice.org - a multi-platform office productivity suite
       9                 :            :  *
      10                 :            :  * This file is part of OpenOffice.org.
      11                 :            :  *
      12                 :            :  * OpenOffice.org is free software: you can redistribute it and/or modify
      13                 :            :  * it under the terms of the GNU Lesser General Public License version 3
      14                 :            :  * only, as published by the Free Software Foundation.
      15                 :            :  *
      16                 :            :  * OpenOffice.org is distributed in the hope that it will be useful,
      17                 :            :  * but WITHOUT ANY WARRANTY; without even the implied warranty of
      18                 :            :  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      19                 :            :  * GNU Lesser General Public License version 3 for more details
      20                 :            :  * (a copy is included in the LICENSE file that accompanied this code).
      21                 :            :  *
      22                 :            :  * You should have received a copy of the GNU Lesser General Public License
      23                 :            :  * version 3 along with OpenOffice.org.  If not, see
      24                 :            :  * <http://www.openoffice.org/license.html>
      25                 :            :  * for a copy of the LGPLv3 License.
      26                 :            :  *
      27                 :            :  ************************************************************************/
      28                 :            : 
      29                 :            : #include <sal/types.h>
      30                 :            : #include "cppunit/TestAssert.h"
      31                 :            : #include "cppunit/TestFixture.h"
      32                 :            : #include "cppunit/extensions/HelperMacros.h"
      33                 :            : 
      34                 :            : namespace basegfx3d
      35                 :            : {
      36                 :            : 
      37         [ -  + ]:         15 : class b3dhommatrix : public CppUnit::TestFixture
      38                 :            : {
      39                 :            : public:
      40                 :            :     // initialise your test code values here.
      41                 :          5 :     void setUp()
      42                 :            :     {
      43                 :          5 :     }
      44                 :            : 
      45                 :          5 :     void tearDown()
      46                 :            :     {
      47                 :          5 :     }
      48                 :            : 
      49                 :            :     // insert your test code here.
      50                 :            :     // this is only demonstration code
      51                 :          5 :     void EmptyMethod()
      52                 :            :     {
      53                 :            :           // CPPUNIT_ASSERT_MESSAGE("a message", 1 == 1);
      54                 :          5 :     }
      55                 :            : 
      56                 :            :     // Change the following lines only, if you add, remove or rename
      57                 :            :     // member functions of the current class,
      58                 :            :     // because these macros are need by auto register mechanism.
      59                 :            : 
      60 [ +  - ][ +  - ]:         10 :     CPPUNIT_TEST_SUITE(b3dhommatrix);
         [ +  - ][ +  - ]
                 [ #  # ]
      61 [ +  - ][ +  - ]:          5 :     CPPUNIT_TEST(EmptyMethod);
         [ +  - ][ +  - ]
         [ +  - ][ +  - ]
                 [ +  - ]
      62 [ +  - ][ +  - ]:         10 :     CPPUNIT_TEST_SUITE_END();
         [ +  - ][ +  - ]
         [ +  - ][ +  - ]
         [ +  - ][ +  - ]
      63                 :            : }; // class b3dhommatrix
      64                 :            : 
      65                 :            : 
      66         [ -  + ]:         15 : class b3dpoint : public CppUnit::TestFixture
      67                 :            : {
      68                 :            : public:
      69                 :            :     // initialise your test code values here.
      70                 :          5 :     void setUp()
      71                 :            :     {
      72                 :          5 :     }
      73                 :            : 
      74                 :          5 :     void tearDown()
      75                 :            :     {
      76                 :          5 :     }
      77                 :            : 
      78                 :            :     // insert your test code here.
      79                 :            :     // this is only demonstration code
      80                 :          5 :     void EmptyMethod()
      81                 :            :     {
      82                 :            :           // CPPUNIT_ASSERT_MESSAGE("a message", 1 == 1);
      83                 :          5 :     }
      84                 :            : 
      85                 :            :     // Change the following lines only, if you add, remove or rename
      86                 :            :     // member functions of the current class,
      87                 :            :     // because these macros are need by auto register mechanism.
      88                 :            : 
      89 [ +  - ][ +  - ]:         10 :     CPPUNIT_TEST_SUITE(b3dpoint);
         [ +  - ][ +  - ]
                 [ #  # ]
      90 [ +  - ][ +  - ]:          5 :     CPPUNIT_TEST(EmptyMethod);
         [ +  - ][ +  - ]
         [ +  - ][ +  - ]
                 [ +  - ]
      91 [ +  - ][ +  - ]:         10 :     CPPUNIT_TEST_SUITE_END();
         [ +  - ][ +  - ]
         [ +  - ][ +  - ]
         [ +  - ][ +  - ]
      92                 :            : }; // class b3dpoint
      93                 :            : 
      94                 :            : 
      95         [ -  + ]:         15 : class b3drange : public CppUnit::TestFixture
      96                 :            : {
      97                 :            : public:
      98                 :            :     // initialise your test code values here.
      99                 :          5 :     void setUp()
     100                 :            :     {
     101                 :          5 :     }
     102                 :            : 
     103                 :          5 :     void tearDown()
     104                 :            :     {
     105                 :          5 :     }
     106                 :            : 
     107                 :            :     // insert your test code here.
     108                 :          5 :     void EmptyMethod()
     109                 :            :     {
     110                 :          5 :     }
     111                 :            : 
     112                 :            :     // Change the following lines only, if you add, remove or rename
     113                 :            :     // member functions of the current class,
     114                 :            :     // because these macros are need by auto register mechanism.
     115                 :            : 
     116 [ +  - ][ +  - ]:         10 :     CPPUNIT_TEST_SUITE(b3drange);
         [ +  - ][ +  - ]
                 [ #  # ]
     117 [ +  - ][ +  - ]:          5 :     CPPUNIT_TEST(EmptyMethod);
         [ +  - ][ +  - ]
         [ +  - ][ +  - ]
                 [ +  - ]
     118 [ +  - ][ +  - ]:         10 :     CPPUNIT_TEST_SUITE_END();
         [ +  - ][ +  - ]
         [ +  - ][ +  - ]
         [ +  - ][ +  - ]
     119                 :            : }; // class b3drange
     120                 :            : 
     121                 :            : 
     122         [ -  + ]:         15 : class b3dtuple : public CppUnit::TestFixture
     123                 :            : {
     124                 :            : public:
     125                 :            :     // initialise your test code values here.
     126                 :          5 :     void setUp()
     127                 :            :     {
     128                 :          5 :     }
     129                 :            : 
     130                 :          5 :     void tearDown()
     131                 :            :     {
     132                 :          5 :     }
     133                 :            : 
     134                 :            :     // insert your test code here.
     135                 :            :     // this is only demonstration code
     136                 :          5 :     void EmptyMethod()
     137                 :            :     {
     138                 :            :           // CPPUNIT_ASSERT_MESSAGE("a message", 1 == 1);
     139                 :          5 :     }
     140                 :            : 
     141                 :            :     // Change the following lines only, if you add, remove or rename
     142                 :            :     // member functions of the current class,
     143                 :            :     // because these macros are need by auto register mechanism.
     144                 :            : 
     145 [ +  - ][ +  - ]:         10 :     CPPUNIT_TEST_SUITE(b3dtuple);
         [ +  - ][ +  - ]
                 [ #  # ]
     146 [ +  - ][ +  - ]:          5 :     CPPUNIT_TEST(EmptyMethod);
         [ +  - ][ +  - ]
         [ +  - ][ +  - ]
                 [ +  - ]
     147 [ +  - ][ +  - ]:         10 :     CPPUNIT_TEST_SUITE_END();
         [ +  - ][ +  - ]
         [ +  - ][ +  - ]
         [ +  - ][ +  - ]
     148                 :            : }; // class b3dtuple
     149                 :            : 
     150                 :            : 
     151         [ -  + ]:         15 : class b3dvector : public CppUnit::TestFixture
     152                 :            : {
     153                 :            : public:
     154                 :            :     // initialise your test code values here.
     155                 :          5 :     void setUp()
     156                 :            :     {
     157                 :          5 :     }
     158                 :            : 
     159                 :          5 :     void tearDown()
     160                 :            :     {
     161                 :          5 :     }
     162                 :            : 
     163                 :            :     // insert your test code here.
     164                 :          5 :     void EmptyMethod()
     165                 :            :     {
     166                 :          5 :     }
     167                 :            : 
     168                 :            :     // Change the following lines only, if you add, remove or rename
     169                 :            :     // member functions of the current class,
     170                 :            :     // because these macros are need by auto register mechanism.
     171                 :            : 
     172 [ +  - ][ +  - ]:         10 :     CPPUNIT_TEST_SUITE(b3dvector);
         [ +  - ][ +  - ]
                 [ #  # ]
     173 [ +  - ][ +  - ]:          5 :     CPPUNIT_TEST(EmptyMethod);
         [ +  - ][ +  - ]
         [ +  - ][ +  - ]
                 [ +  - ]
     174 [ +  - ][ +  - ]:         10 :     CPPUNIT_TEST_SUITE_END();
         [ +  - ][ +  - ]
         [ +  - ][ +  - ]
         [ +  - ][ +  - ]
     175                 :            : }; // class b3dvector
     176                 :            : 
     177                 :            : // -----------------------------------------------------------------------------
     178                 :          5 : CPPUNIT_TEST_SUITE_REGISTRATION(basegfx3d::b3dhommatrix);
     179                 :          5 : CPPUNIT_TEST_SUITE_REGISTRATION(basegfx3d::b3dpoint);
     180                 :          5 : CPPUNIT_TEST_SUITE_REGISTRATION(basegfx3d::b3drange);
     181                 :          5 : CPPUNIT_TEST_SUITE_REGISTRATION(basegfx3d::b3dtuple);
     182                 :          5 : CPPUNIT_TEST_SUITE_REGISTRATION(basegfx3d::b3dvector);
     183 [ +  - ][ +  - ]:         15 : } // namespace basegfx3d
     184                 :            : 
     185                 :            : 
     186                 :            : // -----------------------------------------------------------------------------
     187                 :            : 
     188                 :            : // this macro creates an empty function, which will called by the RegisterAllFunctions()
     189                 :            : // to let the user the possibility to also register some functions by hand.
     190                 :            : // NOADDITIONAL;
     191                 :            : 
     192                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10