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

Feature/unit tests/entity base problematic #17

Open
wants to merge 5 commits into
base: feature/unit_tests/entity_base
Choose a base branch
from

Conversation

robomic
Copy link

@robomic robomic commented May 9, 2024

Description

Abstract

This PR contains unit tests for EntityBase, which is a part of traffic_simulator package.
Unit tests contained in this PR are considered problematic and are awaiting fixes or suggestions.

Details

A mock implementation DummyEntity, contained in dummy_entity.hpp, was created to test EntityBase abstract class.
Repetitive functions used to instantiate objects in tests are included in entity_helper_functions.hpp.
All tests are included in test_entity_base.cpp file.

List of tests included in this PR:

  1. getDistanceToRightLaneBound
  2. getDistanceToLaneBound
  3. getDistanceToLeftLaneBound_empty
  4. getDistanceToRightLaneBound_empty
  5. getDistanceToLaneBound_empty
  6. getDistanceToRightLaneBound_many
  7. getDistanceToLaneBound_many
  8. requestSpeedChange_targetSpeedAbsoluteNotContinuous
  9. requestSpeedChange_targetSpeedAbsoluteContinuous
  10. requestSpeedChange_targetSpeedAbsoluteReached
  11. requestSpeedChange_targetSpeedRelativeNotContinuousInvalidTarget
  12. requestSpeedChange_targetSpeedRelativeNotContinuous
  13. requestSpeedChange_targetSpeedRelativeContinuousInvalidTarget
  14. requestSpeedChange_targetSpeedRelativeContinuous
  15. requestSpeedChange_targetSpeedRelativeConstraintNoneReached
  16. requestSpeedChange_targetSpeedRelativeConstraintNone
  17. requestSpeedChange_targetSpeedRelativeConstraintAccelerationTransitionStep
  18. requestSpeedChange_targetSpeedRelativeConstraintTimeContinuous
  19. requestSpeedChange_targetSpeedRelativeReached
  20. requestSpeedChange_targetSpeedRelativeConstraintTimeTransitionStep
  21. requestSpeedChange_targetSpeedRelativeConstraintTimeTransitionNotStepNoTime
  22. requestSpeedChange_targetSpeedAbsoluteConstraintNoneReached
  23. requestSpeedChange_targetSpeedAbsoluteConstraintNone
  24. requestSpeedChange_targetSpeedAbsoluteConstraintAccelerationTransitionStep
  25. requestSpeedChange_targetSpeedAbsoluteConstraintTimeTransitionStep
  26. requestSpeedChange_targetSpeedAbsoluteConstraintTimeTransitionNotStepNoTime
  27. requestSpeedChange_targetSpeedAbsoluteConstraintAccelerationTransitionLinear
  28. requestSpeedChange_targetSpeedAbsoluteConstraintAccelerationTransitionAutoAccelerate
  29. requestSpeedChange_targetSpeedAbsoluteConstraintAccelerationTransitionAutoDecelerate
  30. requestSpeedChange_targetSpeedRelativeConstraintAccelerationTransitionLinear
  31. requestSpeedChange_targetSpeedRelativeConstraintAccelerationTransitionAutoAccelerate
  32. requestSpeedChange_targetSpeedRelativeConstraintAccelerationTransitionAutoDecelerate
  33. requestSpeedChange_targetSpeedAbsoluteConstraintTimeTransitionLinear
  34. requestSpeedChange_targetSpeedAbsoluteConstraintTimeTransitionAuto
  35. requestSpeedChange_targetSpeedRelativeConstraintTimeTransitionLinear
  36. requestSpeedChange_targetSpeedRelativeConstraintTimeTransitionAuto

References

Jira ticket: internal link

Destructive Changes

There are no destructive changes.

robomic and others added 5 commits May 9, 2024 16:26
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