Skip to content

Commit

Permalink
#276: tests: remove dead code from test during refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
lifflander committed Jun 13, 2023
1 parent cee09f2 commit 60896c3
Showing 1 changed file with 1 addition and 22 deletions.
23 changes: 1 addition & 22 deletions tests/unit/pipe/test_callback_send_collection.extended.cc
Original file line number Diff line number Diff line change
Expand Up @@ -55,34 +55,13 @@ namespace vt { namespace tests { namespace unit { namespace send {
using namespace vt;
using namespace vt::tests::unit;

struct CallbackMsg : vt::Message {
CallbackMsg() = default;
explicit CallbackMsg(Callback<> in_cb) : cb_(in_cb) { }

Callback<> cb_;
};

struct DataMsg : vt::Message {
DataMsg() = default;
DataMsg(int in_a, int in_b, int in_c) : a(in_a), b(in_b), c(in_c) { }
int a = 0, b = 0, c = 0;
};

struct CallbackDataMsg : vt::Message {
CallbackDataMsg() = default;
explicit CallbackDataMsg(Callback<DataMsg> in_cb) : cb_(in_cb) { }

Callback<DataMsg> cb_;
};

struct TestCallbackSendCollection : TestParallelHarness {
static void testHandler(CallbackDataMsg* msg) {
msg->cb_.send(8,9,10);
}
static void testHandlerEmpty(CallbackMsg* msg) {
msg->cb_.send();
}
};
using TestCallbackSendCollection = TestParallelHarness;

struct TestCol : vt::Collection<TestCol, vt::Index1D> {
TestCol() = default;
Expand Down

0 comments on commit 60896c3

Please sign in to comment.