nasa / FM

The Core Flight System (cFS) File Manager (FM) application.
Apache License 2.0
43 stars 25 forks source link

fm_cmd_utils.c has branches that can't be reached (7/7) #34

Closed havencarlson closed 2 years ago

havencarlson commented 2 years ago

Checklist (Please check before submitting)

Describe the bug Looking at code coverage for https://github.com/nasa/FM/issues/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:

Function if an if statement that can't be reached

Expected behavior 100% coverage

Code snips See above

System observed on: CI

Additional context None

Reporter Info Haven Carlson, NASA