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
I performed a cursory search to see if the bug report is relevant, not redundant, nor in conflict with other tickets.
Describe the bug
Looking at code coverage for #17, there are several functions in fm_cmd_utils.c that have else statements that can never be reached. These functions check the return value of FM_GetFilenameState.
Total uncovered here is 7 lines 7 branches.
To Reproduce
Functions with else statements that can never be reached:
Checklist (Please check before submitting)
Describe the bug
Looking at code coverage for #17, there are several functions in fm_cmd_utils.c that have else statements that can never be reached. These functions check the return value of FM_GetFilenameState.
Total uncovered here is 7 lines 7 branches.
To Reproduce
Functions with else statements that can never be reached:
FM_VerifyFileClosed
FM/fsw/src/fm_cmd_utils.c
Lines 315 to 320 in 51707f2
FM_VerifyFileExists
FM/fsw/src/fm_cmd_utils.c
Lines 361 to 366 in 51707f2
FM_VerifyFileNoExists
FM/fsw/src/fm_cmd_utils.c
Lines 407 to 412 in 51707f2
FM_VerifyFileNotOpen
FM/fsw/src/fm_cmd_utils.c
Lines 458 to 462 in 51707f2
FM_VerifyDirExists
FM/fsw/src/fm_cmd_utils.c
Lines 503 to 510 in 51707f2
FM_VerifyDirNoExists
FM/fsw/src/fm_cmd_utils.c
Lines 549 to 556 in 51707f2
Function if an if statement that can't be reached
FM/fsw/src/fm_cmd_utils.c
Lines 150 to 153 in 51707f2
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: