Skip to content
This repository has been archived by the owner on Dec 26, 2022. It is now read-only.

Implement ta_get_transaction_msg test case #42

Merged
merged 2 commits into from
Jan 4, 2019

Conversation

wusyong
Copy link

@wusyong wusyong commented Jan 4, 2019

  • Fix response/ta_get_transaction_msg type
  • Implement ta_get_transaction_msg test

This is last API need to mock atm. Close #18

@@ -3,20 +3,17 @@
ta_get_transaction_msg_res_t* ta_get_transaction_msg_res_new() {
ta_get_transaction_msg_res_t* res = (ta_get_transaction_msg_res_t*)malloc(
sizeof(ta_get_transaction_msg_res_t));
if (res) {
res->msg = NULL;
if (res != NULL) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not return res instead?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the motivation of having ta_get_transaction_msg_res_new?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, it should just return res. The motivation is all request/response type can all be the same format.

@jserv jserv merged commit 7f068be into DLTcollab:master Jan 4, 2019
@wusyong wusyong deleted the fix_msg_type branch January 18, 2019 03:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants