We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d1a5e60 commit ed42a58Copy full SHA for ed42a58
Framework/Core/test/test_MessageSet.cxx
@@ -250,6 +250,14 @@ TEST_CASE("GetHeaderPayloadOperators")
250
auto& pl1 = msgSet.messages | get_payload{1, 0};
251
REQUIRE(pl1.get() != nullptr);
252
REQUIRE(pl1->GetSize() == 200);
253
+
254
+ // Validate pipe operators match old API
255
+ for (size_t i = 0; i < 2; ++i) {
256
+ REQUIRE(&(msgSet.messages | get_header{i}) == &msgSet.header(i));
257
+ REQUIRE(&(msgSet.messages | get_payload{i, 0}) == &msgSet.payload(i, 0));
258
+ }
259
+ REQUIRE((msgSet.messages | count_parts{}) == msgSet.messageMap.size());
260
+ REQUIRE((msgSet.messages | count_payloads{}) == msgSet.pairMap.size());
261
}
262
263
TEST_CASE("GetHeaderPayloadMultiPayload")
0 commit comments