-
Notifications
You must be signed in to change notification settings - Fork 585
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
[do not merge] network_utc: Refactor network utc #4163
base: master
Are you sure you want to change the base?
Conversation
Target : [6685d4b2c8369d6ae1a47a7b2320ef00de4946a9] - Code Rule Check Result: |
Target : [6685d4b2c8369d6ae1a47a7b2320ef00de4946a9] - Code Rule Check (C++) OK. |
6685d4b
to
05cc55c
Compare
Target : [05cc55cd55876b76c986231ce2633e481bc08bb4] - Code Rule Check (C++) OK. |
Target : [05cc55cd55876b76c986231ce2633e481bc08bb4] - Code Rule Check Result: |
05cc55c
to
47a67a4
Compare
Target : [47a67a4d4f1eeb7e5980e3434302b8325955c928] - Code Rule Check (C++) OK. |
Target : [47a67a4d4f1eeb7e5980e3434302b8325955c928] - Code Rule Check OK. |
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.
it's easier to understand compared to previous one.
looks good to me
47a67a4
to
8960334
Compare
Target : [8960334e494b4e2162649feb3ed6b87fce78aaa9] - Code Rule Check (C++) OK. |
Target : [8960334e494b4e2162649feb3ed6b87fce78aaa9] - Code Rule Check Result: |
8960334
to
7599e1f
Compare
Target : [7599e1f4ebffb994d146e687f71302d1a85639a1] - Code Rule Check Result: |
Target : [7599e1f4ebffb994d146e687f71302d1a85639a1] - Code Rule Check (C++) OK. |
7599e1f
to
15f66cc
Compare
Target : [15f66cc] - Code Rule Check OK. |
Target : [15f66cc] - Code Rule Check (C++) OK. |
Refactor network utc, with following in context: 1. Remove functions no longer called 2. Remove testcases no longer supported 3. Include testcases for comprehensiveness 4. Improve structure and general understanding of testcases.
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.
Kindly review, thank you.
tc_net_setsockopt_multicast_tcp_nodelay_p(fd); | ||
} | ||
|
||
static void tc_net_setsockopt_n(int fd) |
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.
Every tc should include TC_ASSERT_XX macro. These functions are named tc_<module-name>_<submodule>_p/n
but they don't include the macro. Then, you should use the postfix as _main
.
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.
That's the naming rule we should follow in testcase.
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.
looks good to me.
Target : [15f66cc] - Code Rule Check OK. |
Refactor network utc, with following in context: