LCOV - code coverage report
Current view: top level - source/tests - TestMatrixFactory.h (source / functions) Hit Total Coverage
Test: LibForBES Unit Tests Lines: 13 13 100.0 %
Date: 2016-04-18 Functions: 6 6 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /*
       2             :  * File:   TestMatrixFactory.h
       3             :  * Author: Pantelis Sopasakis
       4             :  *
       5             :  * Created on Jul 13, 2015, 1:03:10 PM
       6             :  */
       7             : 
       8             : #ifndef TESTMATRIXFACTORY_H
       9             : #define TESTMATRIXFACTORY_H
      10             : 
      11             : #include <cppunit/extensions/HelperMacros.h>
      12             : 
      13             : #define FORBES_TEST_UTILS
      14             : #include "ForBES.h"
      15             : 
      16             : class TestMatrixFactory : public CPPUNIT_NS::TestFixture {
      17           2 :     CPPUNIT_TEST_SUITE(TestMatrixFactory);
      18             : 
      19           1 :     CPPUNIT_TEST(testMakeIdentity);
      20           1 :     CPPUNIT_TEST(testMakeRandomMatrix);
      21           1 :     CPPUNIT_TEST(testMakeSparse);
      22           1 :     CPPUNIT_TEST(testReadSparseFromFile);
      23           1 :     CPPUNIT_TEST(testSparse);
      24           1 :     CPPUNIT_TEST(testSparse2);
      25           1 :     CPPUNIT_TEST(testShallow1);
      26           1 :     CPPUNIT_TEST(testShallow2);
      27           1 :     CPPUNIT_TEST(testShallow3);
      28           1 :     CPPUNIT_TEST(testShallow4);
      29           1 :     CPPUNIT_TEST(testFailSafe);
      30             :     
      31           5 :     CPPUNIT_TEST_SUITE_END();
      32             : 
      33             : public:
      34             :     TestMatrixFactory();
      35             :     virtual ~TestMatrixFactory();
      36             :     void setUp();
      37             :     void tearDown();
      38             : 
      39             : private:
      40             :     void testMakeIdentity();
      41             :     void testMakeRandomMatrix();
      42             :     void testMakeSparse();
      43             :     void testReadSparseFromFile();
      44             :     void testSparse();
      45             :     void testSparse2();
      46             :     void testShallow1();
      47             :     void testShallow2();
      48             :     void testShallow3();
      49             :     void testShallow4();
      50             :     void testFailSafe();
      51             : 
      52             : };
      53             : 
      54             : #endif  /* TESTMATRIXFACTORY_H */

Generated by: LCOV version 1.10