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

Generated by: LCOV version 1.12