nasa / FM

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

Use generated stubs for all internal functions #79

Closed jphickey closed 1 year ago

jphickey commented 1 year ago

Checklist (Please check before submitting)

Is your feature request related to a problem? Please describe. FM divides its coverage test into separate units and uses stubs for all units other than the unit under test. However, this appears to be a mixture of hand-written and some generated stubs, and the hand written stubs can diverge from the implementation.

Describe the solution you'd like Re-run the UT assert generate stubs script and use the generated stubs only.

Additional context This makes the UT stubs easier to maintain - any time a header file changes, just re-run the tool and re-commit the stubs. It is best not to modify the generated stub in any way, if it can be avoided.

Requester Info Joseph Hickey, Vantage Systems, Inc.