Skip to content

Commit

Permalink
Merge pull request #1889 from skliper/fix1888-msg_coverage
Browse files Browse the repository at this point in the history
Fix #1888, Improve MSG branch coverage
  • Loading branch information
astrogeco authored Aug 30, 2021
2 parents 6493ddc + 88e1d11 commit bb16216
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/msg/ut-coverage/test_cfe_msg_msgid_shared.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ void Test_MSG_GetTypeFromMsgId(void)
UtAssert_INT32_EQ(CFE_MSG_GetTypeFromMsgId(msgid, NULL), CFE_MSG_BAD_ARGUMENT);
UtAssert_INT32_EQ(Test_MSG_NotZero(&msg), 0);

UtPrintf("Bad parameter tests, Invalid message ID");
UtAssert_INT32_EQ(CFE_MSG_GetTypeFromMsgId(CFE_SB_INVALID_MSG_ID, &actual), CFE_MSG_BAD_ARGUMENT);

UtPrintf("Set to all F's, test cmd and tlm");
memset(&msg, 0xFF, sizeof(msg));
CFE_UtAssert_SUCCESS(CFE_MSG_SetMsgId(&msg, CFE_SB_ValueToMsgId(CFE_PLATFORM_SB_HIGHEST_VALID_MSGID)));
Expand Down

0 comments on commit bb16216

Please sign in to comment.