LCOV - code coverage report
Current view: top level - test - MakePatternTest.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__MAKE_PATTERN_TEST_H_
       2             : #define DASH__TEST__MAKE_PATTERN_TEST_H_
       3             : 
       4             : #include <gtest/gtest.h>
       5             : #include <libdash.h>
       6             : 
       7             : /**
       8             :  * Test fixture for function dash::make_pattern.
       9             :  */
      10             : class MakePatternTest : public ::testing::Test {
      11             : protected:
      12             :   size_t _dash_id;
      13             :   size_t _dash_size;
      14             : 
      15           8 :   MakePatternTest() 
      16             :   : _dash_id(0),
      17           8 :     _dash_size(0) {
      18             :     LOG_MESSAGE(">>> Test suite: MakePatternTest");
      19           8 :   }
      20             : 
      21           8 :   virtual ~MakePatternTest() {
      22             :     LOG_MESSAGE("<<< Closing test suite: MakePatternTest");
      23           8 :   }
      24             : 
      25           8 :   virtual void SetUp() {
      26           8 :     _dash_id   = dash::myid();
      27           8 :     _dash_size = dash::size();
      28             :     LOG_MESSAGE("===> Running test case with %d units ...",
      29             :                 _dash_size);
      30           8 :   }
      31             : 
      32           8 :   virtual void TearDown() {
      33           8 :     dash::Team::All().barrier();
      34             :     LOG_MESSAGE("<=== Finished test case with %d units",
      35             :                 _dash_size);
      36           8 :   }
      37             : };
      38             : 
      39             : #endif // DASH__TEST__MAKE_PATTERN_TEST_H_

Generated by: LCOV version 1.12