-
Notifications
You must be signed in to change notification settings - Fork 391
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 create smart chunk #1081
Iox #27 create smart chunk #1081
Conversation
Signed-off-by: Christian Eltzschig <me@elchris.org>
Codecov Report
@@ Coverage Diff @@
## master #1081 +/- ##
==========================================
+ Coverage 76.10% 76.96% +0.86%
==========================================
Files 344 346 +2
Lines 13030 13172 +142
Branches 1869 1885 +16
==========================================
+ Hits 9916 10138 +222
+ Misses 2496 2417 -79
+ Partials 618 617 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
|
iceoryx_posh/test/input/popo_toml_gateway_config.tomlpopo_toml_gateway_config.toml
Outdated
Show resolved
Hide resolved
iceoryx_posh/include/iceoryx_posh/internal/popo/smart_chunk.hpp
Outdated
Show resolved
Hide resolved
Signed-off-by: Christian Eltzschig <me@elchris.org>
Signed-off-by: Christian Eltzschig <me@elchris.org>
Signed-off-by: Christian Eltzschig <me@elchris.org>
Signed-off-by: Christian Eltzschig <me@elchris.org>
Signed-off-by: Christian Eltzschig <me@elchris.org>
8adf2b1
to
128ec82
Compare
Signed-off-by: Christian Eltzschig <me@elchris.org>
Signed-off-by: Christian Eltzschig <me@elchris.org>
Signed-off-by: Christian Eltzschig <me@elchris.org>
Signed-off-by: Christian Eltzschig <christian.eltzschig@apex.ai>
Signed-off-by: Christian Eltzschig <christian.eltzschig@apex.ai>
47d16d4
to
354d384
Compare
iceoryx_posh/include/iceoryx_posh/internal/popo/smart_chunk.inl
Outdated
Show resolved
Hide resolved
template <typename T1> | ||
void setUnderlyingData(const T1& sut, const uint32_t dataValue, const uint64_t headerValue) | ||
{ | ||
const_cast<uint32_t&>(sut.chunk.sample()->val) = dataValue; |
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.
And there they are, the sins of the past. I should have used data
instead of sample
for the chunk mock
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.
This could be easy fixable. Should I rename it from sample
to data
in a separate PR?
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.
If you like you can do. I'm not sure if it affects open PRs though.
|
||
iox::cxx::optional<iox::Error> detectedError; | ||
auto errorHandlerGuard = iox::ErrorHandler::setTemporaryErrorHandler( | ||
[&detectedError](const iox::Error error, const std::function<void()>&, const iox::ErrorLevel errorLevel) { |
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.
Small nitpick. I guess this could be simplified to [&detectedError](const auto error, const auto&, const auto errorLevel) {
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.
Was it intentional to use auto only for ErrorLevel
?
iceoryx_posh/include/iceoryx_posh/internal/popo/smart_chunk.inl
Outdated
Show resolved
Hide resolved
…n docu, minor code refactoring Signed-off-by: Christian Eltzschig <christian.eltzschig@apex.ai>
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 add unique ids to the tests.
Signed-off-by: Christian Eltzschig <me@elchris.org>
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
Creates
SmartChunk
,Request
andResponse
according to: https://github.com/eclipse-iceoryx/iceoryx/blob/master/doc/design/request_response_communication.mdIn the unit tests only the sample is tested since the Request/ResponseInterface are not yet available. When they become available the typed unit tests will be extended to support their types as well.
Checklist for the PR Reviewer
Post-review Checklist for the PR Author
References
SmartChunk
,Request
andResponse
from Request/Response communication with iceoryx #27