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

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

Generated by: LCOV version 1.12