-
Notifications
You must be signed in to change notification settings - Fork 409
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 #842 cleanup memory provider and memory block #843
Iox #842 cleanup memory provider and memory block #843
Conversation
…ion of` Signed-off-by: Mathias Kraus <[email protected]>
…irtual Signed-off-by: Mathias Kraus <[email protected]>
…lable parameter Signed-off-by: Mathias Kraus <[email protected]>
Signed-off-by: Mathias Kraus <[email protected]>
Codecov Report
@@ Coverage Diff @@
## master #843 +/- ##
==========================================
+ Coverage 75.01% 75.05% +0.04%
==========================================
Files 328 332 +4
Lines 11705 11864 +159
Branches 1965 2001 +36
==========================================
+ Hits 8780 8905 +125
- Misses 2165 2191 +26
- Partials 760 768 +8
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Signed-off-by: Mathias Kraus <[email protected]>
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 double check all the copyright headers, otherwise LGTM.
In general, should there be death tests added for methods that use not_null
?
iceoryx_posh/include/iceoryx_posh/internal/roudi/memory/mempool_collection_memory_block.hpp
Show resolved
Hide resolved
...ryx_posh/include/iceoryx_posh/internal/roudi/memory/mempool_segment_manager_memory_block.hpp
Show resolved
Hide resolved
iceoryx_posh/include/iceoryx_posh/internal/roudi/memory/port_pool_memory_block.hpp
Show resolved
Hide resolved
iceoryx_posh/include/iceoryx_posh/roudi/memory/memory_block.hpp
Outdated
Show resolved
Hide resolved
Regarding the death test for In general I also wouldn't do death tests for parameter with int foo (int& i) {
return i;
}
int bar(int* i) {
return foo(*i);
}
int main() {
return bar(nullptr); // crash will happen on `return i;` not `return foo(*i);`
} As long as we already tested that |
Signed-off-by: Mathias Kraus <[email protected]>
iceoryx_posh/include/iceoryx_posh/roudi/memory/memory_block.hpp
Outdated
Show resolved
Hide resolved
Signed-off-by: Mathias Kraus <[email protected]>
...ryx_posh/include/iceoryx_posh/internal/roudi/memory/mempool_segment_manager_memory_block.hpp
Outdated
Show resolved
Hide resolved
Signed-off-by: Mathias Kraus <[email protected]>
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
This fixes some of the requests from #840
Checklist for the PR Reviewer
Post-review Checklist for the PR Author
References