Skip to content

Commit

Permalink
#1051: objgroup: Add unittest for Objgroup proxy invoke
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobDomagala committed Nov 4, 2020
1 parent db7fe8b commit a274bae
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/unit/objgroup/test_objgroup.cc
Original file line number Diff line number Diff line change
Expand Up @@ -271,4 +271,13 @@ TEST_F(TestObjGroup, test_proxy_reduce) {
}
}

TEST_F(TestObjGroup, test_proxy_invoke) {
auto const& this_node = theContext()->getNode();

auto proxy = vt::theObjGroup()->makeCollective<MyObjA>();
proxy[this_node].invoke<MyMsg, &MyObjA::handler>();

EXPECT_EQ(proxy.get()->recv_, -1);
}

}}} // end namespace vt::tests::unit

0 comments on commit a274bae

Please sign in to comment.