LCOV - code coverage report
Current view: top level - test - ArrayTest.h (source / functions) Hit Total Coverage
Test: coverage.info.cleaned Lines: 13 13 100.0 %
Date: 2016-06-29 12:30:40 Functions: 4 5 80.0 %

          Line data    Source code
       1             : #ifndef DASH__TEST__ARRAY_TEST_H_
       2             : #define DASH__TEST__ARRAY_TEST_H_
       3             : 
       4             : #include <gtest/gtest.h>
       5             : #include <libdash.h>
       6             : 
       7             : #include "TestBase.h"
       8             : 
       9             : /**
      10             :  * Test fixture for class dash::Array
      11             :  */
      12             : class ArrayTest : public ::testing::Test {
      13             : protected:
      14             :   size_t _dash_id;
      15             :   size_t _dash_size;
      16             :   int _num_elem;
      17             : 
      18          16 :   ArrayTest()
      19             :   : _dash_id(0),
      20             :     _dash_size(0),
      21          16 :     _num_elem(0) {
      22             :     LOG_MESSAGE(">>> Test suite: ArrayTest");
      23          16 :   }
      24             : 
      25          16 :   virtual ~ArrayTest() {
      26             :     LOG_MESSAGE("<<< Closing test suite: ArrayTest");
      27          16 :   }
      28             : 
      29          16 :   virtual void SetUp() {
      30          16 :     _dash_id   = dash::myid();
      31          16 :     _dash_size = dash::size();
      32          16 :     _num_elem  = 100;
      33             :     LOG_MESSAGE("===> Running test case with %d units ...",
      34             :                 _dash_size);
      35          16 :   }
      36             : 
      37          16 :   virtual void TearDown() {
      38          16 :     dash::Team::All().barrier();
      39             :     LOG_MESSAGE("<=== Finished test case with %d units",
      40             :                 _dash_size);
      41          16 :   }
      42             : };
      43             : 
      44             : #endif // DASH__TEST__ARRAY_TEST_H_

Generated by: LCOV version 1.12