Github user echobravopapa commented on a diff in the pull request:
https://github.com/apache/geode-native/pull/48#discussion_r104768254
--- Diff: src/cppcache/test/TcrMessage_unittest.cpp ---
@@ -559,3 +560,66 @@ TEST_F(TcrMessageTest,
testConstructorEXECUTE_FUNCTION) {
"75746546756E6374696F6E0000000301570000",
testMessage);
}
+
+TEST_F(TcrMessageTest, testConstructorEXECUTECQ_MSG_TYPE) {
+ CacheablePtr myCacheablePtr(CacheableString::createDeserializable());
+
+ TcrMessageExecuteCq testMessage("ExecuteCQ", "select * from /somewhere",
+ CqState::RUNNING, false,
+ static_cast<ThinClientBaseDM *>(NULL));
+
+ EXPECT_EQ(TcrMessage::EXECUTECQ_MSG_TYPE, testMessage.getMessageType());
+
+ EXPECT_MESSAGE_EQ(
+
"0000002A0000004000000005FFFFFFFF0000000009004578656375746543510000001800"
+
"73656C656374202A2066726F6D202F736F6D657768657265000000040000000001000000"
+ "010000000000010001",
+ testMessage);
+}
+
+TEST_F(TcrMessageTest,
testConstructorWithGinormousQueryEXECUTECQ_MSG_TYPE) {
--- End diff --
I'm not certain that this query's magnitude qualifies for ginormity...
maybe we just call it test*64KiBQuery* - lest we set the bar low for
ginormous...
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---