Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing test cases for table services API parameter/return combinations #1868

Closed
jphickey opened this issue Aug 23, 2021 · 0 comments · Fixed by #1872 or #1885
Closed

Missing test cases for table services API parameter/return combinations #1868

jphickey opened this issue Aug 23, 2021 · 0 comments · Fixed by #1872 or #1885

Comments

@jphickey
Copy link
Contributor

jphickey commented Aug 23, 2021

Is your feature request related to a problem? Please describe.
The following parameter/return code combinations are not exercised by the table services functional test:

  + condition: CFE_TBL_DumpToBuffer[any]=>CFE_ES_ERR_RESOURCEID_NOT_VALID
  + condition: CFE_TBL_GetAddress[<null-pointer>@0]=>ERROR_NULL_POINTER
  + condition: CFE_TBL_GetAddress[any]=>CFE_ES_ERR_RESOURCEID_NOT_VALID
  + condition: CFE_TBL_GetAddress[any]=>CFE_TBL_BAD_ARGUMENT
  + condition: CFE_TBL_GetInfo[<null-pointer>@1]=>ERROR_NULL_POINTER
  + condition: CFE_TBL_GetStatus[any]=>CFE_ES_ERR_RESOURCEID_NOT_VALID
  + condition: CFE_TBL_Load[any]=>CFE_ES_ERR_RESOURCEID_NOT_VALID
  + condition: CFE_TBL_Load[any]=>CFE_TBL_ERR_BAD_CONTENT_ID
  + condition: CFE_TBL_Load[any]=>CFE_TBL_ERR_BAD_SUBTYPE_ID
  + condition: CFE_TBL_Load[any]=>CFE_TBL_ERR_FILE_TOO_LARGE
  + condition: CFE_TBL_Load[any]=>CFE_TBL_ERR_ILLEGAL_SRC_TYPE
  + condition: CFE_TBL_Load[any]=>CFE_TBL_ERR_LOAD_INCOMPLETE
  + condition: CFE_TBL_Load[any]=>CFE_TBL_ERR_NO_STD_HEADER
  + condition: CFE_TBL_Load[any]=>CFE_TBL_ERR_NO_TBL_HEADER
  + condition: CFE_TBL_Load[any]=>CFE_TBL_ERR_PARTIAL_LOAD
  + condition: CFE_TBL_Load[any]=>CFE_TBL_WARN_PARTIAL_LOAD
  + condition: CFE_TBL_Load[any]=>CFE_TBL_WARN_SHORT_FILE
  + condition: CFE_TBL_Manage[any]=>CFE_ES_ERR_RESOURCEID_NOT_VALID
  + condition: CFE_TBL_Modified[any]=>CFE_ES_ERR_RESOURCEID_NOT_VALID
  + condition: CFE_TBL_NotifyByMessage[CFE_TBL_Handle_t@0]=>ERROR_RESOURCEID_INVALID
  + condition: CFE_TBL_NotifyByMessage[any]=>CFE_ES_ERR_RESOURCEID_NOT_VALID
  + condition: CFE_TBL_NotifyByMessage[any]=>CFE_TBL_ERR_INVALID_HANDLE
  + condition: CFE_TBL_Register[<null-pointer>@0]=>ERROR_NULL_POINTER
  + condition: CFE_TBL_Register[any]=>CFE_ES_ERR_RESOURCEID_NOT_VALID
  + condition: CFE_TBL_Register[any]=>CFE_TBL_BAD_ARGUMENT
  + condition: CFE_TBL_Register[any]=>CFE_TBL_ERR_DUPLICATE_DIFF_SIZE
  + condition: CFE_TBL_Register[any]=>CFE_TBL_ERR_HANDLES_FULL
  + condition: CFE_TBL_ReleaseAddress[any]=>CFE_ES_ERR_RESOURCEID_NOT_VALID
  + condition: CFE_TBL_Share[<null-pointer>@0]=>ERROR_NULL_POINTER
  + condition: CFE_TBL_Share[any]=>CFE_ES_ERR_RESOURCEID_NOT_VALID
  + condition: CFE_TBL_Share[any]=>CFE_TBL_ERR_HANDLES_FULL
  + condition: CFE_TBL_Unregister[CFE_TBL_Handle_t@0]=>ERROR_RESOURCEID_INVALID
  + condition: CFE_TBL_Unregister[any]=>CFE_ES_ERR_RESOURCEID_NOT_VALID
  + condition: CFE_TBL_Update[any]=>CFE_ES_ERR_RESOURCEID_NOT_VALID
  + condition: CFE_TBL_Validate[any]=>CFE_ES_ERR_RESOURCEID_NOT_VALID

Describe the solution you'd like
Solve each missing case in one of three ways:

  1. Add a test case covering that option
  2. Update the API documentation
  3. Add a @covtest tag if the combination can only be reasonably achieved in a coverage environment

Additional context
Part of/related to #1724 (each subsystem will be handled separately)

Requester Info
Joseph Hickey, Vantage Systems, Inc.

@jphickey jphickey self-assigned this Aug 23, 2021
jphickey added a commit to jphickey/cFE that referenced this issue Aug 23, 2021
Adds TBL functional test cases to cover all missing items that
were identified as part of the scrub in issue nasa#1724.

Where a specific condition is not testable because it requires
a failure of another subsystem, it is marked as `covtest` to
indicate it is only verifiable in coverage test environment.
astrogeco added a commit that referenced this issue Aug 24, 2021
@skliper skliper added this to the 7.0.0 milestone Sep 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants