diff --git a/fsw/src/lc_action.c b/fsw/src/lc_action.c index 5f38548..ed535c7 100644 --- a/fsw/src/lc_action.c +++ b/fsw/src/lc_action.c @@ -80,7 +80,7 @@ void LC_SampleAPs(uint16 StartIndex, uint16 EndIndex) } return; -} /* end LC_SampleAP */ +} /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* */ @@ -269,7 +269,7 @@ void LC_SampleSingleAP(uint16 APNumber) } /* end CurrentAPState if */ return; -} /* end LC_SampleSingleAP */ +} /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* */ @@ -472,7 +472,7 @@ uint8 LC_EvaluateRPN(uint16 APNumber) } return (EvalResult); -} /* end LC_EvaluateRPN */ +} /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* */ @@ -601,7 +601,7 @@ int32 LC_ValidateADT(void *TableData) (int)UnusedCount); return (TableResult); -} /* end LC_ValidateADT */ +} /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* */ @@ -700,8 +700,4 @@ int32 LC_ValidateRPN(const uint16 *RPNPtr, int32 *IndexValue, int32 *StackDepthV } return (Result); -} /* end LC_ValidateRPN */ - -/************************/ -/* End of File Comment */ -/************************/ +} diff --git a/fsw/src/lc_app.c b/fsw/src/lc_app.c index edf307c..3addead 100644 --- a/fsw/src/lc_app.c +++ b/fsw/src/lc_app.c @@ -170,7 +170,7 @@ void LC_AppMain(void) ** Exit the application */ CFE_ES_ExitApp(RunStatus); -} /* end LC_AppMain */ +} /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* */ @@ -220,7 +220,7 @@ int32 LC_AppInit(void) } return (Status); -} /* end LC_AppInit */ +} /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* */ @@ -248,7 +248,7 @@ int32 LC_EvsInit(void) } return (Status); -} /* end LC_EvsInit */ +} /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* */ @@ -317,7 +317,7 @@ int32 LC_SbInit(void) } return (Status); -} /* end LC_SbInit */ +} /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* */ @@ -485,7 +485,7 @@ int32 LC_TableInit(void) } return (CFE_SUCCESS); -} /* LC_TableInit() */ +} /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* */ @@ -561,7 +561,7 @@ int32 LC_CreateResultTables(void) } return (Result); -} /* LC_CreateResultTables() */ +} /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* */ @@ -717,7 +717,7 @@ int32 LC_CreateDefinitionTables(void) } return (Result); -} /* LC_CreateDefinitionTables() */ +} /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* */ @@ -844,7 +844,7 @@ int32 LC_CreateTaskCDS(void) } return (CFE_SUCCESS); -} /* LC_CreateTaskCDS() */ +} /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* */ @@ -963,8 +963,4 @@ int32 LC_LoadDefaultTables(void) } return (Result); -} /* LC_LoadDefaultTables() */ - -/************************/ -/* End of File Comment */ -/************************/ +} diff --git a/fsw/src/lc_cmds.c b/fsw/src/lc_cmds.c index cb51e93..8bed054 100644 --- a/fsw/src/lc_cmds.c +++ b/fsw/src/lc_cmds.c @@ -123,7 +123,7 @@ int32 LC_AppPipe(const CFE_SB_Buffer_t *BufPtr) } /* end MessageID switch */ return (Status); -} /* End LC_AppPipe */ +} /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* */ @@ -199,7 +199,7 @@ void LC_SampleAPReq(const CFE_SB_Buffer_t *BufPtr) } return; -} /* end LC_SampleAPReq */ +} /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* */ @@ -485,7 +485,7 @@ int32 LC_HousekeepingReq(const CFE_MSG_CommandHeader_t *MsgPtr) Result = LC_PerformMaintenance(); return Result; -} /* end LC_HousekeepingReq */ +} /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* */ @@ -508,7 +508,7 @@ void LC_NoopCmd(const CFE_SB_Buffer_t *BufPtr) } return; -} /* end LC_NoopCmd */ +} /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* */ @@ -530,7 +530,7 @@ void LC_ResetCmd(const CFE_SB_Buffer_t *BufPtr) } return; -} /* end LC_ResetCmd */ +} /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* */ @@ -548,7 +548,7 @@ void LC_ResetCounters(void) LC_AppData.PassiveRTSExecCount = 0; return; -} /* end LC_ResetCounters */ +} /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* */ @@ -589,7 +589,7 @@ void LC_SetLCStateCmd(const CFE_SB_Buffer_t *BufPtr) } return; -} /* end LC_SetLCStateCmd */ +} /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* */ @@ -719,7 +719,7 @@ void LC_SetAPStateCmd(const CFE_SB_Buffer_t *BufPtr) } /* end LC_VerifyMsgLength if */ return; -} /* end LC_SetAPStateCmd */ +} /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* */ @@ -786,7 +786,7 @@ void LC_SetAPPermOffCmd(const CFE_SB_Buffer_t *BufPtr) } /* end LC_VerifyMsgLength if */ return; -} /* end LC_SetAPPermOffCmd */ +} /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* */ @@ -832,7 +832,7 @@ void LC_ResetAPStatsCmd(const CFE_SB_Buffer_t *BufPtr) } return; -} /* end LC_ResetAPStatsCmd */ +} /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* */ @@ -864,7 +864,7 @@ void LC_ResetResultsAP(uint32 StartIndex, uint32 EndIndex, bool ResetStatsCmd) } return; -} /* end LC_ResetResultsAP */ +} /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* */ @@ -910,7 +910,7 @@ void LC_ResetWPStatsCmd(const CFE_SB_Buffer_t *BufPtr) } return; -} /* end LC_ResetWPStatsCmd */ +} /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* */ @@ -946,8 +946,4 @@ void LC_ResetResultsWP(uint32 StartIndex, uint32 EndIndex, bool ResetStatsCmd) } return; -} /* end LC_ResetResultsWP */ - -/************************/ -/* End of File Comment */ -/************************/ +} diff --git a/fsw/src/lc_custom.c b/fsw/src/lc_custom.c index 1226109..abc7bfa 100644 --- a/fsw/src/lc_custom.c +++ b/fsw/src/lc_custom.c @@ -54,7 +54,7 @@ void LC_ExecuteRTS(uint16 RTSId) CFE_SB_TransmitMsg(&RTSRequest.CmdHeader.Msg, true); return; -} /* end LC_ExecuteRTS */ +} /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* */ @@ -90,8 +90,4 @@ uint8 LC_CustomFunction(uint16 WatchIndex, uint32 ProcessedWPData, const CFE_SB_ } /* end WatchIndex switch */ return (EvalResult); -} /* end LC_CustomFunction */ - -/************************/ -/* End of File Comment */ -/************************/ +} diff --git a/fsw/src/lc_utils.c b/fsw/src/lc_utils.c index 63fa805..1cdaaf5 100644 --- a/fsw/src/lc_utils.c +++ b/fsw/src/lc_utils.c @@ -95,7 +95,7 @@ bool LC_VerifyMsgLength(const CFE_MSG_Message_t *MsgPtr, size_t ExpectedLength) } return (result); -} /* End of LC_VerifyMsgLength */ +} /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* */ @@ -164,7 +164,7 @@ int32 LC_ManageTables(void) } return (CFE_SUCCESS); -} /* LC_ManageTables() */ +} /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* */ @@ -218,7 +218,7 @@ int32 LC_UpdateTaskCDS(void) } return (CFE_SUCCESS); -} /* LC_UpdateTaskCDS() */ +} /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* */ diff --git a/fsw/src/lc_watch.c b/fsw/src/lc_watch.c index 392edad..ee19730 100644 --- a/fsw/src/lc_watch.c +++ b/fsw/src/lc_watch.c @@ -60,7 +60,7 @@ uint32 LC_GetHashTableIndex(CFE_SB_MsgId_t MessageID) ** than 8 elements in its linked list. */ return ((uint32)(CFE_SB_MsgIdToValue(MessageID) & LC_HASH_TABLE_MASK)); -} /* End of LC_GetHashTableIndex() */ +} /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* */ @@ -132,7 +132,7 @@ void LC_CreateHashTable(void) } return; -} /* End of LC_CreateHashTable() */ +} /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* */ @@ -235,7 +235,7 @@ LC_WatchPtList_t *LC_AddWatchpoint(CFE_SB_MsgId_t MessageID) /* Return pointer to last link in watchpoint linked list */ return (WatchPtLink); -} /* End of LC_AddWatchpoint() */ +} /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* */ @@ -322,7 +322,7 @@ void LC_CheckMsgForWPs(CFE_SB_MsgId_t MessageID, const CFE_SB_Buffer_t *BufPtr) } return; -} /* end LC_CheckMsgForWPs */ +} /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* */ @@ -428,7 +428,7 @@ void LC_ProcessWP(uint16 WatchIndex, const CFE_SB_Buffer_t *BufPtr, CFE_TIME_Sys } /* end SizedDataValid if */ return; -} /* end LC_ProcessWP */ +} /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* */ @@ -536,7 +536,7 @@ uint8 LC_OperatorCompare(uint16 WatchIndex, uint32 ProcessedWPData) } return (EvalResult); -} /* end LC_OperatorCompare */ +} /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* */ @@ -589,7 +589,7 @@ uint8 LC_SignedCompare(uint16 WatchIndex, int32 WPValue, int32 CompareValue) } return (EvalResult); -} /* end LC_SignedCompare */ +} /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* */ @@ -642,7 +642,7 @@ uint8 LC_UnsignedCompare(uint16 WatchIndex, uint32 WPValue, uint32 CompareValue) } return (EvalResult); -} /* end LC_UnsignedCompare */ +} /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* */ @@ -728,7 +728,7 @@ uint8 LC_FloatCompare(uint16 WatchIndex, LC_MultiType_t *WPMultiType, LC_MultiTy } return (EvalResult); -} /* end LC_FloatCompare */ +} /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* */ @@ -812,7 +812,7 @@ bool LC_WPOffsetValid(uint16 WatchIndex, const CFE_SB_Buffer_t *BufPtr) } return (OffsetValid); -} /* end LC_WPOffsetValid */ +} /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* */ @@ -924,7 +924,7 @@ bool LC_GetSizedWPData(uint16 WatchIndex, const uint8 *WPDataPtr, uint32 *SizedD ** Return success flag */ return (Success); -} /* end LC_GetSizedWPData */ +} /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* */ @@ -1058,7 +1058,7 @@ int32 LC_ValidateWDT(void *TableData) (int)UnusedCount); return (TableResult); -} /* end LC_ValidateWDT */ +} /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* */ @@ -1092,7 +1092,7 @@ bool LC_Uint32IsNAN(uint32 Data) } return (Result); -} /* end LC_Uint32IsNAN */ +} /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* */ @@ -1127,8 +1127,4 @@ bool LC_Uint32IsInfinite(uint32 Data) } return (Result); -} /* end LC_Uint32IsInfinite */ - -/************************/ -/* End of File Comment */ -/************************/ +} diff --git a/fsw/tables/lc_def_adt.c b/fsw/tables/lc_def_adt.c index 20e33ce..7c8ad7f 100644 --- a/fsw/tables/lc_def_adt.c +++ b/fsw/tables/lc_def_adt.c @@ -2639,7 +2639,3 @@ LC_ADTEntry_t LC_DefaultADT[LC_MAX_ACTIONPOINTS] = { .EventText = {" "}, .RPNEquation = { /* (WP_0) */ 0, LC_RPN_EQUAL}}}; /* end LC_DefaultADT */ - -/************************/ -/* End of File Comment */ -/************************/ diff --git a/fsw/tables/lc_def_wdt.c b/fsw/tables/lc_def_wdt.c index 0524018..bf11073 100644 --- a/fsw/tables/lc_def_wdt.c +++ b/fsw/tables/lc_def_wdt.c @@ -2209,7 +2209,3 @@ LC_WDTEntry_t LC_DefaultWDT[LC_MAX_WATCHPOINTS] = { .ResultAgeWhenStale = 0, .ComparisonValue.Unsigned32 = 0, }}; /* end LC_DefaultWDT */ - -/************************/ -/* End of File Comment */ -/************************/ diff --git a/unit-test/lc_action_tests.c b/unit-test/lc_action_tests.c index c1f595b..ada0b8b 100644 --- a/unit-test/lc_action_tests.c +++ b/unit-test/lc_action_tests.c @@ -59,7 +59,7 @@ void LC_SampleAPs_Test_SingleActionPointNominal(void) /* Verify results */ UtAssert_INT32_EQ(UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)), 0); -} /* end LC_SampleAPs_Test_SingleActionPointNominal */ +} void LC_SampleAPs_Test_SingleActionPointError(void) { @@ -84,7 +84,7 @@ void LC_SampleAPs_Test_SingleActionPointError(void) strCmpResult = strncmp(ExpectedEventString, context_CFE_EVS_SendEvent[0].Spec, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH); UtAssert_True(strCmpResult == 0, "Event string matched expected result, '%s'", context_CFE_EVS_SendEvent[0].Spec); -} /* end LC_SampleAPs_Test_SingleActionPointError */ +} void LC_SampleAPs_Test_MultiActionPointNominal(void) { @@ -96,7 +96,7 @@ void LC_SampleAPs_Test_MultiActionPointNominal(void) /* Verify results */ UtAssert_INT32_EQ(UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)), 0); -} /* end LC_SampleAPs_Test_MultiActionPointNominal */ +} void LC_SampleAPs_Test_SingleActionPointPermOff(void) { @@ -121,7 +121,7 @@ void LC_SampleAPs_Test_SingleActionPointPermOff(void) strCmpResult = strncmp(ExpectedEventString, context_CFE_EVS_SendEvent[0].Spec, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH); UtAssert_True(strCmpResult == 0, "Event string matched expected result, '%s'", context_CFE_EVS_SendEvent[0].Spec); -} /* end LC_SampleAPs_Test_SingleActionPointError */ +} void LC_SampleSingleAP_Test_StateChangePassToFail(void) { @@ -166,7 +166,7 @@ void LC_SampleSingleAP_Test_StateChangePassToFail(void) UtAssert_True(strCmpResult == 0, "Event string matched expected result, '%s'", context_CFE_EVS_SendEvent[0].Spec); /* Generates 1 event message we don't care about in this test */ -} /* end LC_SampleSingleAP_Test_StateChangePassToFail */ +} void LC_SampleSingleAP_Test_StateChangePassToFailMaxChange(void) { @@ -207,7 +207,7 @@ void LC_SampleSingleAP_Test_StateChangePassToFailMaxChange(void) /* Generates 1 event message we don't care about in this test */ UtAssert_True(LC_AppData.RTSExecCount == 0, "LC_AppData.RTSExecCount == 0"); -} /* end LC_SampleSingleAP_Test_StateChangePassToFailMaxChange */ +} void LC_SampleSingleAP_Test_ActiveRequestRTS(void) { @@ -247,7 +247,7 @@ void LC_SampleSingleAP_Test_ActiveRequestRTS(void) UtAssert_INT32_EQ(UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)), 1); UtAssert_INT32_EQ(context_CFE_EVS_SendEvent[0].EventID, LC_OperData.ADTPtr[APNumber].EventID); UtAssert_INT32_EQ(context_CFE_EVS_SendEvent[0].EventType, LC_OperData.ADTPtr[APNumber].EventType); -} /* end LC_SampleSingleAP_Test_ActiveRequestRTS */ +} void LC_SampleSingleAP_Test_APFailWhileLCStatePassive(void) { @@ -291,7 +291,7 @@ void LC_SampleSingleAP_Test_APFailWhileLCStatePassive(void) strCmpResult = strncmp(ExpectedEventString, context_CFE_EVS_SendEvent[0].Spec, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH); UtAssert_True(strCmpResult == 0, "Event string matched expected result, '%s'", context_CFE_EVS_SendEvent[0].Spec); -} /* end LC_SampleSingleAP_Test_APFailWhileLCStatePassive */ +} void LC_SampleSingleAP_Test_APFailWhilePassive(void) { @@ -341,7 +341,7 @@ void LC_SampleSingleAP_Test_APFailWhilePassive(void) strCmpResult = strncmp(ExpectedEventString, context_CFE_EVS_SendEvent[0].Spec, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH); UtAssert_True(strCmpResult == 0, "Event string matched expected result, '%s'", context_CFE_EVS_SendEvent[0].Spec); -} /* end LC_SampleSingleAP_Test_APFailWhilePassive */ +} void LC_SampleSingleAP_Test_APFailWhilePassiveNoEvent(void) { @@ -380,7 +380,7 @@ void LC_SampleSingleAP_Test_APFailWhilePassiveNoEvent(void) "LC_OperData.ARTPtr[APNumber].CumulativeEventMsgsSent == 0"); UtAssert_INT32_EQ(UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)), 0); -} /* end LC_SampleSingleAP_Test_APFailWhilePassiveNoEvent */ +} void LC_SampleSingleAP_Test_StateChangeFailToPass(void) { @@ -422,7 +422,7 @@ void LC_SampleSingleAP_Test_StateChangeFailToPass(void) strCmpResult = strncmp(ExpectedEventString, context_CFE_EVS_SendEvent[0].Spec, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH); UtAssert_True(strCmpResult == 0, "Event string matched expected result, '%s'", context_CFE_EVS_SendEvent[0].Spec); -} /* end LC_SampleSingleAP_Test_StateChangeFailToPass */ +} void LC_SampleSingleAP_Test_StateChangeFailToPassNoEvent(void) { @@ -456,7 +456,7 @@ void LC_SampleSingleAP_Test_StateChangeFailToPassNoEvent(void) "LC_OperData.ARTPtr[APNumber].ConsecutiveFailCount == 0"); UtAssert_INT32_EQ(UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)), 0); -} /* end LC_SampleSingleAP_Test_StateChangeFailToPass */ +} void LC_SampleSingleAP_Test_ActionStale(void) { @@ -482,7 +482,7 @@ void LC_SampleSingleAP_Test_ActionStale(void) "LC_OperData.ARTPtr[APNumber].ConsecutiveFailCount == 0"); UtAssert_INT32_EQ(UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)), 0); -} /* end LC_SampleSingleAP_Test_ActionStale */ +} void LC_SampleSingleAP_Test_ActionError(void) { @@ -516,7 +516,7 @@ void LC_SampleSingleAP_Test_ActionError(void) strCmpResult = strncmp(ExpectedEventString, context_CFE_EVS_SendEvent[0].Spec, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH); UtAssert_True(strCmpResult == 0, "Event string matched expected result, '%s'", context_CFE_EVS_SendEvent[0].Spec); -} /* end LC_SampleSingleAP_Test_ActionError */ +} void LC_SampleSingleAP_Test_ConsecutivePass(void) { @@ -546,7 +546,7 @@ void LC_SampleSingleAP_Test_ConsecutivePass(void) UtAssert_True(LC_OperData.ARTPtr[APNumber].ConsecutiveFailCount == 0, "LC_OperData.ARTPtr[APNumber].ConsecutiveFailCount == 0"); -} /* end LC_SampleSingleAP_Test_StateChangeFailToPass */ +} void LC_EvaluateRPN_Test_AndWatchFalseOp1(void) { @@ -568,7 +568,7 @@ void LC_EvaluateRPN_Test_AndWatchFalseOp1(void) UtAssert_True(Result == LC_ACTION_PASS, "Result == LC_ACTION_PASS"); UtAssert_INT32_EQ(UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)), 0); -} /* end LC_EvaluateRPN_Test_AndWatchFalseOp1 */ +} void LC_EvaluateRPN_Test_AndWatchFalseOp2(void) { @@ -590,7 +590,7 @@ void LC_EvaluateRPN_Test_AndWatchFalseOp2(void) UtAssert_True(Result == LC_ACTION_PASS, "Result == LC_ACTION_PASS"); UtAssert_INT32_EQ(UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)), 0); -} /* end LC_EvaluateRPN_Test_AndWatchFalseOp2 */ +} void LC_EvaluateRPN_Test_OrWatchTrueOp1(void) { @@ -612,7 +612,7 @@ void LC_EvaluateRPN_Test_OrWatchTrueOp1(void) UtAssert_True(Result == LC_ACTION_FAIL, "Result == LC_ACTION_FAIL"); UtAssert_INT32_EQ(UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)), 0); -} /* end LC_EvaluateRPN_Test_OrWatchTrueOp1 */ +} void LC_EvaluateRPN_Test_OrWatchTrueOp2(void) { @@ -634,7 +634,7 @@ void LC_EvaluateRPN_Test_OrWatchTrueOp2(void) UtAssert_True(Result == LC_ACTION_FAIL, "Result == LC_ACTION_FAIL"); UtAssert_INT32_EQ(UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)), 0); -} /* end LC_EvaluateRPN_Test_OrWatchTrueOp2 */ +} void LC_EvaluateRPN_Test_AndWatchErrorOp1(void) { @@ -656,7 +656,7 @@ void LC_EvaluateRPN_Test_AndWatchErrorOp1(void) UtAssert_True(Result == LC_ACTION_ERROR, "Result == LC_ACTION_ERROR"); UtAssert_INT32_EQ(UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)), 0); -} /* end LC_EvaluateRPN_Test_AndWatchErrorOp1 */ +} void LC_EvaluateRPN_Test_AndWatchErrorOp2(void) { @@ -678,7 +678,7 @@ void LC_EvaluateRPN_Test_AndWatchErrorOp2(void) UtAssert_True(Result == LC_ACTION_ERROR, "Result == LC_ACTION_ERROR"); UtAssert_INT32_EQ(UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)), 0); -} /* end LC_EvaluateRPN_Test_AndWatchErrorOp2 */ +} void LC_EvaluateRPN_Test_OrWatchErrorOp1(void) { @@ -700,7 +700,7 @@ void LC_EvaluateRPN_Test_OrWatchErrorOp1(void) UtAssert_True(Result == LC_ACTION_ERROR, "Result == LC_ACTION_ERROR"); UtAssert_INT32_EQ(UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)), 0); -} /* end LC_EvaluateRPN_Test_OrWatchErrorOp1 */ +} void LC_EvaluateRPN_Test_OrWatchErrorOp2(void) { @@ -722,7 +722,7 @@ void LC_EvaluateRPN_Test_OrWatchErrorOp2(void) UtAssert_True(Result == LC_ACTION_ERROR, "Result == LC_ACTION_ERROR"); UtAssert_INT32_EQ(UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)), 0); -} /* end LC_EvaluateRPN_Test_OrWatchErrorOp2 */ +} void LC_EvaluateRPN_Test_XorWatchErrorOp1(void) { @@ -744,7 +744,7 @@ void LC_EvaluateRPN_Test_XorWatchErrorOp1(void) UtAssert_True(Result == LC_ACTION_ERROR, "Result == LC_ACTION_ERROR"); UtAssert_INT32_EQ(UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)), 0); -} /* end LC_EvaluateRPN_Test_XorWatchErrorOp1 */ +} void LC_EvaluateRPN_Test_XorWatchErrorOp2(void) { @@ -766,7 +766,7 @@ void LC_EvaluateRPN_Test_XorWatchErrorOp2(void) UtAssert_True(Result == LC_ACTION_ERROR, "Result == LC_ACTION_ERROR"); UtAssert_INT32_EQ(UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)), 0); -} /* end LC_EvaluateRPN_Test_XorWatchErrorOp2 */ +} void LC_EvaluateRPN_Test_NotWatchError(void) { @@ -786,7 +786,7 @@ void LC_EvaluateRPN_Test_NotWatchError(void) UtAssert_True(Result == LC_ACTION_ERROR, "Result == LC_ACTION_ERROR"); UtAssert_INT32_EQ(UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)), 0); -} /* end LC_EvaluateRPN_Test_NotWatchError */ +} void LC_EvaluateRPN_Test_AndStaleOp1(void) { @@ -808,7 +808,7 @@ void LC_EvaluateRPN_Test_AndStaleOp1(void) UtAssert_True(Result == LC_ACTION_STALE, "Result == LC_ACTION_STALE"); UtAssert_INT32_EQ(UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)), 0); -} /* end LC_EvaluateRPN_Test_AndStaleOp1 */ +} void LC_EvaluateRPN_Test_AndStaleOp2(void) { @@ -830,7 +830,7 @@ void LC_EvaluateRPN_Test_AndStaleOp2(void) UtAssert_True(Result == LC_ACTION_STALE, "Result == LC_ACTION_STALE"); UtAssert_INT32_EQ(UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)), 0); -} /* end LC_EvaluateRPN_Test_AndStaleOp2 */ +} void LC_EvaluateRPN_Test_OrStaleOp1(void) { @@ -852,7 +852,7 @@ void LC_EvaluateRPN_Test_OrStaleOp1(void) UtAssert_True(Result == LC_ACTION_STALE, "Result == LC_ACTION_STALE"); UtAssert_INT32_EQ(UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)), 0); -} /* end LC_EvaluateRPN_Test_OrStaleOp1 */ +} void LC_EvaluateRPN_Test_OrStaleOp2(void) { @@ -874,7 +874,7 @@ void LC_EvaluateRPN_Test_OrStaleOp2(void) UtAssert_True(Result == LC_ACTION_STALE, "Result == LC_ACTION_STALE"); UtAssert_INT32_EQ(UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)), 0); -} /* end LC_EvaluateRPN_Test_OrStaleOp2 */ +} void LC_EvaluateRPN_Test_XorStaleOp1(void) { @@ -896,7 +896,7 @@ void LC_EvaluateRPN_Test_XorStaleOp1(void) UtAssert_True(Result == LC_ACTION_STALE, "Result == LC_ACTION_STALE"); UtAssert_INT32_EQ(UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)), 0); -} /* end LC_EvaluateRPN_Test_XorStaleOp1 */ +} void LC_EvaluateRPN_Test_XorStaleOp2(void) { @@ -918,7 +918,7 @@ void LC_EvaluateRPN_Test_XorStaleOp2(void) UtAssert_True(Result == LC_ACTION_STALE, "Result == LC_ACTION_STALE"); UtAssert_INT32_EQ(UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)), 0); -} /* end LC_EvaluateRPN_Test_XorStaleOp2 */ +} void LC_EvaluateRPN_Test_NotStale(void) { @@ -938,7 +938,7 @@ void LC_EvaluateRPN_Test_NotStale(void) UtAssert_True(Result == LC_ACTION_STALE, "Result == LC_ACTION_STALE"); UtAssert_INT32_EQ(UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)), 0); -} /* end LC_EvaluateRPN_Test_NotStale */ +} void LC_EvaluateRPN_Test_AndNominal(void) { @@ -960,7 +960,7 @@ void LC_EvaluateRPN_Test_AndNominal(void) UtAssert_True(Result == LC_ACTION_FAIL, "Result == LC_ACTION_FAIL"); UtAssert_INT32_EQ(UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)), 0); -} /* end LC_EvaluateRPN_Test_AndNominal */ +} void LC_EvaluateRPN_Test_OrNominal(void) { @@ -982,7 +982,7 @@ void LC_EvaluateRPN_Test_OrNominal(void) UtAssert_True(Result == LC_ACTION_PASS, "Result == LC_ACTION_PASS"); UtAssert_INT32_EQ(UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)), 0); -} /* end LC_EvaluateRPN_Test_OrNominal */ +} void LC_EvaluateRPN_Test_XorNominal(void) { @@ -1004,7 +1004,7 @@ void LC_EvaluateRPN_Test_XorNominal(void) UtAssert_True(Result == true, "Result == true"); UtAssert_INT32_EQ(UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)), 0); -} /* end LC_EvaluateRPN_Test_XorNominal */ +} void LC_EvaluateRPN_Test_NotNominal(void) { @@ -1024,7 +1024,7 @@ void LC_EvaluateRPN_Test_NotNominal(void) UtAssert_True(Result == false, "Result == false"); UtAssert_INT32_EQ(UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)), 0); -} /* end LC_EvaluateRPN_Test_NotNominal */ +} void LC_EvaluateRPN_Test_Equal(void) { @@ -1091,7 +1091,7 @@ void LC_EvaluateRPN_Test_WatchpointNumberNominal(void) UtAssert_True(Result == 77, "Result == 77"); UtAssert_INT32_EQ(UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)), 0); -} /* end LC_EvaluateRPN_Test_WatchpointNumberNominal */ +} void LC_EvaluateRPN_Test_DefaultIllegalRPN(void) { @@ -1118,7 +1118,7 @@ void LC_EvaluateRPN_Test_DefaultIllegalRPN(void) strCmpResult = strncmp(ExpectedEventString, context_CFE_EVS_SendEvent[0].Spec, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH); UtAssert_True(strCmpResult == 0, "Event string matched expected result, '%s'", context_CFE_EVS_SendEvent[0].Spec); -} /* end LC_EvaluateRPN_Test_DefaultIllegalRPN */ +} void LC_EvaluateRPN_Test_EndOfBufferWhenNotDone(void) { @@ -1153,7 +1153,7 @@ void LC_EvaluateRPN_Test_EndOfBufferWhenNotDone(void) strCmpResult = strncmp(ExpectedEventString, context_CFE_EVS_SendEvent[0].Spec, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH); UtAssert_True(strCmpResult == 0, "Event string matched expected result, '%s'", context_CFE_EVS_SendEvent[0].Spec); -} /* end LC_EvaluateRPN_Test_EndOfBufferWhenNotDone */ +} void LC_EvaluateRPN_Test_PushPopFail(void) { @@ -1268,7 +1268,7 @@ void LC_ValidateADT_Test_ActionNotUsed(void) strCmpResult = strncmp(ExpectedEventString, context_CFE_EVS_SendEvent[0].Spec, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH); UtAssert_True(strCmpResult == 0, "Event string matched expected result, '%s'", context_CFE_EVS_SendEvent[0].Spec); -} /* end LC_ValidateADT_Test_ActionNotUsed */ +} void LC_ValidateADT_Test_InvalidDefaultState(void) { @@ -1310,7 +1310,7 @@ void LC_ValidateADT_Test_InvalidDefaultState(void) strCmpResult = strncmp(ExpectedEventString2, context_CFE_EVS_SendEvent[1].Spec, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH); UtAssert_True(strCmpResult == 0, "Event string matched expected result, '%s'", context_CFE_EVS_SendEvent[1].Spec); -} /* end LC_ValidateADT_Test_InvalidDefaultState */ +} void LC_ValidateADT_Test_BadRtsID(void) { @@ -1352,7 +1352,7 @@ void LC_ValidateADT_Test_BadRtsID(void) strCmpResult = strncmp(ExpectedEventString2, context_CFE_EVS_SendEvent[1].Spec, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH); UtAssert_True(strCmpResult == 0, "Event string matched expected result, '%s'", context_CFE_EVS_SendEvent[1].Spec); -} /* end LC_ValidateADT_Test_BadRtsID */ +} void LC_ValidateADT_Test_BadFailCount(void) { @@ -1393,7 +1393,7 @@ void LC_ValidateADT_Test_BadFailCount(void) strCmpResult = strncmp(ExpectedEventString2, context_CFE_EVS_SendEvent[1].Spec, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH); UtAssert_True(strCmpResult == 0, "Event string matched expected result, '%s'", context_CFE_EVS_SendEvent[1].Spec); -} /* end LC_ValidateADT_Test_BadFailCount */ +} void LC_ValidateADT_Test_InvalidEventType(void) { @@ -1435,7 +1435,7 @@ void LC_ValidateADT_Test_InvalidEventType(void) strCmpResult = strncmp(ExpectedEventString2, context_CFE_EVS_SendEvent[1].Spec, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH); UtAssert_True(strCmpResult == 0, "Event string matched expected result, '%s'", context_CFE_EVS_SendEvent[1].Spec); -} /* end LC_ValidateADT_Test_InvalidEventType */ +} void LC_ValidateADT_Test_ValidateRpnAdtValError(void) { @@ -1478,7 +1478,7 @@ void LC_ValidateADT_Test_ValidateRpnAdtValError(void) strCmpResult = strncmp(ExpectedEventString2, context_CFE_EVS_SendEvent[1].Spec, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH); UtAssert_True(strCmpResult == 0, "Event string matched expected result, '%s'", context_CFE_EVS_SendEvent[1].Spec); -} /* end LC_ValidateADT_Test_ValidateRpnAdtValError */ +} void LC_ValidateADT_Test_ValidateRpnAdtValNoError(void) { @@ -1515,7 +1515,7 @@ void LC_ValidateADT_Test_ValidateRpnAdtValNoError(void) strCmpResult = strncmp(ExpectedEventString, context_CFE_EVS_SendEvent[0].Spec, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH); UtAssert_True(strCmpResult == 0, "Event string matched expected result, '%s'", context_CFE_EVS_SendEvent[0].Spec); -} /* end LC_ValidateADT_Test_ValidateRpnAdtValNoError */ +} void LC_ValidateADT_Test_Nominal(void) { @@ -1582,7 +1582,7 @@ void LC_ValidateRPN_Test_RpnAnd(void) UtAssert_True(Result == LC_ADTVAL_NO_ERR, "Result == LC_ADTVAL_NO_ERR"); UtAssert_INT32_EQ(UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)), 0); -} /* end LC_ValidateRPN_Test_RpnAnd */ +} void LC_ValidateRPN_Test_RpnOr(void) { @@ -1602,7 +1602,7 @@ void LC_ValidateRPN_Test_RpnOr(void) UtAssert_True(Result == LC_ADTVAL_NO_ERR, "Result == LC_ADTVAL_NO_ERR"); UtAssert_INT32_EQ(UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)), 0); -} /* end LC_ValidateRPN_Test_RpnOr */ +} void LC_ValidateRPN_Test_RpnXor(void) { @@ -1622,7 +1622,7 @@ void LC_ValidateRPN_Test_RpnXor(void) UtAssert_True(Result == LC_ADTVAL_NO_ERR, "Result == LC_ADTVAL_NO_ERR"); UtAssert_INT32_EQ(UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)), 0); -} /* end LC_ValidateRPN_Test_RpnXor */ +} void LC_ValidateRPN_Test_RpnNot(void) { @@ -1641,7 +1641,7 @@ void LC_ValidateRPN_Test_RpnNot(void) UtAssert_True(Result == LC_ADTVAL_NO_ERR, "Result == LC_ADTVAL_NO_ERR"); UtAssert_INT32_EQ(UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)), 0); -} /* end LC_ValidateRPN_Test_RpnNot */ +} void LC_ValidateRPN_Test_StackDepthZero(void) { @@ -1661,7 +1661,7 @@ void LC_ValidateRPN_Test_StackDepthZero(void) UtAssert_True(StackDepthValue == 0, "StackDepthValue == 0"); UtAssert_INT32_EQ(UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)), 0); -} /* end LC_ValidateRPN_Test_StackDepthZero */ +} void LC_ValidateRPN_Test_StackDepthZero2(void) { @@ -1681,7 +1681,7 @@ void LC_ValidateRPN_Test_StackDepthZero2(void) UtAssert_True(StackDepthValue == 0, "StackDepthValue == 0"); UtAssert_INT32_EQ(UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)), 0); -} /* end LC_ValidateRPN_Test_StackDepthZero2 */ +} void LC_ValidateRPN_Test_MaxRPNSize(void) { @@ -1704,7 +1704,7 @@ void LC_ValidateRPN_Test_MaxRPNSize(void) UtAssert_True(StackDepthValue == LC_MAX_RPN_EQU_SIZE, "StackDepthValue == LC_MAX_RPN_EQU_SIZE"); UtAssert_INT32_EQ(UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)), 0); -} /* end LC_ValidateRPN_Test_StackDepthZero2 */ +} void LC_ValidateRPN_Test_InvalidBufferItem(void) { @@ -1724,7 +1724,7 @@ void LC_ValidateRPN_Test_InvalidBufferItem(void) UtAssert_True(StackDepthValue == 0, "StackDepthValue == 0"); UtAssert_INT32_EQ(UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)), 0); -} /* end LC_ValidateRPN_Test_InvalidBufferItem */ +} void UtTest_Setup(void) { @@ -1829,7 +1829,4 @@ void UtTest_Setup(void) UtTest_Add(LC_ValidateRPN_Test_InvalidBufferItem, LC_Test_Setup, LC_Test_TearDown, "LC_ValidateRPN_Test_InvalidBufferItem"); -} -/************************/ -/* End of File Comment */ -/************************/ +} \ No newline at end of file diff --git a/unit-test/lc_app_tests.c b/unit-test/lc_app_tests.c index b6703b1..b638c1e 100644 --- a/unit-test/lc_app_tests.c +++ b/unit-test/lc_app_tests.c @@ -324,7 +324,7 @@ void LC_AppInit_Test_Nominal(void) /* Generates 2 event message we don't care about in this test */ UtAssert_INT32_EQ(call_count_CFE_EVS_SendEvent, 1); #endif -} /* end LC_AppInit_Test_Nominal */ +} void LC_AppInit_Test_EVSInitError(void) { @@ -344,7 +344,7 @@ void LC_AppInit_Test_EVSInitError(void) call_count_CFE_EVS_SendEvent = UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)); UtAssert_INT32_EQ(call_count_CFE_EVS_SendEvent, 0); -} /* end LC_AppInit_Test_EVSInitError */ +} void LC_AppInit_Test_SBInitError(void) { @@ -365,7 +365,7 @@ void LC_AppInit_Test_SBInitError(void) /* Generates one event message we don't care about in this test */ call_count_CFE_EVS_SendEvent = UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)); UtAssert_INT32_EQ(call_count_CFE_EVS_SendEvent, 1); -} /* end LC_AppInit_Test_SBInitError */ +} void LC_AppInit_Test_TableInitError(void) { @@ -383,7 +383,7 @@ void LC_AppInit_Test_TableInitError(void) /* Generates one event message we don't care about in this test */ call_count_CFE_EVS_SendEvent = UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)); UtAssert_INT32_EQ(call_count_CFE_EVS_SendEvent, 1); -} /* end LC_AppInit_Test_TableInitError */ +} void LC_EvsInit_Test_Nominal(void) { @@ -397,7 +397,7 @@ void LC_EvsInit_Test_Nominal(void) call_count_CFE_EVS_SendEvent = UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)); UtAssert_INT32_EQ(call_count_CFE_EVS_SendEvent, 0); -} /* end LC_EvsInit_Test_Nominal */ +} void LC_EvsInit_Test_EVSRegisterError(void) { @@ -418,7 +418,7 @@ void LC_EvsInit_Test_EVSRegisterError(void) call_count_CFE_EVS_SendEvent = UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)); UtAssert_INT32_EQ(call_count_CFE_EVS_SendEvent, 0); -} /* end LC_EvsInit_Test_EVSRegisterError */ +} void LC_SbInit_Test_Nominal(void) { @@ -432,7 +432,7 @@ void LC_SbInit_Test_Nominal(void) call_count_CFE_EVS_SendEvent = UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)); UtAssert_INT32_EQ(call_count_CFE_EVS_SendEvent, 0); -} /* end LC_SbInit_Test_Nominal */ +} void LC_SbInit_Test_CreatePipeError(void) { @@ -453,7 +453,7 @@ void LC_SbInit_Test_CreatePipeError(void) call_count_CFE_EVS_SendEvent = UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)); UtAssert_INT32_EQ(call_count_CFE_EVS_SendEvent, 1); -} /* end LC_SbInit_Test_CreatePipeError */ +} void LC_SbInit_Test_SubscribeHKReqError(void) { @@ -474,7 +474,7 @@ void LC_SbInit_Test_SubscribeHKReqError(void) call_count_CFE_EVS_SendEvent = UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)); UtAssert_INT32_EQ(call_count_CFE_EVS_SendEvent, 1); -} /* end LC_SbInit_Test_SubscribeHKReqError */ +} void LC_SbInit_Test_SubscribeGndCmdError(void) { @@ -495,7 +495,7 @@ void LC_SbInit_Test_SubscribeGndCmdError(void) call_count_CFE_EVS_SendEvent = UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)); UtAssert_INT32_EQ(call_count_CFE_EVS_SendEvent, 1); -} /* end LC_SbInit_Test_SubscribeGndCmdError */ +} void LC_SbInit_Test_SubscribeSampleCmdError(void) { @@ -516,7 +516,7 @@ void LC_SbInit_Test_SubscribeSampleCmdError(void) call_count_CFE_EVS_SendEvent = UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)); UtAssert_INT32_EQ(call_count_CFE_EVS_SendEvent, 1); -} /* end LC_SbInit_Test_SubscribeSampleCmdError */ +} void LC_TableInit_Test_CreateResultsTablesError(void) { @@ -804,7 +804,7 @@ void LC_CreateResultTables_Test_Nominal(void) call_count_CFE_EVS_SendEvent = UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)); UtAssert_INT32_EQ(call_count_CFE_EVS_SendEvent, 0); -} /* end LC_CreateResultTables_Test_Nominal */ +} void LC_CreateResultTables_Test_WRTRegisterError(void) { @@ -828,7 +828,7 @@ void LC_CreateResultTables_Test_WRTRegisterError(void) call_count_CFE_EVS_SendEvent = UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)); UtAssert_INT32_EQ(call_count_CFE_EVS_SendEvent, 1); -} /* end LC_CreateResultTables_Test_WRTRegisterError */ +} void LC_CreateResultTables_Test_WRTGetAddressError(void) { @@ -852,7 +852,7 @@ void LC_CreateResultTables_Test_WRTGetAddressError(void) call_count_CFE_EVS_SendEvent = UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)); UtAssert_INT32_EQ(call_count_CFE_EVS_SendEvent, 1); -} /* end LC_CreateResultTables_Test_WRTGetAddressError */ +} void LC_CreateResultTables_Test_ARTRegisterError(void) { @@ -876,7 +876,7 @@ void LC_CreateResultTables_Test_ARTRegisterError(void) call_count_CFE_EVS_SendEvent = UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)); UtAssert_INT32_EQ(call_count_CFE_EVS_SendEvent, 1); -} /* end LC_CreateResultTables_Test_ARTRegisterError */ +} void LC_CreateResultTables_Test_ARTGetAddressError(void) { @@ -900,7 +900,7 @@ void LC_CreateResultTables_Test_ARTGetAddressError(void) call_count_CFE_EVS_SendEvent = UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)); UtAssert_INT32_EQ(call_count_CFE_EVS_SendEvent, 1); -} /* end LC_CreateResultTables_Test_ARTGetAddressError */ +} void LC_CreateDefinitionTables_Test_NominalCDSActive(void) { @@ -922,7 +922,7 @@ void LC_CreateDefinitionTables_Test_NominalCDSActive(void) call_count_CFE_EVS_SendEvent = UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)); UtAssert_INT32_EQ(call_count_CFE_EVS_SendEvent, 0); -} /* end LC_CreateDefinitionTables_Test_NominalCDSActive */ +} void LC_CreateDefinitionTables_Test_NominalCDSInactive(void) { @@ -944,7 +944,7 @@ void LC_CreateDefinitionTables_Test_NominalCDSInactive(void) call_count_CFE_EVS_SendEvent = UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)); UtAssert_INT32_EQ(call_count_CFE_EVS_SendEvent, 0); -} /* end LC_CreateDefinitionTables_Test_NominalCDSInactive */ +} void LC_CreateDefinitionTables_Test_WDTReRegisterThenInfoRecovered(void) { @@ -982,7 +982,7 @@ void LC_CreateDefinitionTables_Test_WDTReRegisterThenInfoRecovered(void) strCmpResult = strncmp(ExpectedEventString, context_CFE_EVS_SendEvent[0].Spec, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH); UtAssert_True(strCmpResult == 0, "Event string matched expected result, '%s'", context_CFE_EVS_SendEvent[0].Spec); -} /* end LC_CreateDefinitionTables_Test_WDTReRegisterThenInfoRecovered */ +} void LC_CreateDefinitionTables_Test_ADTReRegisterThenInfoRecovered(void) { @@ -1020,7 +1020,7 @@ void LC_CreateDefinitionTables_Test_ADTReRegisterThenInfoRecovered(void) strCmpResult = strncmp(ExpectedEventString, context_CFE_EVS_SendEvent[0].Spec, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH); UtAssert_True(strCmpResult == 0, "Event string matched expected result, '%s'", context_CFE_EVS_SendEvent[0].Spec); -} /* end LC_CreateDefinitionTables_Test_ADTReRegisterThenInfoRecovered */ +} void LC_CreateDefinitionTables_Test_WDTCriticalADTNoncritical(void) { @@ -1046,7 +1046,7 @@ void LC_CreateDefinitionTables_Test_WDTCriticalADTNoncritical(void) call_count_CFE_EVS_SendEvent = UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)); UtAssert_INT32_EQ(call_count_CFE_EVS_SendEvent, 0); -} /* end LC_CreateDefinitionTables_Test_WDTCriticalADTNoncritical */ +} void LC_CreateDefinitionTables_Test_WDTReRegisterError(void) { @@ -1068,7 +1068,7 @@ void LC_CreateDefinitionTables_Test_WDTReRegisterError(void) UtAssert_STUB_COUNT(CFE_EVS_SendEvent, 1); UtAssert_INT32_EQ(context_CFE_EVS_SendEvent[0].EventID, LC_WDT_REREGISTER_ERR_EID); -} /* end LC_CreateDefinitionTables_Test_WDTReRegisterError */ +} void LC_CreateDefinitionTables_Test_WDTRegisterError(void) { @@ -1084,7 +1084,7 @@ void LC_CreateDefinitionTables_Test_WDTRegisterError(void) /* Verify results */ UtAssert_STUB_COUNT(CFE_EVS_SendEvent, 1); UtAssert_INT32_EQ(context_CFE_EVS_SendEvent[0].EventID, LC_WDT_REGISTER_ERR_EID); -} /* end LC_CreateDefinitionTables_Test_WDTRegisterError */ +} void LC_CreateDefinitionTables_Test_ADTRegisterError(void) { @@ -1099,7 +1099,7 @@ void LC_CreateDefinitionTables_Test_ADTRegisterError(void) UtAssert_STUB_COUNT(CFE_EVS_SendEvent, 1); UtAssert_INT32_EQ(context_CFE_EVS_SendEvent[0].EventID, LC_ADT_REGISTER_ERR_EID); -} /* end LC_CreateDefinitionTables_Test_ADTRegisterError */ +} void LC_LoadDefaultTables_Test_NominalActiveCDS(void) { @@ -1129,7 +1129,7 @@ void LC_LoadDefaultTables_Test_NominalActiveCDS(void) call_count_CFE_EVS_SendEvent = UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)); UtAssert_INT32_EQ(call_count_CFE_EVS_SendEvent, 0); -} /* end LC_LoadDefaultTables_Test_NominalActiveCDS */ +} void LC_LoadDefaultTables_Test_ActiveCDSNotSuccess(void) { @@ -1163,7 +1163,7 @@ void LC_LoadDefaultTables_Test_ActiveCDSNotSuccess(void) /* Generates one event message we don't care about in this test */ call_count_CFE_EVS_SendEvent = UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)); UtAssert_INT32_EQ(call_count_CFE_EVS_SendEvent, 0); -} /* end LC_LoadDefaultTables_Test_ActiveCDSNotSuccess */ +} void LC_LoadDefaultTables_Test_NominalInactiveCDS(void) { @@ -1192,7 +1192,7 @@ void LC_LoadDefaultTables_Test_NominalInactiveCDS(void) call_count_CFE_EVS_SendEvent = UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)); UtAssert_INT32_EQ(call_count_CFE_EVS_SendEvent, 0); -} /* end LC_LoadDefaultTables_Test_NominalInactiveCDS */ +} void LC_LoadDefaultTables_Test_LoadWDTError(void) { @@ -1215,7 +1215,7 @@ void LC_LoadDefaultTables_Test_LoadWDTError(void) call_count_CFE_EVS_SendEvent = UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)); UtAssert_INT32_EQ(call_count_CFE_EVS_SendEvent, 1); -} /* end LC_LoadDefaultTables_Test_LoadWDTError */ +} void LC_LoadDefaultTables_Test_GetWDTAddressError(void) { @@ -1241,7 +1241,7 @@ void LC_LoadDefaultTables_Test_GetWDTAddressError(void) call_count_CFE_EVS_SendEvent = UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)); UtAssert_INT32_EQ(call_count_CFE_EVS_SendEvent, 1); -} /* end LC_LoadDefaultTables_Test_GetWDTAddressError */ +} void LC_LoadDefaultTables_Test_LoadADTError(void) { @@ -1267,7 +1267,7 @@ void LC_LoadDefaultTables_Test_LoadADTError(void) call_count_CFE_EVS_SendEvent = UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)); UtAssert_INT32_EQ(call_count_CFE_EVS_SendEvent, 1); -} /* end LC_LoadDefaultTables_Test_LoadADTError */ +} void LC_LoadDefaultTables_Test_GetADTAddressError(void) { @@ -1288,7 +1288,7 @@ void LC_LoadDefaultTables_Test_GetADTAddressError(void) "Error getting ADT address, RC=0xCC000001"); */ UtAssert_STUB_COUNT(CFE_EVS_SendEvent, 1); -} /* end LC_LoadDefaultTables_Test_GetADTAddressError */ +} void LC_LoadDefaultTables_Test_InfoUpdated(void) { @@ -1318,7 +1318,7 @@ void LC_LoadDefaultTables_Test_InfoUpdated(void) call_count_CFE_EVS_SendEvent = UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)); UtAssert_INT32_EQ(call_count_CFE_EVS_SendEvent, 0); -} /* end LC_LoadDefaultTables_Test_NominalActiveCDS */ +} void LC_CreateTaskCDS_Test_Nominal(void) { @@ -1610,8 +1610,4 @@ void UtTest_Setup(void) UtTest_Add(LC_CreateTaskCDS_Test_RestoreSuccessCDSNotSaved, LC_Test_Setup, LC_Test_TearDown, "LC_CreateTaskCDS_Test_RestoreSuccessCDSNotSaved"); UtTest_Add(LC_CreateTaskCDS_Test_RestoreFail, LC_Test_Setup, LC_Test_TearDown, "LC_CreateTaskCDS_Test_RestoreFail"); -} /* end LC_App_Test_AddTestCases */ - -/************************/ -/* End of File Comment */ -/************************/ +} diff --git a/unit-test/lc_cmds_tests.c b/unit-test/lc_cmds_tests.c index 908169b..6b6bf63 100644 --- a/unit-test/lc_cmds_tests.c +++ b/unit-test/lc_cmds_tests.c @@ -61,7 +61,7 @@ void LC_AppPipe_Test_SampleAPRequest(void) /* Verify results */ UtAssert_True(Result == CFE_SUCCESS, "Result == CFE_SUCCESS"); -} /* end LC_AppPipe_Test_SampleAPRequest */ +} void LC_AppPipe_Test_HousekeepingRequest(void) { @@ -88,7 +88,7 @@ void LC_AppPipe_Test_HousekeepingRequest(void) uint8 call_count_LC_PerformMaintenance = UT_GetStubCount(UT_KEY(LC_PerformMaintenance)); UtAssert_INT32_EQ(call_count_LC_PerformMaintenance, 1); /* Generates 1 event message we don't care about in this test */ -} /* end LC_AppPipe_Test_HousekeepingRequest */ +} void LC_AppPipe_Test_Noop(void) { @@ -123,7 +123,7 @@ void LC_AppPipe_Test_Noop(void) strCmpResult = strncmp(ExpectedEventString, context_CFE_EVS_SendEvent[0].Spec, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH); UtAssert_True(strCmpResult == 0, "Event string matched expected result, '%s'", context_CFE_EVS_SendEvent[0].Spec); -} /* end LC_AppPipe_Test_Noop */ +} void LC_AppPipe_Test_Reset(void) { @@ -158,7 +158,7 @@ void LC_AppPipe_Test_Reset(void) strCmpResult = strncmp(ExpectedEventString, context_CFE_EVS_SendEvent[0].Spec, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH); UtAssert_True(strCmpResult == 0, "Event string matched expected result, '%s'", context_CFE_EVS_SendEvent[0].Spec); -} /* end LC_AppPipe_Test_Reset */ +} void LC_AppPipe_Test_SetLCState(void) { @@ -183,7 +183,7 @@ void LC_AppPipe_Test_SetLCState(void) UtAssert_INT32_EQ(call_count_CFE_EVS_SendEvent, 1); /* Generates 1 event message we don't care about in this test */ -} /* end LC_AppPipe_Test_SetLCState */ +} void LC_AppPipe_Test_SetAPState(void) { @@ -208,7 +208,7 @@ void LC_AppPipe_Test_SetAPState(void) UtAssert_INT32_EQ(call_count_CFE_EVS_SendEvent, 1); /* Generates 1 event message we don't care about in this test */ -} /* end LC_AppPipe_Test_SetAPState */ +} void LC_AppPipe_Test_SetAPPermoff(void) { @@ -233,7 +233,7 @@ void LC_AppPipe_Test_SetAPPermoff(void) UtAssert_INT32_EQ(call_count_CFE_EVS_SendEvent, 1); /* Generates 1 event message we don't care about in this test */ -} /* end LC_AppPipe_Test_SetAPPermoff */ +} void LC_AppPipe_Test_ResetAPStats(void) { @@ -257,7 +257,7 @@ void LC_AppPipe_Test_ResetAPStats(void) call_count_CFE_EVS_SendEvent = UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)); UtAssert_INT32_EQ(call_count_CFE_EVS_SendEvent, 1); /* Generates 1 event message we don't care about in this test */ -} /* end LC_AppPipe_Test_ResetAPStats */ +} void LC_AppPipe_Test_ResetWPStats(void) { @@ -281,7 +281,7 @@ void LC_AppPipe_Test_ResetWPStats(void) call_count_CFE_EVS_SendEvent = UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)); UtAssert_INT32_EQ(call_count_CFE_EVS_SendEvent, 1); /* Generates 1 event message we don't care about in this test */ -} /* end LC_AppPipe_Test_ResetWPStats */ +} void LC_AppPipe_Test_InvalidCommandCode(void) { @@ -314,7 +314,7 @@ void LC_AppPipe_Test_InvalidCommandCode(void) strCmpResult = strncmp(ExpectedEventString, context_CFE_EVS_SendEvent[0].Spec, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH); UtAssert_True(strCmpResult == 0, "Event string matched expected result, '%s'", context_CFE_EVS_SendEvent[0].Spec); -} /* end LC_AppPipe_Test_InvalidCommandCode */ +} void LC_AppPipe_Test_MonitorPacket(void) { @@ -335,7 +335,7 @@ void LC_AppPipe_Test_MonitorPacket(void) uint8 call_count_LC_CheckMsgForWPs = UT_GetStubCount(UT_KEY(LC_CheckMsgForWPs)); UtAssert_INT32_EQ(call_count_LC_CheckMsgForWPs, 1); -} /* end LC_AppPipe_Test_MonitorPacket */ +} void LC_SampleAPReq_Test_BadLength(void) { @@ -377,7 +377,7 @@ void LC_SampleAPReq_Test_AllowSampleAllWatchStale(void) call_count_CFE_EVS_SendEvent = UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)); UtAssert_INT32_EQ(call_count_CFE_EVS_SendEvent, 0); -} /* end LC_SampleAPReq_Test_AllowSampleAllWatchStale */ +} void LC_SampleAPReq_Test_AllowSampleAllWatchNotStale(void) { @@ -400,7 +400,7 @@ void LC_SampleAPReq_Test_AllowSampleAllWatchNotStale(void) /* Verify results */ call_count_CFE_EVS_SendEvent = UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)); UtAssert_INT32_EQ(call_count_CFE_EVS_SendEvent, 0); -} /* end LC_SampleAPReq_Test_AllowSampleAllWatchStale */ +} void LC_SampleAPReq_Test_StartLessOrEqualToEndAndEndWithinArrayWatchStale(void) { @@ -426,7 +426,7 @@ void LC_SampleAPReq_Test_StartLessOrEqualToEndAndEndWithinArrayWatchStale(void) call_count_CFE_EVS_SendEvent = UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)); UtAssert_INT32_EQ(call_count_CFE_EVS_SendEvent, 0); -} /* end LC_SampleAPReq_Test_StartLessOrEqualToEndAndEndWithinArrayWatchStale */ +} void LC_SampleAPReq_Test_ArrayIndexOutOfRange(void) { @@ -459,7 +459,7 @@ void LC_SampleAPReq_Test_ArrayIndexOutOfRange(void) strCmpResult = strncmp(ExpectedEventString, context_CFE_EVS_SendEvent[0].Spec, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH); UtAssert_True(strCmpResult == 0, "Event string matched expected result, '%s'", context_CFE_EVS_SendEvent[0].Spec); -} /* end LC_SampleAPReq_Test_ArrayIndexOutOfRange */ +} void LC_SampleAPReq_Test_BadSampleAllArgs(void) { @@ -602,7 +602,7 @@ void LC_HousekeepingReq_Test_WatchStale(void) call_count_CFE_EVS_SendEvent = UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)); UtAssert_INT32_EQ(call_count_CFE_EVS_SendEvent, 0); -} /* end LC_HousekeepingReq_Test_WatchStale */ +} void LC_HousekeepingReq_Test_WatchFalse(void) { @@ -653,7 +653,7 @@ void LC_HousekeepingReq_Test_WatchFalse(void) call_count_CFE_EVS_SendEvent = UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)); UtAssert_INT32_EQ(call_count_CFE_EVS_SendEvent, 0); -} /* end LC_HousekeepingReq_Test_WatchFalse */ +} void LC_HousekeepingReq_Test_WatchTrue(void) { @@ -704,7 +704,7 @@ void LC_HousekeepingReq_Test_WatchTrue(void) call_count_CFE_EVS_SendEvent = UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)); UtAssert_INT32_EQ(call_count_CFE_EVS_SendEvent, 0); -} /* end LC_HousekeepingReq_Test_WatchTrue */ +} void LC_HousekeepingReq_Test_WatchError(void) { @@ -756,7 +756,7 @@ void LC_HousekeepingReq_Test_WatchError(void) call_count_CFE_EVS_SendEvent = UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)); UtAssert_INT32_EQ(call_count_CFE_EVS_SendEvent, 0); -} /* end LC_HousekeepingReq_Test_WatchError */ +} void LC_HousekeepingReq_Test_DefaultWatchResult(void) { @@ -807,7 +807,7 @@ void LC_HousekeepingReq_Test_DefaultWatchResult(void) call_count_CFE_EVS_SendEvent = UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)); UtAssert_INT32_EQ(call_count_CFE_EVS_SendEvent, 0); -} /* end LC_HousekeepingReq_Test_DefaultWatchResult */ +} void LC_HousekeepingReq_Test_ActionNotUsedStale(void) { @@ -859,7 +859,7 @@ void LC_HousekeepingReq_Test_ActionNotUsedStale(void) call_count_CFE_EVS_SendEvent = UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)); UtAssert_INT32_EQ(call_count_CFE_EVS_SendEvent, 0); -} /* end LC_HousekeepingReq_Test_ActionNotUsedStale */ +} void LC_HousekeepingReq_Test_APStateActiveActionPass(void) { @@ -914,7 +914,7 @@ void LC_HousekeepingReq_Test_APStateActiveActionPass(void) call_count_CFE_EVS_SendEvent = UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)); UtAssert_INT32_EQ(call_count_CFE_EVS_SendEvent, 0); -} /* end LC_HousekeepingReq_Test_APStateActiveActionPass */ +} void LC_HousekeepingReq_Test_APStatePassiveActionFail(void) { @@ -966,7 +966,7 @@ void LC_HousekeepingReq_Test_APStatePassiveActionFail(void) call_count_CFE_EVS_SendEvent = UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)); UtAssert_INT32_EQ(call_count_CFE_EVS_SendEvent, 0); -} /* end LC_HousekeepingReq_Test_APStatePassiveActionFail */ +} void LC_HousekeepingReq_Test_APStateDisabledActionError(void) { @@ -1018,7 +1018,7 @@ void LC_HousekeepingReq_Test_APStateDisabledActionError(void) call_count_CFE_EVS_SendEvent = UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)); UtAssert_INT32_EQ(call_count_CFE_EVS_SendEvent, 0); -} /* end LC_HousekeepingReq_Test_APStateDisabledActionError */ +} void LC_HousekeepingReq_Test_APStatePermOffActionError(void) { @@ -1070,7 +1070,7 @@ void LC_HousekeepingReq_Test_APStatePermOffActionError(void) call_count_CFE_EVS_SendEvent = UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)); UtAssert_INT32_EQ(call_count_CFE_EVS_SendEvent, 0); -} /* end LC_HousekeepingReq_Test_APStatePermOffActionError */ +} void LC_HousekeepingReq_Test_DefaultCurrentStateAndActionResult(void) { @@ -1122,7 +1122,7 @@ void LC_HousekeepingReq_Test_DefaultCurrentStateAndActionResult(void) call_count_CFE_EVS_SendEvent = UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)); UtAssert_INT32_EQ(call_count_CFE_EVS_SendEvent, 0); -} /* end LC_HousekeepingReq_Test_DefaultCurrentStateAndActionResult */ +} void LC_HousekeepingReq_Test_ManageTablesError(void) { @@ -1146,7 +1146,7 @@ void LC_HousekeepingReq_Test_ManageTablesError(void) call_count_CFE_EVS_SendEvent = UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)); UtAssert_INT32_EQ(call_count_CFE_EVS_SendEvent, 0); -} /* end LC_HousekeepingReq_Test_ManageTablesError */ +} void LC_NoopCmd_Test_BadLength(void) { @@ -1189,7 +1189,7 @@ void LC_ResetCounters_Test(void) call_count_CFE_EVS_SendEvent = UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)); UtAssert_INT32_EQ(call_count_CFE_EVS_SendEvent, 0); -} /* end LC_ResetCounters_Test */ +} void LC_SetLCStateCmd_Test_BadLength(void) { @@ -1230,7 +1230,7 @@ void LC_SetLCStateCmd_Test_Active(void) strCmpResult = strncmp(ExpectedEventString, context_CFE_EVS_SendEvent[0].Spec, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH); UtAssert_True(strCmpResult == 0, "Event string matched expected result, '%s'", context_CFE_EVS_SendEvent[0].Spec); -} /* end LC_SetLCStateCmd_Test_Active */ +} void LC_SetLCStateCmd_Test_Passive(void) { @@ -1262,7 +1262,7 @@ void LC_SetLCStateCmd_Test_Passive(void) strCmpResult = strncmp(ExpectedEventString, context_CFE_EVS_SendEvent[0].Spec, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH); UtAssert_True(strCmpResult == 0, "Event string matched expected result, '%s'", context_CFE_EVS_SendEvent[0].Spec); -} /* end LC_SetLCStateCmd_Test_Passive */ +} void LC_SetLCStateCmd_Test_Disabled(void) { @@ -1294,7 +1294,7 @@ void LC_SetLCStateCmd_Test_Disabled(void) strCmpResult = strncmp(ExpectedEventString, context_CFE_EVS_SendEvent[0].Spec, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH); UtAssert_True(strCmpResult == 0, "Event string matched expected result, '%s'", context_CFE_EVS_SendEvent[0].Spec); -} /* end LC_SetLCStateCmd_Test_Disabled */ +} void LC_SetLCStateCmd_Test_Default(void) { @@ -1325,7 +1325,7 @@ void LC_SetLCStateCmd_Test_Default(void) strCmpResult = strncmp(ExpectedEventString, context_CFE_EVS_SendEvent[0].Spec, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH); UtAssert_True(strCmpResult == 0, "Event string matched expected result, '%s'", context_CFE_EVS_SendEvent[0].Spec); -} /* end LC_SetLCStateCmd_Test_Default */ +} void LC_SetAPStateCmd_Test_BadLength(void) { @@ -1367,7 +1367,7 @@ void LC_SetAPStateCmd_Test_Default(void) strCmpResult = strncmp(ExpectedEventString, context_CFE_EVS_SendEvent[0].Spec, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH); UtAssert_True(strCmpResult == 0, "Event string matched expected result, '%s'", context_CFE_EVS_SendEvent[0].Spec); -} /* end LC_SetAPStateCmd_Test_Default */ +} void LC_SetAPStateCmd_Test_SetAllActionPointsActive(void) { @@ -1420,7 +1420,7 @@ void LC_SetAPStateCmd_Test_SetAllActionPointsActive(void) strCmpResult = strncmp(ExpectedEventString, context_CFE_EVS_SendEvent[0].Spec, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH); UtAssert_True(strCmpResult == 0, "Event string matched expected result, '%s'", context_CFE_EVS_SendEvent[0].Spec); -} /* end LC_SetAPStateCmd_Test_SetAllActionPointsActive */ +} void LC_SetAPStateCmd_Test_SetAllActionPointsActiveOneNotUsed(void) { @@ -1474,7 +1474,7 @@ void LC_SetAPStateCmd_Test_SetAllActionPointsActiveOneNotUsed(void) strCmpResult = strncmp(ExpectedEventString, context_CFE_EVS_SendEvent[0].Spec, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH); UtAssert_True(strCmpResult == 0, "Event string matched expected result, '%s'", context_CFE_EVS_SendEvent[0].Spec); -} /* end LC_SetAPStateCmd_Test_SetAllActionPointsActiveOneNotUsed */ +} void LC_SetAPStateCmd_Test_SetAllActionPointsActiveOnePermOff(void) { @@ -1528,7 +1528,7 @@ void LC_SetAPStateCmd_Test_SetAllActionPointsActiveOnePermOff(void) strCmpResult = strncmp(ExpectedEventString, context_CFE_EVS_SendEvent[0].Spec, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH); UtAssert_True(strCmpResult == 0, "Event string matched expected result, '%s'", context_CFE_EVS_SendEvent[0].Spec); -} /* end LC_SetAPStateCmd_Test_SetAllActionPointsActiveOnePermOff */ +} void LC_SetAPStateCmd_Test_SetAllActionPointsPassive(void) { @@ -1581,7 +1581,7 @@ void LC_SetAPStateCmd_Test_SetAllActionPointsPassive(void) strCmpResult = strncmp(ExpectedEventString, context_CFE_EVS_SendEvent[0].Spec, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH); UtAssert_True(strCmpResult == 0, "Event string matched expected result, '%s'", context_CFE_EVS_SendEvent[0].Spec); -} /* end LC_SetAPStateCmd_Test_SetAllActionPointsPassive */ +} void LC_SetAPStateCmd_Test_SetAllActionPointsDisabled(void) { @@ -1634,7 +1634,7 @@ void LC_SetAPStateCmd_Test_SetAllActionPointsDisabled(void) strCmpResult = strncmp(ExpectedEventString, context_CFE_EVS_SendEvent[0].Spec, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH); UtAssert_True(strCmpResult == 0, "Event string matched expected result, '%s'", context_CFE_EVS_SendEvent[0].Spec); -} /* end LC_SetAPStateCmd_Test_SetAllActionPointsDisabled */ +} void LC_SetAPStateCmd_Test_UpdateSingleActionPointActive(void) { @@ -1670,7 +1670,7 @@ void LC_SetAPStateCmd_Test_UpdateSingleActionPointActive(void) strCmpResult = strncmp(ExpectedEventString, context_CFE_EVS_SendEvent[0].Spec, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH); UtAssert_True(strCmpResult == 0, "Event string matched expected result, '%s'", context_CFE_EVS_SendEvent[0].Spec); -} /* end LC_SetAPStateCmd_Test_UpdateSingleActionPointActive */ +} void LC_SetAPStateCmd_Test_UpdateSingleActionPointNotUsed(void) { @@ -1706,7 +1706,7 @@ void LC_SetAPStateCmd_Test_UpdateSingleActionPointNotUsed(void) strCmpResult = strncmp(ExpectedEventString, context_CFE_EVS_SendEvent[0].Spec, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH); UtAssert_True(strCmpResult == 0, "Event string matched expected result, '%s'", context_CFE_EVS_SendEvent[0].Spec); -} /* end LC_SetAPStateCmd_Test_UpdateSingleActionPointActive */ +} void LC_SetAPStateCmd_Test_UpdateSingleActionPointPassive(void) { @@ -1742,7 +1742,7 @@ void LC_SetAPStateCmd_Test_UpdateSingleActionPointPassive(void) strCmpResult = strncmp(ExpectedEventString, context_CFE_EVS_SendEvent[0].Spec, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH); UtAssert_True(strCmpResult == 0, "Event string matched expected result, '%s'", context_CFE_EVS_SendEvent[0].Spec); -} /* end LC_SetAPStateCmd_Test_UpdateSingleActionPointPassive */ +} void LC_SetAPStateCmd_Test_UpdateSingleActionPointDisabled(void) { @@ -1778,7 +1778,7 @@ void LC_SetAPStateCmd_Test_UpdateSingleActionPointDisabled(void) strCmpResult = strncmp(ExpectedEventString, context_CFE_EVS_SendEvent[0].Spec, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH); UtAssert_True(strCmpResult == 0, "Event string matched expected result, '%s'", context_CFE_EVS_SendEvent[0].Spec); -} /* end LC_SetAPStateCmd_Test_UpdateSingleActionPointDisabled */ +} void LC_SetAPStateCmd_Test_InvalidCurrentAPStateActive(void) { @@ -1813,7 +1813,7 @@ void LC_SetAPStateCmd_Test_InvalidCurrentAPStateActive(void) strCmpResult = strncmp(ExpectedEventString, context_CFE_EVS_SendEvent[0].Spec, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH); UtAssert_True(strCmpResult == 0, "Event string matched expected result, '%s'", context_CFE_EVS_SendEvent[0].Spec); -} /* end LC_SetAPStateCmd_Test_InvalidCurrentAPStateActive */ +} void LC_SetAPStateCmd_Test_InvalidCurrentAPStatePassive(void) { @@ -1848,7 +1848,7 @@ void LC_SetAPStateCmd_Test_InvalidCurrentAPStatePassive(void) strCmpResult = strncmp(ExpectedEventString, context_CFE_EVS_SendEvent[0].Spec, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH); UtAssert_True(strCmpResult == 0, "Event string matched expected result, '%s'", context_CFE_EVS_SendEvent[0].Spec); -} /* end LC_SetAPStateCmd_Test_InvalidCurrentAPStatePassive */ +} void LC_SetAPStateCmd_Test_InvalidCurrentAPStateDisabled(void) { @@ -1884,7 +1884,7 @@ void LC_SetAPStateCmd_Test_InvalidCurrentAPStateDisabled(void) strCmpResult = strncmp(ExpectedEventString, context_CFE_EVS_SendEvent[0].Spec, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH); UtAssert_True(strCmpResult == 0, "Event string matched expected result, '%s'", context_CFE_EVS_SendEvent[0].Spec); -} /* end LC_SetAPStateCmd_Test_InvalidCurrentAPStateDisabled */ +} void LC_SetAPStateCmd_Test_InvalidAPNumberActive(void) { @@ -1918,7 +1918,7 @@ void LC_SetAPStateCmd_Test_InvalidAPNumberActive(void) strCmpResult = strncmp(ExpectedEventString, context_CFE_EVS_SendEvent[0].Spec, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH); UtAssert_True(strCmpResult == 0, "Event string matched expected result, '%s'", context_CFE_EVS_SendEvent[0].Spec); -} /* end LC_SetAPStateCmd_Test_InvalidAPNumberActive */ +} void LC_SetAPStateCmd_Test_InvalidAPNumberPassive(void) { @@ -1951,7 +1951,7 @@ void LC_SetAPStateCmd_Test_InvalidAPNumberPassive(void) strCmpResult = strncmp(ExpectedEventString, context_CFE_EVS_SendEvent[0].Spec, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH); UtAssert_True(strCmpResult == 0, "Event string matched expected result, '%s'", context_CFE_EVS_SendEvent[0].Spec); -} /* end LC_SetAPStateCmd_Test_InvalidAPNumberPassive */ +} void LC_SetAPStateCmd_Test_InvalidAPNumberDisabled(void) { @@ -1983,7 +1983,7 @@ void LC_SetAPStateCmd_Test_InvalidAPNumberDisabled(void) strCmpResult = strncmp(ExpectedEventString, context_CFE_EVS_SendEvent[0].Spec, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH); UtAssert_True(strCmpResult == 0, "Event string matched expected result, '%s'", context_CFE_EVS_SendEvent[0].Spec); -} /* end LC_SetAPStateCmd_Test_InvalidAPNumberDisabled */ +} void LC_SetAPPermOffCmd_Test_BadLength(void) { @@ -2022,7 +2022,7 @@ void LC_SetAPPermOffCmd_Test_InvalidAPNumberMaxActionpoints(void) strCmpResult = strncmp(ExpectedEventString, context_CFE_EVS_SendEvent[0].Spec, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH); UtAssert_True(strCmpResult == 0, "Event string matched expected result, '%s'", context_CFE_EVS_SendEvent[0].Spec); -} /* end LC_SetAPPermOffCmd_Test_InvalidAPNumberMaxActionpoints */ +} void LC_SetAPPermOffCmd_Test_InvalidAPNumberAllActionpoints(void) { @@ -2052,7 +2052,7 @@ void LC_SetAPPermOffCmd_Test_InvalidAPNumberAllActionpoints(void) strCmpResult = strncmp(ExpectedEventString, context_CFE_EVS_SendEvent[0].Spec, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH); UtAssert_True(strCmpResult == 0, "Event string matched expected result, '%s'", context_CFE_EVS_SendEvent[0].Spec); -} /* end LC_SetAPPermOffCmd_Test_InvalidAPNumberAllActionpoints */ +} void LC_SetAPPermOffCmd_Test_APNotDisabled(void) { @@ -2085,7 +2085,7 @@ void LC_SetAPPermOffCmd_Test_APNotDisabled(void) strCmpResult = strncmp(ExpectedEventString, context_CFE_EVS_SendEvent[0].Spec, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH); UtAssert_True(strCmpResult == 0, "Event string matched expected result, '%s'", context_CFE_EVS_SendEvent[0].Spec); -} /* end LC_SetAPPermOffCmd_Test_APNotDisabled */ +} void LC_SetAPPermOffCmd_Test_Nominal(void) { @@ -2119,7 +2119,7 @@ void LC_SetAPPermOffCmd_Test_Nominal(void) strCmpResult = strncmp(ExpectedEventString, context_CFE_EVS_SendEvent[0].Spec, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH); UtAssert_True(strCmpResult == 0, "Event string matched expected result, '%s'", context_CFE_EVS_SendEvent[0].Spec); -} /* end LC_SetAPPermOffCmd_Test_Nominal */ +} void LC_ResetAPStatsCmd_Test_BadLength(void) { @@ -2158,7 +2158,7 @@ void LC_ResetAPStatsCmd_Test_AllActionPoints(void) strCmpResult = strncmp(ExpectedEventString, context_CFE_EVS_SendEvent[0].Spec, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH); UtAssert_True(strCmpResult == 0, "Event string matched expected result, '%s'", context_CFE_EVS_SendEvent[0].Spec); -} /* end LC_ResetAPStatsCmd_Test_AllActionPoints */ +} void LC_ResetAPStatsCmd_Test_SingleActionPoint(void) { @@ -2188,7 +2188,7 @@ void LC_ResetAPStatsCmd_Test_SingleActionPoint(void) strCmpResult = strncmp(ExpectedEventString, context_CFE_EVS_SendEvent[0].Spec, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH); UtAssert_True(strCmpResult == 0, "Event string matched expected result, '%s'", context_CFE_EVS_SendEvent[0].Spec); -} /* end LC_ResetAPStatsCmd_Test_SingleActionPoint */ +} void LC_ResetAPStatsCmd_Test_InvalidAPNumber(void) { @@ -2218,7 +2218,7 @@ void LC_ResetAPStatsCmd_Test_InvalidAPNumber(void) strCmpResult = strncmp(ExpectedEventString, context_CFE_EVS_SendEvent[0].Spec, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH); UtAssert_True(strCmpResult == 0, "Event string matched expected result, '%s'", context_CFE_EVS_SendEvent[0].Spec); -} /* end LC_ResetAPStatsCmd_Test_InvalidAPNumber */ +} void LC_ResetResultsAP_Test(void) { @@ -2319,7 +2319,7 @@ void LC_ResetResultsAP_Test(void) call_count_CFE_EVS_SendEvent = UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)); UtAssert_INT32_EQ(call_count_CFE_EVS_SendEvent, 0); -} /* end LC_ResetResultsAP_Test */ +} void LC_ResetWPStatsCmd_Test_BadLength(void) { @@ -2358,7 +2358,7 @@ void LC_ResetWPStatsCmd_Test_AllWatchPoints(void) strCmpResult = strncmp(ExpectedEventString, context_CFE_EVS_SendEvent[0].Spec, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH); UtAssert_True(strCmpResult == 0, "Event string matched expected result, '%s'", context_CFE_EVS_SendEvent[0].Spec); -} /* end LC_ResetWPStatsCmd_Test_AllWatchPoints */ +} void LC_ResetWPStatsCmd_Test_SingleWatchPoint(void) { @@ -2387,7 +2387,7 @@ void LC_ResetWPStatsCmd_Test_SingleWatchPoint(void) strCmpResult = strncmp(ExpectedEventString, context_CFE_EVS_SendEvent[0].Spec, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH); UtAssert_True(strCmpResult == 0, "Event string matched expected result, '%s'", context_CFE_EVS_SendEvent[0].Spec); -} /* end LC_ResetWPStatsCmd_Test_SingleWatchPoint */ +} void LC_ResetWPStatsCmd_Test_InvalidWPNumber(void) { @@ -2417,7 +2417,7 @@ void LC_ResetWPStatsCmd_Test_InvalidWPNumber(void) strCmpResult = strncmp(ExpectedEventString, context_CFE_EVS_SendEvent[0].Spec, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH); UtAssert_True(strCmpResult == 0, "Event string matched expected result, '%s'", context_CFE_EVS_SendEvent[0].Spec); -} /* end LC_ResetWPStatsCmd_Test_InvalidWPNumber */ +} void LC_ResetResultsWP_Test(void) { @@ -2545,7 +2545,7 @@ void LC_ResetResultsWP_Test(void) call_count_CFE_EVS_SendEvent = UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)); UtAssert_INT32_EQ(call_count_CFE_EVS_SendEvent, 0); -} /* end LC_ResetResultsWP_Test */ +} void UtTest_Setup(void) { @@ -2677,7 +2677,3 @@ void UtTest_Setup(void) UtTest_Add(LC_ResetWPStatsCmd_Test_BadLength, LC_Test_Setup, LC_Test_TearDown, "LC_ResetWPStatsCmd_Test_BadLength"); UtTest_Add(LC_ResetResultsWP_Test, LC_Test_Setup, LC_Test_TearDown, "LC_ResetResultsWP_Test"); } - -/************************/ -/* End of File Comment */ -/************************/ diff --git a/unit-test/lc_custom_tests.c b/unit-test/lc_custom_tests.c index a7a6d35..1557ff0 100644 --- a/unit-test/lc_custom_tests.c +++ b/unit-test/lc_custom_tests.c @@ -54,7 +54,7 @@ void LC_ExecuteRTS_Test(void) /* Verify results */ UtAssert_INT32_EQ(UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)), 0); -} /* end LC_ExecuteRTS_Test */ +} void LC_CustomFunction_Test_WatchIndex0(void) { @@ -78,7 +78,7 @@ void LC_CustomFunction_Test_WatchIndex0(void) strCmpResult = strncmp(ExpectedEventString, context_CFE_EVS_SendEvent[0].Spec, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH); UtAssert_True(strCmpResult == 0, "Event string matched expected result, '%s'", context_CFE_EVS_SendEvent[0].Spec); -} /* end LC_CustomFunction_Test_WatchIndex0 */ +} void LC_CustomFunction_Test_WatchIndex1(void) { @@ -102,7 +102,7 @@ void LC_CustomFunction_Test_WatchIndex1(void) strCmpResult = strncmp(ExpectedEventString, context_CFE_EVS_SendEvent[0].Spec, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH); UtAssert_True(strCmpResult == 0, "Event string matched expected result, '%s'", context_CFE_EVS_SendEvent[0].Spec); -} /* end LC_CustomFunction_Test_WatchIndex1 */ +} void UtTest_Setup(void) { @@ -111,7 +111,4 @@ void UtTest_Setup(void) "LC_CustomFunction_Test_WatchIndex0"); UtTest_Add(LC_CustomFunction_Test_WatchIndex1, LC_Test_Setup, LC_Test_TearDown, "LC_CustomFunction_Test_WatchIndex1"); -} -/************************/ -/* End of File Comment */ -/************************/ +} \ No newline at end of file diff --git a/unit-test/lc_utils_tests.c b/unit-test/lc_utils_tests.c index 9a52c1a..62a0695 100644 --- a/unit-test/lc_utils_tests.c +++ b/unit-test/lc_utils_tests.c @@ -70,7 +70,7 @@ void LC_VerifyMsgLength_Test_HKRequestLengthError(void) strCmpResult = strncmp(ExpectedEventString, context_CFE_EVS_SendEvent[0].Spec, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH); UtAssert_True(strCmpResult == 0, "Event string matched expected result, '%s'", context_CFE_EVS_SendEvent[0].Spec); -} /* end LC_VerifyMsgLength_Test_HKRequestLengthError */ +} void LC_VerifyMsgLength_Test_APSampleLengthError(void) { @@ -105,7 +105,7 @@ void LC_VerifyMsgLength_Test_APSampleLengthError(void) strCmpResult = strncmp(ExpectedEventString, context_CFE_EVS_SendEvent[0].Spec, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH); UtAssert_True(strCmpResult == 0, "Event string matched expected result, '%s'", context_CFE_EVS_SendEvent[0].Spec); -} /* end LC_VerifyMsgLength_Test_APSampleLengthError */ +} void LC_VerifyMsgLength_Test_GenericLengthError(void) { @@ -142,7 +142,7 @@ void LC_VerifyMsgLength_Test_GenericLengthError(void) strCmpResult = strncmp(ExpectedEventString, context_CFE_EVS_SendEvent[0].Spec, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH); UtAssert_True(strCmpResult == 0, "Event string matched expected result, '%s'", context_CFE_EVS_SendEvent[0].Spec); -} /* end LC_VerifyMsgLength_Test_GenericLengthError */ +} void LC_VerifyMsgLength_Test_Nominal(void) { @@ -167,7 +167,7 @@ void LC_VerifyMsgLength_Test_Nominal(void) call_count_CFE_EVS_SendEvent = UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)); UtAssert_INT32_EQ(call_count_CFE_EVS_SendEvent, 0); -} /* end LC_VerifyMsgLength_Test_Nominal */ +} void LC_ManageTables_Test_Nominal(void) { @@ -212,7 +212,7 @@ void LC_ManageTables_Test_InfoUpdated(void) UtAssert_INT32_EQ(call_count_LC_ResetResultsWP, 1); UtAssert_INT32_EQ(call_count_LC_ResetResultsAP, 1); -} /* end LC_ManageTables_Test_InfoUpdated */ +} void LC_ManageTables_Test_WDTGetAddressError(void) { @@ -244,7 +244,7 @@ void LC_ManageTables_Test_WDTGetAddressError(void) UtAssert_INT32_EQ(call_count_LC_ResetResultsWP, 0); UtAssert_INT32_EQ(call_count_LC_ResetResultsAP, 0); -} /* end LC_ManageTables_Test_WDTGetAddressError */ +} void LC_ManageTables_Test_ADTGetAddressError(void) { @@ -274,7 +274,7 @@ void LC_ManageTables_Test_ADTGetAddressError(void) uint8 call_count_LC_ResetResultsAP = UT_GetStubCount(UT_KEY(LC_ResetResultsAP)); UtAssert_INT32_EQ(call_count_LC_ResetResultsAP, 0); -} /* end LC_ManageTables_Test_ADTGetAddressError */ +} void LC_UpdateTaskCDS_Test_UpdateWatchpointError(void) { @@ -301,7 +301,7 @@ void LC_UpdateTaskCDS_Test_UpdateWatchpointError(void) strCmpResult = strncmp(ExpectedEventString, context_CFE_EVS_SendEvent[0].Spec, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH); UtAssert_True(strCmpResult == 0, "Event string matched expected result, '%s'", context_CFE_EVS_SendEvent[0].Spec); -} /* end LC_UpdateTaskCDS_Test_UpdateWatchpointError */ +} void LC_UpdateTaskCDS_Test_UpdateActionpointError(void) { @@ -327,7 +327,7 @@ void LC_UpdateTaskCDS_Test_UpdateActionpointError(void) strCmpResult = strncmp(ExpectedEventString, context_CFE_EVS_SendEvent[0].Spec, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH); UtAssert_True(strCmpResult == 0, "Event string matched expected result, '%s'", context_CFE_EVS_SendEvent[0].Spec); -} /* end LC_UpdateTaskCDS_Test_UpdateActionpointError */ +} void LC_UpdateTaskCDS_Test_UpdateAppDataError(void) { @@ -355,7 +355,7 @@ void LC_UpdateTaskCDS_Test_UpdateAppDataError(void) strCmpResult = strncmp(ExpectedEventString, context_CFE_EVS_SendEvent[0].Spec, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH); UtAssert_True(strCmpResult == 0, "Event string matched expected result, '%s'", context_CFE_EVS_SendEvent[0].Spec); -} /* end LC_UpdateTaskCDS_Test_UpdateAppDataError */ +} void LC_UpdateTaskCDS_Test_Nominal(void) { @@ -370,7 +370,7 @@ void LC_UpdateTaskCDS_Test_Nominal(void) call_count_CFE_EVS_SendEvent = UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)); UtAssert_INT32_EQ(call_count_CFE_EVS_SendEvent, 0); -} /* end LC_UpdateTaskCDS_Test_Nominal */ +} void LC_PerformMaintenance_Test_NominalNoCDS(void) { diff --git a/unit-test/lc_watch_tests.c b/unit-test/lc_watch_tests.c index 4e20255..6d8a76d 100644 --- a/unit-test/lc_watch_tests.c +++ b/unit-test/lc_watch_tests.c @@ -168,7 +168,7 @@ void LC_AddWatchpoint_Test_NullPointersErrorSubscribingWatchpoint(void) strCmpResult = strncmp(ExpectedEventString, context_CFE_EVS_SendEvent[0].Spec, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH); UtAssert_True(strCmpResult == 0, "Event string matched expected result, '%s'", context_CFE_EVS_SendEvent[0].Spec); -} /* end LC_AddWatchpoint_Test_NullPointersErrorSubscribingWatchpoint */ +} void LC_AddWatchpoint_Test_NonNullMessageList(void) { @@ -232,7 +232,7 @@ void LC_CheckMsgForWPs_Test_Nominal(void) UtAssert_STUB_COUNT(CFE_EVS_SendEvent, 0); UtAssert_STUB_COUNT(CFE_TIME_GetTime, 1); -} /* end LC_CheckMsgForWPs_Test_Nominal */ +} void LC_CheckMsgForWPs_Test_NominalMsgTime1(void) { @@ -260,7 +260,7 @@ void LC_CheckMsgForWPs_Test_NominalMsgTime1(void) UtAssert_STUB_COUNT(CFE_EVS_SendEvent, 1); UtAssert_INT32_EQ(context_CFE_EVS_SendEvent[0].EventID, LC_MID_INF_EID); UtAssert_STUB_COUNT(CFE_TIME_GetTime, 0); -} /* end LC_CheckMsgForWPs_Test_Nominal */ +} void LC_CheckMsgForWPs_Test_NominalMsgTime2(void) { @@ -297,7 +297,7 @@ void LC_CheckMsgForWPs_Test_NominalMsgTime2(void) UtAssert_STUB_COUNT(CFE_EVS_SendEvent, 1); UtAssert_INT32_EQ(context_CFE_EVS_SendEvent[0].EventID, LC_WP_OFFSET_ERR_EID); UtAssert_STUB_COUNT(CFE_TIME_GetTime, 0); -} /* end LC_CheckMsgForWPs_Test_Nominal */ +} void LC_CheckMsgForWPs_Test_NominalDisabled(void) { @@ -313,7 +313,7 @@ void LC_CheckMsgForWPs_Test_NominalDisabled(void) UtAssert_STUB_COUNT(CFE_EVS_SendEvent, 0); UtAssert_STUB_COUNT(CFE_TIME_GetTime, 0); -} /* end LC_CheckMsgForWPs_Test_NominalDisabled */ +} void LC_CheckMsgForWPs_Test_UnreferencedMessageID(void) { @@ -337,7 +337,7 @@ void LC_CheckMsgForWPs_Test_UnreferencedMessageID(void) strCmpResult = strncmp(ExpectedEventString, context_CFE_EVS_SendEvent[0].Spec, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH); UtAssert_True(strCmpResult == 0, "Event string matched expected result, '%s'", context_CFE_EVS_SendEvent[0].Spec); -} /* end LC_CheckMsgForWPs_Test_UnreferencedMessageID */ +} void LC_ProcessWP_Test_CustomFunctionWatchFalse(void) { @@ -373,7 +373,7 @@ void LC_ProcessWP_Test_CustomFunctionWatchFalse(void) /* Note: this event message is generated in a subfunction, but is tested anyway to verify that the correct code path * has been reached */ UtAssert_INT32_EQ(UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)), 0); -} /* end LC_ProcessWP_Test_CustomFunctionWatchFalse */ +} void LC_ProcessWP_Test_OperatorCompareError(void) { @@ -404,7 +404,7 @@ void LC_ProcessWP_Test_OperatorCompareError(void) UtAssert_INT32_EQ(UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)), 1); /* Generates 1 event message we don't care about in this test */ -} /* end LC_ProcessWP_Test_OperatorCompareError */ +} void LC_ProcessWP_Test_OperatorCompareWatchTruePreviousStale(void) { @@ -453,7 +453,7 @@ void LC_ProcessWP_Test_OperatorCompareWatchTruePreviousStale(void) "LC_OperData.WRTPtr[WatchIndex].LastFalseToTrue.Timestamp.Subseconds == 5"); UtAssert_True(UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)) == 0, "UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)) == 0"); -} /* end LC_ProcessWP_Test_OperatorCompareWatchTruePreviousStale */ +} void LC_ProcessWP_Test_OperatorCompareWatchTruePreviousFalse(void) { @@ -502,7 +502,7 @@ void LC_ProcessWP_Test_OperatorCompareWatchTruePreviousFalse(void) "LC_OperData.WRTPtr[WatchIndex].LastFalseToTrue.Timestamp.Subseconds == 5"); UtAssert_True(UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)) == 0, "UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)) == 0"); -} /* end LC_ProcessWP_Test_OperatorCompareWatchTruePreviousStale */ +} void LC_ProcessWP_Test_OperatorCompareWatchFalsePreviousStale(void) { @@ -548,7 +548,7 @@ void LC_ProcessWP_Test_OperatorCompareWatchFalsePreviousStale(void) "LC_OperData.WRTPtr[WatchIndex].LastTrueToFalse.Timestamp.Subseconds == 5"); UtAssert_True(UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)) == 0, "UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)) == 0"); -} /* end LC_ProcessWP_Test_OperatorCompareWatchFalsePreviousStale */ +} void LC_ProcessWP_Test_OperatorCompareWatchFalsePreviousTrue(void) { @@ -594,7 +594,7 @@ void LC_ProcessWP_Test_OperatorCompareWatchFalsePreviousTrue(void) "LC_OperData.WRTPtr[WatchIndex].LastTrueToFalse.Timestamp.Subseconds == 5"); UtAssert_True(UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)) == 0, "UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)) == 0"); -} /* end LC_ProcessWP_Test_OperatorCompareWatchFalsePreviousStale */ +} void LC_ProcessWP_Test_BadSize(void) { @@ -730,7 +730,7 @@ void LC_OperatorCompare_Test_DataByte(void) UtAssert_True(Result == LC_WATCH_TRUE, "Result == LC_WATCH_TRUE"); UtAssert_True(UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)) == 0, "UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)) == 0"); -} /* end LC_OperatorCompare_Test_DataByte */ +} void LC_OperatorCompare_Test_DataWordLE(void) { @@ -753,7 +753,7 @@ void LC_OperatorCompare_Test_DataWordLE(void) UtAssert_True(Result == LC_WATCH_TRUE, "Result == LC_WATCH_TRUE"); UtAssert_True(UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)) == 0, "UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)) == 0"); -} /* end LC_OperatorCompare_Test_DataWordLE */ +} void LC_OperatorCompare_Test_DataDWordLE(void) { @@ -776,7 +776,7 @@ void LC_OperatorCompare_Test_DataDWordLE(void) UtAssert_True(Result == LC_WATCH_TRUE, "Result == LC_WATCH_TRUE"); UtAssert_True(UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)) == 0, "UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)) == 0"); -} /* end LC_OperatorCompare_Test_DataDWordLE */ +} void LC_OperatorCompare_Test_DataUByte(void) { @@ -799,7 +799,7 @@ void LC_OperatorCompare_Test_DataUByte(void) UtAssert_True(Result == LC_WATCH_TRUE, "Result == LC_WATCH_TRUE"); UtAssert_True(UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)) == 0, "UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)) == 0"); -} /* end LC_OperatorCompare_Test_DataUByte */ +} void LC_OperatorCompare_Test_DataUWordLE(void) { @@ -822,7 +822,7 @@ void LC_OperatorCompare_Test_DataUWordLE(void) UtAssert_True(Result == LC_WATCH_TRUE, "Result == LC_WATCH_TRUE"); UtAssert_True(UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)) == 0, "UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)) == 0"); -} /* end LC_OperatorCompare_Test_DataUWordLE */ +} void LC_OperatorCompare_Test_DataUDWordLE(void) { @@ -845,7 +845,7 @@ void LC_OperatorCompare_Test_DataUDWordLE(void) UtAssert_True(Result == LC_WATCH_TRUE, "Result == LC_WATCH_TRUE"); UtAssert_True(UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)) == 0, "UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)) == 0"); -} /* end LC_OperatorCompare_Test_DataUDWordLE */ +} void LC_OperatorCompare_Test_DataFloatLE(void) { @@ -868,7 +868,7 @@ void LC_OperatorCompare_Test_DataFloatLE(void) UtAssert_True(Result == LC_WATCH_TRUE, "Result == LC_WATCH_TRUE"); UtAssert_True(UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)) == 0, "UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)) == 0"); -} /* end LC_OperatorCompare_Test_DataFloatLE */ +} void LC_OperatorCompare_Test_DataTypeError(void) { @@ -903,7 +903,7 @@ void LC_OperatorCompare_Test_DataTypeError(void) strCmpResult = strncmp(ExpectedEventString, context_CFE_EVS_SendEvent[0].Spec, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH); UtAssert_True(strCmpResult == 0, "Event string matched expected result, '%s'", context_CFE_EVS_SendEvent[0].Spec); -} /* end LC_OperatorCompare_Test_DataTypeError */ +} void LC_SignedCompare_Test_LE(void) { @@ -921,7 +921,7 @@ void LC_SignedCompare_Test_LE(void) UtAssert_True(Result == LC_WATCH_TRUE, "Result == LC_WATCH_TRUE"); UtAssert_True(UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)) == 0, "UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)) == 0"); -} /* end LC_SignedCompare_Test_LE */ +} void LC_SignedCompare_Test_LT(void) { @@ -939,7 +939,7 @@ void LC_SignedCompare_Test_LT(void) UtAssert_True(Result == LC_WATCH_TRUE, "Result == LC_WATCH_TRUE"); UtAssert_True(UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)) == 0, "UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)) == 0"); -} /* end LC_SignedCompare_Test_LT */ +} void LC_SignedCompare_Test_EQ(void) { @@ -957,7 +957,7 @@ void LC_SignedCompare_Test_EQ(void) UtAssert_True(Result == LC_WATCH_TRUE, "Result == LC_WATCH_TRUE"); UtAssert_True(UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)) == 0, "UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)) == 0"); -} /* end LC_SignedCompare_Test_EQ */ +} void LC_SignedCompare_Test_NE(void) { @@ -975,7 +975,7 @@ void LC_SignedCompare_Test_NE(void) UtAssert_True(Result == LC_WATCH_TRUE, "Result == LC_WATCH_TRUE"); UtAssert_True(UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)) == 0, "UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)) == 0"); -} /* end LC_SignedCompare_Test_NE */ +} void LC_SignedCompare_Test_GT(void) { @@ -993,7 +993,7 @@ void LC_SignedCompare_Test_GT(void) UtAssert_True(Result == LC_WATCH_TRUE, "Result == LC_WATCH_TRUE"); UtAssert_True(UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)) == 0, "UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)) == 0"); -} /* end LC_SignedCompare_Test_GT */ +} void LC_SignedCompare_Test_GE(void) { @@ -1011,7 +1011,7 @@ void LC_SignedCompare_Test_GE(void) UtAssert_True(Result == LC_WATCH_TRUE, "Result == LC_WATCH_TRUE"); UtAssert_True(UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)) == 0, "UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)) == 0"); -} /* end LC_SignedCompare_Test_GE */ +} void LC_SignedCompare_Test_InvalidOperatorID(void) { @@ -1041,7 +1041,7 @@ void LC_SignedCompare_Test_InvalidOperatorID(void) strCmpResult = strncmp(ExpectedEventString, context_CFE_EVS_SendEvent[0].Spec, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH); UtAssert_True(strCmpResult == 0, "Event string matched expected result, '%s'", context_CFE_EVS_SendEvent[0].Spec); -} /* end LC_SignedCompare_Test_InvalidOperatorID */ +} void LC_UnsignedCompare_Test_LE(void) { @@ -1059,7 +1059,7 @@ void LC_UnsignedCompare_Test_LE(void) UtAssert_True(Result == LC_WATCH_TRUE, "Result == LC_WATCH_TRUE"); UtAssert_True(UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)) == 0, "UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)) == 0"); -} /* end LC_UnsignedCompare_Test_LE */ +} void LC_UnsignedCompare_Test_LT(void) { @@ -1077,7 +1077,7 @@ void LC_UnsignedCompare_Test_LT(void) UtAssert_True(Result == LC_WATCH_TRUE, "Result == LC_WATCH_TRUE"); UtAssert_True(UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)) == 0, "UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)) == 0"); -} /* end LC_UnsignedCompare_Test_LT */ +} void LC_UnsignedCompare_Test_EQ(void) { @@ -1095,7 +1095,7 @@ void LC_UnsignedCompare_Test_EQ(void) UtAssert_True(Result == LC_WATCH_TRUE, "Result == LC_WATCH_TRUE"); UtAssert_True(UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)) == 0, "UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)) == 0"); -} /* end LC_UnsignedCompare_Test_EQ */ +} void LC_UnsignedCompare_Test_NE(void) { @@ -1113,7 +1113,7 @@ void LC_UnsignedCompare_Test_NE(void) UtAssert_True(Result == LC_WATCH_TRUE, "Result == LC_WATCH_TRUE"); UtAssert_True(UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)) == 0, "UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)) == 0"); -} /* end LC_UnsignedCompare_Test_NE */ +} void LC_UnsignedCompare_Test_GT(void) { @@ -1131,7 +1131,7 @@ void LC_UnsignedCompare_Test_GT(void) UtAssert_True(Result == LC_WATCH_TRUE, "Result == LC_WATCH_TRUE"); UtAssert_True(UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)) == 0, "UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)) == 0"); -} /* end LC_UnsignedCompare_Test_GT */ +} void LC_UnsignedCompare_Test_GE(void) { @@ -1149,7 +1149,7 @@ void LC_UnsignedCompare_Test_GE(void) UtAssert_True(Result == LC_WATCH_TRUE, "Result == LC_WATCH_TRUE"); UtAssert_True(UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)) == 0, "UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)) == 0"); -} /* end LC_UnsignedCompare_Test_GE */ +} void LC_UnsignedCompare_Test_InvalidOperatorID(void) { @@ -1178,7 +1178,7 @@ void LC_UnsignedCompare_Test_InvalidOperatorID(void) strCmpResult = strncmp(ExpectedEventString, context_CFE_EVS_SendEvent[0].Spec, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH); UtAssert_True(strCmpResult == 0, "Event string matched expected result, '%s'", context_CFE_EVS_SendEvent[0].Spec); -} /* end LC_UnsignedCompare_Test_InvalidOperatorID */ +} void LC_FloatCompare_Test_LE(void) { @@ -1199,7 +1199,7 @@ void LC_FloatCompare_Test_LE(void) UtAssert_True(Result == LC_WATCH_TRUE, "Result == LC_WATCH_TRUE"); UtAssert_True(UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)) == 0, "UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)) == 0"); -} /* end LC_FloatCompare_Test_LE */ +} void LC_FloatCompare_Test_LT(void) { @@ -1220,7 +1220,7 @@ void LC_FloatCompare_Test_LT(void) UtAssert_True(Result == LC_WATCH_TRUE, "Result == LC_WATCH_TRUE"); UtAssert_True(UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)) == 0, "UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)) == 0"); -} /* end LC_FloatCompare_Test_LT */ +} void LC_FloatCompare_Test_EQ(void) { @@ -1241,7 +1241,7 @@ void LC_FloatCompare_Test_EQ(void) UtAssert_True(Result == LC_WATCH_TRUE, "Result == LC_WATCH_TRUE"); UtAssert_True(UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)) == 0, "UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)) == 0"); -} /* end LC_FloatCompare_Test_EQ */ +} void LC_FloatCompare_Test_EQFail(void) { @@ -1262,7 +1262,7 @@ void LC_FloatCompare_Test_EQFail(void) UtAssert_True(Result == LC_WATCH_FALSE, "Result == LC_WATCH_FALSE"); UtAssert_True(UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)) == 0, "UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)) == 0"); -} /* end LC_FloatCompare_Test_EQ */ +} void LC_FloatCompare_Test_NE(void) { @@ -1283,7 +1283,7 @@ void LC_FloatCompare_Test_NE(void) UtAssert_True(Result == LC_WATCH_TRUE, "Result == LC_WATCH_TRUE"); UtAssert_True(UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)) == 0, "UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)) == 0"); -} /* end LC_FloatCompare_Test_NE */ +} void LC_FloatCompare_Test_NEFail(void) { @@ -1304,7 +1304,7 @@ void LC_FloatCompare_Test_NEFail(void) UtAssert_True(Result == LC_WATCH_FALSE, "Result == LC_WATCH_FALSE"); UtAssert_True(UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)) == 0, "UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)) == 0"); -} /* end LC_FloatCompare_Test_NE */ +} void LC_FloatCompare_Test_GT(void) { @@ -1325,7 +1325,7 @@ void LC_FloatCompare_Test_GT(void) UtAssert_True(Result == LC_WATCH_TRUE, "Result == LC_WATCH_TRUE"); UtAssert_True(UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)) == 0, "UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)) == 0"); -} /* end LC_FloatCompare_Test_GT */ +} void LC_FloatCompare_Test_GE(void) { @@ -1346,7 +1346,7 @@ void LC_FloatCompare_Test_GE(void) UtAssert_True(Result == LC_WATCH_TRUE, "Result == LC_WATCH_TRUE"); UtAssert_True(UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)) == 0, "UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)) == 0"); -} /* end LC_FloatCompare_Test_GE */ +} void LC_FloatCompare_Test_InvalidOperatorID(void) { @@ -1378,7 +1378,7 @@ void LC_FloatCompare_Test_InvalidOperatorID(void) strCmpResult = strncmp(ExpectedEventString, context_CFE_EVS_SendEvent[0].Spec, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH); UtAssert_True(strCmpResult == 0, "Event string matched expected result, '%s'", context_CFE_EVS_SendEvent[0].Spec); -} /* end LC_FloatCompare_Test_InvalidOperatorID */ +} void LC_FloatCompare_Test_NaN(void) { @@ -1411,7 +1411,7 @@ void LC_FloatCompare_Test_NaN(void) strCmpResult = strncmp(ExpectedEventString, context_CFE_EVS_SendEvent[0].Spec, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH); UtAssert_True(strCmpResult == 0, "Event string matched expected result, '%s'", context_CFE_EVS_SendEvent[0].Spec); -} /* end LC_FloatCompare_Test_NaN */ +} void LC_WPOffsetValid_Test_DataUByte(void) { @@ -1436,7 +1436,7 @@ void LC_WPOffsetValid_Test_DataUByte(void) UtAssert_True(Result == true, "Result == true"); UtAssert_True(UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)) == 0, "UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)) == 0"); -} /* end LC_WPOffsetValid_Test_DataUByte */ +} void LC_WPOffsetValid_Test_UWordLE(void) { @@ -1461,7 +1461,7 @@ void LC_WPOffsetValid_Test_UWordLE(void) UtAssert_True(Result == true, "Result == true"); UtAssert_True(UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)) == 0, "UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)) == 0"); -} /* end LC_WPOffsetValid_Test_UWordLE */ +} void LC_WPOffsetValid_Test_UDWordLE(void) { @@ -1486,7 +1486,7 @@ void LC_WPOffsetValid_Test_UDWordLE(void) UtAssert_True(Result == true, "Result == true"); UtAssert_True(UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)) == 0, "UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)) == 0"); -} /* end LC_WPOffsetValid_Test_UDWordLE */ +} void LC_WPOffsetValid_Test_FloatLE(void) { @@ -1510,7 +1510,7 @@ void LC_WPOffsetValid_Test_FloatLE(void) UtAssert_True(Result == true, "Result == true"); UtAssert_True(UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)) == 0, "UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)) == 0"); -} /* end LC_WPOffsetValid_Test_FloatLE */ +} void LC_WPOffsetValid_Test_DataTypeError(void) { @@ -1547,7 +1547,7 @@ void LC_WPOffsetValid_Test_DataTypeError(void) strCmpResult = strncmp(ExpectedEventString, context_CFE_EVS_SendEvent[0].Spec, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH); UtAssert_True(strCmpResult == 0, "Event string matched expected result, '%s'", context_CFE_EVS_SendEvent[0].Spec); -} /* end LC_WPOffsetValid_Test_DataTypeError */ +} void LC_WPOffsetValid_Test_OffsetError(void) { @@ -1587,7 +1587,7 @@ void LC_WPOffsetValid_Test_OffsetError(void) strCmpResult = strncmp(ExpectedEventString, context_CFE_EVS_SendEvent[0].Spec, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH); UtAssert_True(strCmpResult == 0, "Event string matched expected result, '%s'", context_CFE_EVS_SendEvent[0].Spec); -} /* end LC_WPOffsetValid_Test_OffsetError */ +} void LC_GetSizedWPData_Test_DataByte(void) { @@ -1611,7 +1611,7 @@ void LC_GetSizedWPData_Test_DataByte(void) UtAssert_True(SizedData == 1, "SizedData == 1"); UtAssert_True(UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)) == 0, "UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)) == 0"); -} /* end LC_GetSizedWPData_Test_DataByte */ +} void LC_GetSizedWPData_Test_DataUByte(void) { @@ -1635,7 +1635,7 @@ void LC_GetSizedWPData_Test_DataUByte(void) UtAssert_True(SizedData == 1, "SizedData == 1"); UtAssert_True(UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)) == 0, "UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)) == 0"); -} /* end LC_GetSizedWPData_Test_DataUByte */ +} void LC_GetSizedWPData_Test_DataWordBELittleEndian(void) { @@ -1659,7 +1659,7 @@ void LC_GetSizedWPData_Test_DataWordBELittleEndian(void) UtAssert_True(SizedData == 0x0102, "SizedData == 0x0102"); UtAssert_True(UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)) == 0, "UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)) == 0"); -} /* end LC_GetSizedWPData_Test_DataWordBELittleEndian */ +} void LC_GetSizedWPData_Test_DataWordLELittleEndian(void) { @@ -1683,7 +1683,7 @@ void LC_GetSizedWPData_Test_DataWordLELittleEndian(void) UtAssert_True(SizedData == 0x0201, "SizedData == 0x0201"); UtAssert_True(UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)) == 0, "UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)) == 0"); -} /* end LC_GetSizedWPData_Test_DataWordLELittleEndian */ +} void LC_GetSizedWPData_Test_DataUWordBELittleEndian(void) { @@ -1707,7 +1707,7 @@ void LC_GetSizedWPData_Test_DataUWordBELittleEndian(void) UtAssert_True(SizedData == 0x0102, "SizedData == 0x0102"); UtAssert_True(UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)) == 0, "UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)) == 0"); -} /* end LC_GetSizedWPData_Test_DataUWordBELittleEndian */ +} void LC_GetSizedWPData_Test_DataUWordLELittleEndian(void) { @@ -1731,7 +1731,7 @@ void LC_GetSizedWPData_Test_DataUWordLELittleEndian(void) UtAssert_True(SizedData == 0x0201, "SizedData == 0x0201"); UtAssert_True(UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)) == 0, "UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)) == 0"); -} /* end LC_GetSizedWPData_Test_DataUWordLELittleEndian */ +} void LC_GetSizedWPData_Test_DataFloatBELittleEndian(void) { @@ -1755,7 +1755,7 @@ void LC_GetSizedWPData_Test_DataFloatBELittleEndian(void) UtAssert_True(SizedData == 0x01020304, "SizedData == 0x01020304"); UtAssert_True(UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)) == 0, "UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)) == 0"); -} /* end LC_GetSizedWPData_Test_DataFloatBELittleEndian */ +} void LC_GetSizedWPData_Test_DataFloatLELittleEndian(void) { @@ -1779,7 +1779,7 @@ void LC_GetSizedWPData_Test_DataFloatLELittleEndian(void) UtAssert_True(SizedData == 0x04030201, "SizedData == 0x04030201"); UtAssert_True(UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)) == 0, "UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)) == 0"); -} /* end LC_GetSizedWPData_Test_DataFloatLELittleEndian */ +} void LC_GetSizedWPData_Test_DataTypeError(void) { @@ -1818,7 +1818,7 @@ void LC_GetSizedWPData_Test_DataTypeError(void) strCmpResult = strncmp(ExpectedEventString, context_CFE_EVS_SendEvent[0].Spec, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH); UtAssert_True(strCmpResult == 0, "Event string matched expected result, '%s'", context_CFE_EVS_SendEvent[0].Spec); -} /* end LC_GetSizedWPData_Test_DataTypeError */ +} void LC_ValidateWDT_Test_UnusedTableEntry(void) { @@ -1848,7 +1848,7 @@ void LC_ValidateWDT_Test_UnusedTableEntry(void) strCmpResult = strncmp(ExpectedEventString, context_CFE_EVS_SendEvent[0].Spec, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH); UtAssert_True(strCmpResult == 0, "Event string matched expected result, '%s'", context_CFE_EVS_SendEvent[0].Spec); -} /* end LC_ValidateWDT_Test_UnusedTableEntry */ +} void LC_ValidateWDT_Test_AllDataTypes(void) { @@ -1904,7 +1904,7 @@ void LC_ValidateWDT_Test_AllDataTypes(void) strCmpResult = strncmp(ExpectedEventString2, context_CFE_EVS_SendEvent[1].Spec, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH); UtAssert_True(strCmpResult == 0, "Event string 2 matched expected result, '%s'", context_CFE_EVS_SendEvent[1].Spec); -} /* end LC_ValidateWDT_Test_UnusedTableEntry */ +} void LC_ValidateWDT_Test_AllOperatorIDs(void) { @@ -1956,7 +1956,7 @@ void LC_ValidateWDT_Test_AllOperatorIDs(void) strCmpResult = strncmp(ExpectedEventString2, context_CFE_EVS_SendEvent[1].Spec, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH); UtAssert_True(strCmpResult == 0, "Event string 2 matched expected result, '%s'", context_CFE_EVS_SendEvent[1].Spec); -} /* end LC_ValidateWDT_Test_UnusedTableEntry */ +} void LC_ValidateWDT_Test_InvalidDataType(void) { @@ -1999,7 +1999,7 @@ void LC_ValidateWDT_Test_InvalidDataType(void) strCmpResult = strncmp(ExpectedEventString2, context_CFE_EVS_SendEvent[1].Spec, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH); UtAssert_True(strCmpResult == 0, "Event string matched expected result, '%s'", context_CFE_EVS_SendEvent[1].Spec); -} /* end LC_ValidateWDT_Test_InvalidDataType */ +} void LC_ValidateWDT_Test_InvalidOperator(void) { @@ -2041,7 +2041,7 @@ void LC_ValidateWDT_Test_InvalidOperator(void) strCmpResult = strncmp(ExpectedEventString2, context_CFE_EVS_SendEvent[1].Spec, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH); UtAssert_True(strCmpResult == 0, "Event string matched expected result, '%s'", context_CFE_EVS_SendEvent[1].Spec); -} /* end LC_ValidateWDT_Test_InvalidOperator */ +} void LC_ValidateWDT_Test_BadMessageID(void) { @@ -2083,7 +2083,7 @@ void LC_ValidateWDT_Test_BadMessageID(void) strCmpResult = strncmp(ExpectedEventString2, context_CFE_EVS_SendEvent[1].Spec, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH); UtAssert_True(strCmpResult == 0, "Event string matched expected result, '%s'", context_CFE_EVS_SendEvent[1].Spec); -} /* end LC_ValidateWDT_Test_BadMessageID */ +} void LC_ValidateWDT_Test_NaN(void) { @@ -2124,7 +2124,7 @@ void LC_ValidateWDT_Test_NaN(void) strCmpResult = strncmp(ExpectedEventString2, context_CFE_EVS_SendEvent[1].Spec, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH); UtAssert_True(strCmpResult == 0, "Event string matched expected result, '%s'", context_CFE_EVS_SendEvent[1].Spec); -} /* end LC_ValidateWDT_Test_NaN */ +} void LC_ValidateWDT_Test_Inf(void) { @@ -2166,7 +2166,7 @@ void LC_ValidateWDT_Test_Inf(void) strCmpResult = strncmp(ExpectedEventString2, context_CFE_EVS_SendEvent[1].Spec, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH); UtAssert_True(strCmpResult == 0, "Event string matched expected result, '%s'", context_CFE_EVS_SendEvent[1].Spec); -} /* end LC_ValidateWDT_Test_Inf */ +} void LC_ValidateWDT_Test_FloatingPointPassed(void) { @@ -2199,7 +2199,7 @@ void LC_ValidateWDT_Test_FloatingPointPassed(void) strCmpResult = strncmp(ExpectedEventString, context_CFE_EVS_SendEvent[0].Spec, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH); UtAssert_True(strCmpResult == 0, "Event string matched expected result, '%s'", context_CFE_EVS_SendEvent[0].Spec); -} /* end LC_ValidateWDT_Test_FloatingPointPassed */ +} void LC_ValidateWDT_Test_NonFloatingPointPassed(void) { @@ -2232,7 +2232,7 @@ void LC_ValidateWDT_Test_NonFloatingPointPassed(void) strCmpResult = strncmp(ExpectedEventString, context_CFE_EVS_SendEvent[0].Spec, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH); UtAssert_True(strCmpResult == 0, "Event string matched expected result, '%s'", context_CFE_EVS_SendEvent[0].Spec); -} /* end LC_ValidateWDT_Test_NonFloatingPointPassed */ +} void LC_ValidateWDT_Test_FloatBE(void) { @@ -2278,7 +2278,7 @@ void LC_Uint32IsNAN_Test_True(void) UtAssert_True(Result == true, "Result == true"); UtAssert_True(UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)) == 0, "UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)) == 0"); -} /* end LC_Uint32IsNAN_Test_True */ +} void LC_Uint32IsNAN_Test_False(void) { @@ -2291,7 +2291,7 @@ void LC_Uint32IsNAN_Test_False(void) UtAssert_True(Result == false, "Result == false"); UtAssert_True(UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)) == 0, "UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)) == 0"); -} /* end LC_Uint32IsNAN_Test_False */ +} void LC_Uint32IsInfinite_Test_True(void) { @@ -2304,7 +2304,7 @@ void LC_Uint32IsInfinite_Test_True(void) UtAssert_True(Result == true, "Result == true"); UtAssert_True(UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)) == 0, "UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)) == 0"); -} /* end LC_Uint32IsInfinite_Test_True */ +} void LC_Uint32IsInfinite_Test_False(void) { @@ -2317,7 +2317,7 @@ void LC_Uint32IsInfinite_Test_False(void) UtAssert_True(Result == false, "Result == false"); UtAssert_True(UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)) == 0, "UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)) == 0"); -} /* end LC_Uint32IsInfinite_Test_False */ +} void LC_Uint32IsInfinite_Test_False2(void) { @@ -2330,7 +2330,7 @@ void LC_Uint32IsInfinite_Test_False2(void) UtAssert_True(Result == false, "Result == false"); UtAssert_True(UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)) == 0, "UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)) == 0"); -} /* end LC_Uint32IsInfinite_Test_False2 */ +} void UtTest_Setup(void) { @@ -2472,7 +2472,4 @@ void UtTest_Setup(void) UtTest_Add(LC_Uint32IsInfinite_Test_False, LC_Test_Setup, LC_Test_TearDown, "LC_Uint32IsInfinite_Test_False"); UtTest_Add(LC_Uint32IsInfinite_Test_False2, LC_Test_Setup, LC_Test_TearDown, "LC_Uint32IsInfinite_Test_False2"); -} -/************************/ -/* End of File Comment */ -/************************/ +} \ No newline at end of file