-
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 #449 prepare posh runtime for mock #840
Iox #449 prepare posh runtime for mock #840
Conversation
@@ -0,0 +1,574 @@ | |||
// Copyright (c) 2019 - 2021 by Robert Bosch GmbH. All rights reserved. |
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 is a copy of posh_runtime.cpp
. Unfortunately github detects it as new file. The history is preserved and the file should be viewed with an external diff tool
@@ -0,0 +1,122 @@ | |||
// Copyright (c) 2019 by Robert Bosch GmbH. All rights reserved. |
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 is a copy of posh_runtime.hpp. Unfortunately github detects it as new file. The history is preserved and the file should be viewed with an external diff tool
Codecov Report
@@ Coverage Diff @@
## master #840 +/- ##
==========================================
- Coverage 75.16% 75.06% -0.10%
==========================================
Files 330 332 +2
Lines 11856 11863 +7
Branches 2001 2001
==========================================
- Hits 8911 8905 -6
- Misses 2178 2190 +12
- Partials 767 768 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
|
iceoryx_posh/include/iceoryx_posh/internal/roudi/memory/mempool_collection_memory_block.hpp
Outdated
Show resolved
Hide resolved
iceoryx_posh/include/iceoryx_posh/internal/roudi/memory/mempool_collection_memory_block.hpp
Outdated
Show resolved
Hide resolved
iceoryx_posh/testing/roudi_environment/runtime_test_interface.cpp
Outdated
Show resolved
Hide resolved
f36499b
to
726a789
Compare
Signed-off-by: Mathias Kraus <[email protected]>
Signed-off-by: Mathias Kraus <[email protected]>
…doc option Signed-off-by: Mathias Kraus <[email protected]>
Signed-off-by: Mathias Kraus <[email protected]>
Signed-off-by: Mathias Kraus <[email protected]>
Signed-off-by: Mathias Kraus <[email protected]>
4eea603
to
e521ae3
Compare
doc/aspice_swe3_4/example/iceoryx_component/include/example_module/example_derived_class.hpp
Show resolved
Hide resolved
ExampleBaseClass() = default; | ||
|
||
virtual ~ExampleBaseClass() = default; |
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.
noexcept
missing for both methods
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 would suggest to keep it this way. We had issues with some compiler adding noexcept
to defaulted ctor/dtor
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 this was solved and we use everywhere else.
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.
AFAIK we had to remove it at some places due to msvc
@elfenpiff is my knowledge outdated?
iceoryx_posh/include/iceoryx_posh/internal/runtime/posh_runtime_impl.hpp
Outdated
Show resolved
Hide resolved
iceoryx_posh/include/iceoryx_posh/internal/runtime/posh_runtime_impl.hpp
Show resolved
Hide resolved
iceoryx_posh/include/iceoryx_posh/internal/runtime/posh_runtime_impl.hpp
Outdated
Show resolved
Hide resolved
Signed-off-by: Mathias Kraus <[email protected]>
Signed-off-by: Mathias Kraus <[email protected]>
Signed-off-by: Mathias Kraus <[email protected]>
Signed-off-by: Mathias Kraus <[email protected]>
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 prepares the
PoshRuntime
for mocking.PoshRuntime
is therefore split into two classes with a mostly abstractPoshRuntime
and a the implementation inPoshRuntimeImpl
. This makes it quite trivial to create aPoshRuntimeMock
. Unfortunately it is quite cumbersome to mock methods with thenoexcept
specifier with gmock 1.8 and I'd like to switch to gmock 1.10. Since it can take some time till the decision is reached, the preparation work can already be reviewed and merged.Checklist for the PR Reviewer
Post-review Checklist for the PR Author
References