LCOV - code coverage report
Current view: top level - usr/local/src/libreoffice/basegfx/test - basegfx3d.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 56 56 100.0 %
Date: 2013-07-09 Functions: 47 47 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2             : /*
       3             :  * This file is part of the LibreOffice project.
       4             :  *
       5             :  * This Source Code Form is subject to the terms of the Mozilla Public
       6             :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       7             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
       8             :  *
       9             :  * This file incorporates work covered by the following license notice:
      10             :  *
      11             :  *   Licensed to the Apache Software Foundation (ASF) under one or more
      12             :  *   contributor license agreements. See the NOTICE file distributed
      13             :  *   with this work for additional information regarding copyright
      14             :  *   ownership. The ASF licenses this file to you under the Apache
      15             :  *   License, Version 2.0 (the "License"); you may not use this file
      16             :  *   except in compliance with the License. You may obtain a copy of
      17             :  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
      18             :  */
      19             : 
      20             : #include <sal/types.h>
      21             : #include "cppunit/TestAssert.h"
      22             : #include "cppunit/TestFixture.h"
      23             : #include "cppunit/extensions/HelperMacros.h"
      24             : 
      25             : namespace basegfx3d
      26             : {
      27             : 
      28           3 : class b3dhommatrix : public CppUnit::TestFixture
      29             : {
      30             : public:
      31             :     // initialise your test code values here.
      32           1 :     void setUp()
      33             :     {
      34           1 :     }
      35             : 
      36           1 :     void tearDown()
      37             :     {
      38           1 :     }
      39             : 
      40             :     // insert your test code here.
      41             :     // this is only demonstration code
      42           1 :     void EmptyMethod()
      43             :     {
      44             :           // CPPUNIT_ASSERT_MESSAGE("a message", 1 == 1);
      45           1 :     }
      46             : 
      47             :     // Change the following lines only, if you add, remove or rename
      48             :     // member functions of the current class,
      49             :     // because these macros are need by auto register mechanism.
      50             : 
      51           2 :     CPPUNIT_TEST_SUITE(b3dhommatrix);
      52           1 :     CPPUNIT_TEST(EmptyMethod);
      53           2 :     CPPUNIT_TEST_SUITE_END();
      54             : }; // class b3dhommatrix
      55             : 
      56             : 
      57           3 : class b3dpoint : public CppUnit::TestFixture
      58             : {
      59             : public:
      60             :     // initialise your test code values here.
      61           1 :     void setUp()
      62             :     {
      63           1 :     }
      64             : 
      65           1 :     void tearDown()
      66             :     {
      67           1 :     }
      68             : 
      69             :     // insert your test code here.
      70             :     // this is only demonstration code
      71           1 :     void EmptyMethod()
      72             :     {
      73             :           // CPPUNIT_ASSERT_MESSAGE("a message", 1 == 1);
      74           1 :     }
      75             : 
      76             :     // Change the following lines only, if you add, remove or rename
      77             :     // member functions of the current class,
      78             :     // because these macros are need by auto register mechanism.
      79             : 
      80           2 :     CPPUNIT_TEST_SUITE(b3dpoint);
      81           1 :     CPPUNIT_TEST(EmptyMethod);
      82           2 :     CPPUNIT_TEST_SUITE_END();
      83             : }; // class b3dpoint
      84             : 
      85             : 
      86           3 : class b3drange : public CppUnit::TestFixture
      87             : {
      88             : public:
      89             :     // initialise your test code values here.
      90           1 :     void setUp()
      91             :     {
      92           1 :     }
      93             : 
      94           1 :     void tearDown()
      95             :     {
      96           1 :     }
      97             : 
      98             :     // insert your test code here.
      99           1 :     void EmptyMethod()
     100             :     {
     101           1 :     }
     102             : 
     103             :     // Change the following lines only, if you add, remove or rename
     104             :     // member functions of the current class,
     105             :     // because these macros are need by auto register mechanism.
     106             : 
     107           2 :     CPPUNIT_TEST_SUITE(b3drange);
     108           1 :     CPPUNIT_TEST(EmptyMethod);
     109           2 :     CPPUNIT_TEST_SUITE_END();
     110             : }; // class b3drange
     111             : 
     112             : 
     113           3 : class b3dtuple : public CppUnit::TestFixture
     114             : {
     115             : public:
     116             :     // initialise your test code values here.
     117           1 :     void setUp()
     118             :     {
     119           1 :     }
     120             : 
     121           1 :     void tearDown()
     122             :     {
     123           1 :     }
     124             : 
     125             :     // insert your test code here.
     126             :     // this is only demonstration code
     127           1 :     void EmptyMethod()
     128             :     {
     129             :           // CPPUNIT_ASSERT_MESSAGE("a message", 1 == 1);
     130           1 :     }
     131             : 
     132             :     // Change the following lines only, if you add, remove or rename
     133             :     // member functions of the current class,
     134             :     // because these macros are need by auto register mechanism.
     135             : 
     136           2 :     CPPUNIT_TEST_SUITE(b3dtuple);
     137           1 :     CPPUNIT_TEST(EmptyMethod);
     138           2 :     CPPUNIT_TEST_SUITE_END();
     139             : }; // class b3dtuple
     140             : 
     141             : 
     142           3 : class b3dvector : public CppUnit::TestFixture
     143             : {
     144             : public:
     145             :     // initialise your test code values here.
     146           1 :     void setUp()
     147             :     {
     148           1 :     }
     149             : 
     150           1 :     void tearDown()
     151             :     {
     152           1 :     }
     153             : 
     154             :     // insert your test code here.
     155           1 :     void EmptyMethod()
     156             :     {
     157           1 :     }
     158             : 
     159             :     // Change the following lines only, if you add, remove or rename
     160             :     // member functions of the current class,
     161             :     // because these macros are need by auto register mechanism.
     162             : 
     163           2 :     CPPUNIT_TEST_SUITE(b3dvector);
     164           1 :     CPPUNIT_TEST(EmptyMethod);
     165           2 :     CPPUNIT_TEST_SUITE_END();
     166             : }; // class b3dvector
     167             : 
     168             : // -----------------------------------------------------------------------------
     169           1 : CPPUNIT_TEST_SUITE_REGISTRATION(basegfx3d::b3dhommatrix);
     170           1 : CPPUNIT_TEST_SUITE_REGISTRATION(basegfx3d::b3dpoint);
     171           1 : CPPUNIT_TEST_SUITE_REGISTRATION(basegfx3d::b3drange);
     172           1 : CPPUNIT_TEST_SUITE_REGISTRATION(basegfx3d::b3dtuple);
     173           1 : CPPUNIT_TEST_SUITE_REGISTRATION(basegfx3d::b3dvector);
     174           3 : } // namespace basegfx3d
     175             : 
     176             : 
     177             : // -----------------------------------------------------------------------------
     178             : 
     179             : // this macro creates an empty function, which will called by the RegisterAllFunctions()
     180             : // to let the user the possibility to also register some functions by hand.
     181             : // NOADDITIONAL;
     182             : 
     183             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10