Skip to content

Commit

Permalink
#276: tests: remove duplicated code
Browse files Browse the repository at this point in the history
  • Loading branch information
lifflander committed Jun 13, 2023
1 parent 32a1bd2 commit 600105e
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions tests/unit/collection/test_collection_group.extended.cc
Original file line number Diff line number Diff line change
Expand Up @@ -129,26 +129,12 @@ TEST_F(TestCollectionGroup, test_collection_group_2) {

auto const numElems = elem_counter;

// raw msg pointer case
// msg constructed on the fly case
runBcastTestHelper([proxy, my_node]{
proxy.broadcastCollective<&ColA::memberHandler>(my_node);
});

EXPECT_EQ(elem_counter, 0);

// smart msg pointer case
runBcastTestHelper([proxy, my_node]{
proxy.broadcastCollective<&ColA::memberHandler>(my_node);
});

EXPECT_EQ(elem_counter, -numElems);

// msg constructed on the fly case
runBcastTestHelper([proxy, my_node] {
proxy.broadcastCollective<&ColA::memberHandler>(my_node);
});

EXPECT_EQ(elem_counter, -2 * numElems);
}

TEST_F(TestCollectionGroup, test_collection_group_3) {
Expand Down

0 comments on commit 600105e

Please sign in to comment.