LCOV - code coverage report
Current view: top level - test - TeamTest.cc (source / functions) Hit Total Coverage
Test: coverage.info.cleaned Lines: 8 8 100.0 %
Date: 2016-06-29 12:30:40 Functions: 6 6 100.0 %

          Line data    Source code
       1             : #include <libdash.h>
       2             : #include <array>
       3             : #include <sstream>
       4             : 
       5             : #include "TestBase.h"
       6             : #include "TeamTest.h"
       7             : 
       8          20 : TEST_F(TeamTest, Deallocate) {
       9             :   LOG_MESSAGE("Start dealloc test");
      10           4 :   dash::Team & team = dash::Team::All();
      11           8 :   std::stringstream ss;
      12           4 :   ss << team;
      13             :   // Test team deallocation
      14             :   // Allocate array in scope
      15             :   {
      16             :     dash::Array<int> array_local(
      17           4 :       10 * dash::size(),
      18             :       dash::DistributionSpec<1>(dash::BLOCKED),
      19          12 :       team);
      20             :     LOG_MESSAGE("Array allocated, freeing team %s", ss.str().c_str());
      21           4 :     team.free();
      22             : 
      23             :     LOG_MESSAGE("Array going out of scope");
      24             :   }
      25             :   // Array will be deallocated when going out of scope
      26          16 : }
      27             : 

Generated by: LCOV version 1.12