LCOV - code coverage report
Current view: top level - basegfx/test - basegfx3d.cxx (source / functions) Hit Total Coverage
Test: commit 10e77ab3ff6f4314137acd6e2702a6e5c1ce1fae Lines: 56 56 100.0 %
Date: 2014-11-03 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           6 : class b3dhommatrix : public CppUnit::TestFixture
      29             : {
      30             : public:
      31             :     // initialise your test code values here.
      32           2 :     void setUp() SAL_OVERRIDE
      33             :     {
      34           2 :     }
      35             : 
      36           2 :     void tearDown() SAL_OVERRIDE
      37             :     {
      38           2 :     }
      39             : 
      40             :     // insert your test code here.
      41             :     // this is only demonstration code
      42           2 :     void EmptyMethod()
      43             :     {
      44             :           // CPPUNIT_ASSERT_MESSAGE("a message", 1 == 1);
      45           2 :     }
      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           4 :     CPPUNIT_TEST_SUITE(b3dhommatrix);
      52           2 :     CPPUNIT_TEST(EmptyMethod);
      53           4 :     CPPUNIT_TEST_SUITE_END();
      54             : }; // class b3dhommatrix
      55             : 
      56           6 : class b3dpoint : public CppUnit::TestFixture
      57             : {
      58             : public:
      59             :     // initialise your test code values here.
      60           2 :     void setUp() SAL_OVERRIDE
      61             :     {
      62           2 :     }
      63             : 
      64           2 :     void tearDown() SAL_OVERRIDE
      65             :     {
      66           2 :     }
      67             : 
      68             :     // insert your test code here.
      69             :     // this is only demonstration code
      70           2 :     void EmptyMethod()
      71             :     {
      72             :           // CPPUNIT_ASSERT_MESSAGE("a message", 1 == 1);
      73           2 :     }
      74             : 
      75             :     // Change the following lines only, if you add, remove or rename
      76             :     // member functions of the current class,
      77             :     // because these macros are need by auto register mechanism.
      78             : 
      79           4 :     CPPUNIT_TEST_SUITE(b3dpoint);
      80           2 :     CPPUNIT_TEST(EmptyMethod);
      81           4 :     CPPUNIT_TEST_SUITE_END();
      82             : }; // class b3dpoint
      83             : 
      84           6 : class b3drange : public CppUnit::TestFixture
      85             : {
      86             : public:
      87             :     // initialise your test code values here.
      88           2 :     void setUp() SAL_OVERRIDE
      89             :     {
      90           2 :     }
      91             : 
      92           2 :     void tearDown() SAL_OVERRIDE
      93             :     {
      94           2 :     }
      95             : 
      96             :     // insert your test code here.
      97           2 :     void EmptyMethod()
      98             :     {
      99           2 :     }
     100             : 
     101             :     // Change the following lines only, if you add, remove or rename
     102             :     // member functions of the current class,
     103             :     // because these macros are need by auto register mechanism.
     104             : 
     105           4 :     CPPUNIT_TEST_SUITE(b3drange);
     106           2 :     CPPUNIT_TEST(EmptyMethod);
     107           4 :     CPPUNIT_TEST_SUITE_END();
     108             : }; // class b3drange
     109             : 
     110           6 : class b3dtuple : public CppUnit::TestFixture
     111             : {
     112             : public:
     113             :     // initialise your test code values here.
     114           2 :     void setUp() SAL_OVERRIDE
     115             :     {
     116           2 :     }
     117             : 
     118           2 :     void tearDown() SAL_OVERRIDE
     119             :     {
     120           2 :     }
     121             : 
     122             :     // insert your test code here.
     123             :     // this is only demonstration code
     124           2 :     void EmptyMethod()
     125             :     {
     126             :           // CPPUNIT_ASSERT_MESSAGE("a message", 1 == 1);
     127           2 :     }
     128             : 
     129             :     // Change the following lines only, if you add, remove or rename
     130             :     // member functions of the current class,
     131             :     // because these macros are need by auto register mechanism.
     132             : 
     133           4 :     CPPUNIT_TEST_SUITE(b3dtuple);
     134           2 :     CPPUNIT_TEST(EmptyMethod);
     135           4 :     CPPUNIT_TEST_SUITE_END();
     136             : }; // class b3dtuple
     137             : 
     138           6 : class b3dvector : public CppUnit::TestFixture
     139             : {
     140             : public:
     141             :     // initialise your test code values here.
     142           2 :     void setUp() SAL_OVERRIDE
     143             :     {
     144           2 :     }
     145             : 
     146           2 :     void tearDown() SAL_OVERRIDE
     147             :     {
     148           2 :     }
     149             : 
     150             :     // insert your test code here.
     151           2 :     void EmptyMethod()
     152             :     {
     153           2 :     }
     154             : 
     155             :     // Change the following lines only, if you add, remove or rename
     156             :     // member functions of the current class,
     157             :     // because these macros are need by auto register mechanism.
     158             : 
     159           4 :     CPPUNIT_TEST_SUITE(b3dvector);
     160           2 :     CPPUNIT_TEST(EmptyMethod);
     161           4 :     CPPUNIT_TEST_SUITE_END();
     162             : }; // class b3dvector
     163             : 
     164           2 : CPPUNIT_TEST_SUITE_REGISTRATION(basegfx3d::b3dhommatrix);
     165           2 : CPPUNIT_TEST_SUITE_REGISTRATION(basegfx3d::b3dpoint);
     166           2 : CPPUNIT_TEST_SUITE_REGISTRATION(basegfx3d::b3drange);
     167           2 : CPPUNIT_TEST_SUITE_REGISTRATION(basegfx3d::b3dtuple);
     168           2 : CPPUNIT_TEST_SUITE_REGISTRATION(basegfx3d::b3dvector);
     169           6 : } // namespace basegfx3d
     170             : 
     171             : // this macro creates an empty function, which will called by the RegisterAllFunctions()
     172             : // to let the user the possibility to also register some functions by hand.
     173             : // NOADDITIONAL;
     174             : 
     175             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10