Skip to content

Commit

Permalink
coremqtt-agent: Add Subscription Manager unit test
Browse files Browse the repository at this point in the history
Adds ~35 unit tests covering all functions in the file and some edge
cases.
Also modifies CMakeLists.txt to include the .cpp test file.

Signed-off-by: Reuben Cartwright <[email protected]>
  • Loading branch information
RC-Repositories authored and aggarg committed Sep 25, 2024
1 parent 29944b8 commit 297b348
Show file tree
Hide file tree
Showing 3 changed files with 531 additions and 0 deletions.
20 changes: 20 additions & 0 deletions components/aws_iot/coremqtt_agent/integration/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,23 @@ target_link_libraries(freertos-command-pool-test
trusted-firmware-m-mock
)
iot_reference_arm_corstone3xx_add_test(freertos-command-pool-test)

add_executable(mqtt-subscription-manager-test
test_subscription_manager.cpp
../src/subscription_manager.c
)
target_include_directories(mqtt-subscription-manager-test
PRIVATE
.
../../library_mocks/inc

../inc
)
target_link_libraries(mqtt-subscription-manager-test
PRIVATE
fff
coremqtt-agent-test-config-mocks
coremqtt-mock
helpers-logging-mock
)
iot_reference_arm_corstone3xx_add_test(mqtt-subscription-manager-test)
Loading

0 comments on commit 297b348

Please sign in to comment.