-
Notifications
You must be signed in to change notification settings - Fork 166
unit-test-transport #110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unit-test-transport #110
Conversation
| } | ||
|
|
||
| TEST(clientRemotingProcessorS, getConsumerRunningInfo) { | ||
| MockMQClientFactory *factory = new MockMQClientFactory("testClientId", 4, 3000, 4000, "a"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
factory and info not deleted, please check the other TEST for not free the object, or use shared_ptr. also i think you can use local object, no need with new
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mock::AllowLeak(factory); Be equal to deleted
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but there are many point without Mock::AllowLeak
| using Json::FastWriter; | ||
| using Json::Value; | ||
|
|
||
| using rocketmq::ClientRemotingProcessor; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for use so many class under namespace rocketmq, i think you can use "using namespace rocketmq" replace of "using rocketmq::*"
| using testing::Return; | ||
|
|
||
| TEST(MQDecoderTest, messageProperties2String) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why delete TEST(MQDecoderTest, messageProperties2String)?
unit-test-transport