-
Notifications
You must be signed in to change notification settings - Fork 392
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
iox #27 Sample class Refactoring #871
iox #27 Sample class Refactoring #871
Conversation
Codecov Report
@@ Coverage Diff @@
## master #871 +/- ##
==========================================
- Coverage 75.62% 75.60% -0.03%
==========================================
Files 335 337 +2
Lines 12219 12228 +9
Branches 2037 2037
==========================================
+ Hits 9241 9245 +4
- Misses 2194 2197 +3
- Partials 784 786 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
|
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.
Please replace Closes TBD
with Relates to #27
in order to link this PR to the issue.
Please also add tests for Request
and Response
similar to what is tested in test_popo_sample.cpp
…ss. Made SmartChunk ctors Protected. Removed useless comments
…ithub.com/Indra5196/iceoryx into iox-eclipse-iceoryx#27-sample-refactoring
…hanged TransmissionInterface type in case of Request and Response
/// These requests are transmittable to the iceoryx system. | ||
/// | ||
template <typename T> | ||
class Request : public SmartChunk<RpcInterface<Request<T>>, T, RequestHeader> |
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.
I think once you create a test for this class, this won't compile since there is no RpcInterface
defined anywhere.
Also, at some places you use RcpInterface<T>
which is passed to Base_t
which has a RpcInterface<Request<T>>
.
Could you please create some tests like in test_popo_sample.cpp
but for Request
and Response
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.
oh, I just noticed that there is a rpc_interface.hpp
added in #881. Please add it in this PR
/// @brief Retrieve the request header of the underlying memory chunk loaned to the request. | ||
/// @return The request header of the underlying memory chunk. | ||
/// | ||
RequestHeader& getRequestHeader() noexcept; |
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.
please use cxx::add_const_conditionally_t
similar to what is done with the ChunkHeader
to make this const
in case T
has the const
qualifier
/// @brief Retrieve the response header of the underlying memory chunk loaned to the response. | ||
/// @return The response header of the underlying memory chunk. | ||
/// | ||
ResponseHeader& getResponseHeader() noexcept; |
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.
same here
…Interface<Response<T>> and RpcInterface<Request<T>>
@Indra5196 just want to check the status of this PR. Are you working on the tests or are you waiting for some feedback from me? |
Closed in favor of #1081 |
Pre-Review Checklist for the PR Author
iox-#123-this-is-a-branch
)iox-#123 commit text
)git commit -s
)task-list-completed
)Notes for Reviewer
Checklist for the PR Reviewer
Post-review Checklist for the PR Author
References