Skip to content

Migrate CFE generic integer assert tests to common UT Assert #1124

@jphickey

Description

@jphickey

Is your feature request related to a problem? Please describe.
Recently CFE added a number of useful generic test assertion macros, for greater than / less than, booleans, and other commonly needed checks in the CFE coverage test.

It would be nice to use these same assertions in the functional test too, and perhaps other app/lib tests, since they are pretty generic.

Describe the solution you'd like
Migrate the code from CFE coverage test-specific area into general UT Assert to be usable in the full range of test environments.

Currently the macros and code are in https://github.com/nasa/cFE/tree/main/modules/core_private/ut-stubs, thus private to CFE "coverage" test environment.

Describe alternatives you've considered
Could copy the macros and functions into cfe_assert so it can be used in functional tests, but then there would be two copies, and it would still be limited to CFE (no app/lib tests could use).

Additional context
Putting them into UT assert itself allows for the single/common implementation for both coverage and functional and any other app/lib test.

Requester Info
Joseph Hickey, Vantage Systems, Inc.

Metadata

Metadata

Assignees

Labels

enhancementunit-testTickets related to the OSAL unit testing (functional and/or coverage)

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions