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
Is your feature request related to a problem? Please describe.
The software is implemented to support multiple options but currently just utilizes a single option to build one executable (see issue #1886) which means it's impossible to cover all the branches.
Example - can't hit the non-success case of the following branch since the selected implementation for CFE_MSG_GetType used internally can't fail (although conceptually an implementation could test the header version and reject if it doesn't match for example):
The current call to CFE_MSG_GetType in CFE_MSG_GenerateChecksum is to cfe/modules/msg/fsw/src/cfe_msg_ccsdspri.c. This function only returns CFE_SUCCESS. Cannot hit the Non-success case for "status" in CFE_MSG_GenerateChecksum with the current build. Full code coverage is not possible unless we follow what @skliper recommends or rewrite CFE_MSG_GenerateCheckSum. @dmknutsen@dzbaker
Is your feature request related to a problem? Please describe.
The software is implemented to support multiple options but currently just utilizes a single option to build one executable (see issue #1886) which means it's impossible to cover all the branches.
Example - can't hit the non-success case of the following branch since the selected implementation for
CFE_MSG_GetType
used internally can't fail (although conceptually an implementation could test the header version and reject if it doesn't match for example):cFE/modules/msg/fsw/src/cfe_msg_sechdr_checksum.c
Lines 79 to 83 in 5e41330
Describe the solution you'd like
This could be solved by implementing #1886 (related to #631)
Describe alternatives you've considered
None
Additional context
Results in 6 branches not being exercised.
Requester Info
Jacob Hageman - NASA/GSFC
The text was updated successfully, but these errors were encountered: