LCOV - code coverage report
Current view: top level - test - LoadBalancePatternTest.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__LOAD_BALANCE_PATTERN_TEST_H_
       2             : #define DASH__TEST__LOAD_BALANCE_PATTERN_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::LoadBalancePattern
      11             :  */
      12             : class LoadBalancePatternTest : public ::testing::Test {
      13             : protected:
      14             :   size_t _dash_id;
      15             :   size_t _dash_size;
      16             :   int _num_elem;
      17             : 
      18           8 :   LoadBalancePatternTest()
      19             :   : _dash_id(0),
      20           8 :     _dash_size(0) {
      21             :     LOG_MESSAGE(">>> Test suite: LoadBalancePatternTest");
      22           8 :   }
      23             : 
      24           8 :   virtual ~LoadBalancePatternTest() {
      25             :     LOG_MESSAGE("<<< Closing test suite: LoadBalancePatternTest");
      26           8 :   }
      27             : 
      28           8 :   virtual void SetUp() {
      29           8 :     _dash_id   = dash::myid();
      30           8 :     _dash_size = dash::size();
      31             :     LOG_MESSAGE("===> Running test case with %d units ...",
      32             :                 _dash_size);
      33           8 :   }
      34             : 
      35           8 :   virtual void TearDown() {
      36           8 :     dash::Team::All().barrier();
      37             :     LOG_MESSAGE("<=== Finished test case with %d units",
      38             :                 _dash_size);
      39           8 :   }
      40             : };
      41             : 
      42             : #endif // DASH__TEST__LOAD_BALANCE_PATTERN_TEST_H_

Generated by: LCOV version 1.12