You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note the first two would go away if command handling gets updated as part of this enhancement nasa/cFE#2038, or could separate the functions (different c file) to stub and exercise error cases, or could include the HK request MID in the table (refactor to match TBL implementation). Either way these are low risk since it's just defensive programming. The else condition in the dwell table could just be replaced with a comment that there is no action for a case that isn't matched, also low risk.
Checklist (Please check before submitting)
Describe the bug
To Reproduce
Functions with statements that can never be reached:
md_app.c: MD_ExecRequest
can't hit default case since command codes are already verified by
MD_SearchCmdHndlrTbl
MD/fsw/src/md_app.c
Lines 666 to 671 in 853c1e0
md_app.c: MD_SearchCmdHndlrTbl
can't reach this else statement because the message type can't be anything other than
MD_CMD_MSGTYPE
orMD_TERM_MSGTYPE
MD/fsw/src/md_app.c
Lines 761 to 766 in 853c1e0
md_dwell_tbl.c: MD_TableValidationFunc
MD/fsw/src/md_dwell_tbl.c
Lines 145 to 149 in 853c1e0
Expected behavior
100% coverage
Code snips
See above
System observed on:
CI
Additional context
None
Reporter Info
Haven Carlson, NASA
The text was updated successfully, but these errors were encountered: