Skip to content
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

Add additional tests for the TypeAdapt conversions #16

Conversation

clalancette
Copy link
Collaborator

These tests ensure that type adaptation doesn't unnecessarily happen. While writing these tests I found a bug where we weren't skipping the type adaptation with the const ref publish() method, which this also fixes.

@clalancette
Copy link
Collaborator Author

Hold off on this PR for now. With this in place, image_tools no longer builds. Looking into why.

@gonzodepedro gonzodepedro merged commit 7996d43 into gonzodepedro:gonzo/non-transform-intra-process-working-tests Dec 17, 2021
clalancette added a commit that referenced this pull request Dec 17, 2021
* Implement skipping ROS conversion when using the const ref publish.

Signed-off-by: Chris Lalancette <[email protected]>

* Add tests to ensure that type adaptation doesn't unnecessarily convert.

Signed-off-by: Chris Lalancette <[email protected]>
gonzodepedro added a commit that referenced this pull request Dec 20, 2021
* Tests fix

Signed-off-by: Gonzalo de Pedro <[email protected]>

* Tests fix

Signed-off-by: Gonzalo de Pedro <[email protected]>

* Fixed some tests

Signed-off-by: Gonzalo de Pedro <[email protected]>

* Fix test_intra_process_manager test.

Signed-off-by: Chris Lalancette <[email protected]>

* Style fixups.

Signed-off-by: Chris Lalancette <[email protected]>

* One more small fix.

Signed-off-by: Chris Lalancette <[email protected]>

* Fixed issues with allocators

Signed-off-by: Gonzalo de Pedro <[email protected]>

* Small fix for lint_cmake.

Signed-off-by: Chris Lalancette <[email protected]>

Co-authored-by: Chris Lalancette <[email protected]>

Add additional tests for the TypeAdapt conversions (#16)

* Implement skipping ROS conversion when using the const ref publish.

Signed-off-by: Chris Lalancette <[email protected]>

* Add tests to ensure that type adaptation doesn't unnecessarily convert.

Signed-off-by: Chris Lalancette <[email protected]>

fixed allocator allocate usage on intra process manager (#17)

Signed-off-by: Gonzalo de Pedro <[email protected]>

Removed TestPublisher.conversion_exception_is_passed_up test

Signed-off-by: Gonzalo de Pedro <[email protected]>
clalancette pushed a commit that referenced this pull request Dec 20, 2021
* Tests fix

Signed-off-by: Gonzalo de Pedro <[email protected]>

* Tests fix

Signed-off-by: Gonzalo de Pedro <[email protected]>

* Fixed some tests

Signed-off-by: Gonzalo de Pedro <[email protected]>

* Fix test_intra_process_manager test.

Signed-off-by: Chris Lalancette <[email protected]>

* Style fixups.

Signed-off-by: Chris Lalancette <[email protected]>

* One more small fix.

Signed-off-by: Chris Lalancette <[email protected]>

* Fixed issues with allocators

Signed-off-by: Gonzalo de Pedro <[email protected]>

* Small fix for lint_cmake.

Signed-off-by: Chris Lalancette <[email protected]>

Co-authored-by: Chris Lalancette <[email protected]>

Add additional tests for the TypeAdapt conversions (#16)

* Implement skipping ROS conversion when using the const ref publish.

Signed-off-by: Chris Lalancette <[email protected]>

* Add tests to ensure that type adaptation doesn't unnecessarily convert.

Signed-off-by: Chris Lalancette <[email protected]>

fixed allocator allocate usage on intra process manager (#17)

Signed-off-by: Gonzalo de Pedro <[email protected]>

Removed TestPublisher.conversion_exception_is_passed_up test

Signed-off-by: Gonzalo de Pedro <[email protected]>
clalancette pushed a commit that referenced this pull request Jan 4, 2022
* Tests fix

Signed-off-by: Gonzalo de Pedro <[email protected]>

* Tests fix

Signed-off-by: Gonzalo de Pedro <[email protected]>

* Fixed some tests

Signed-off-by: Gonzalo de Pedro <[email protected]>

* Fix test_intra_process_manager test.

Signed-off-by: Chris Lalancette <[email protected]>

* Style fixups.

Signed-off-by: Chris Lalancette <[email protected]>

* One more small fix.

Signed-off-by: Chris Lalancette <[email protected]>

* Fixed issues with allocators

Signed-off-by: Gonzalo de Pedro <[email protected]>

* Small fix for lint_cmake.

Signed-off-by: Chris Lalancette <[email protected]>

Co-authored-by: Chris Lalancette <[email protected]>

Add additional tests for the TypeAdapt conversions (#16)

* Implement skipping ROS conversion when using the const ref publish.

Signed-off-by: Chris Lalancette <[email protected]>

* Add tests to ensure that type adaptation doesn't unnecessarily convert.

Signed-off-by: Chris Lalancette <[email protected]>

fixed allocator allocate usage on intra process manager (#17)

Signed-off-by: Gonzalo de Pedro <[email protected]>

Removed TestPublisher.conversion_exception_is_passed_up test

Signed-off-by: Gonzalo de Pedro <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants