-
Notifications
You must be signed in to change notification settings - Fork 22
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
Add at least one conditional for unit testing #8
Comments
skliper
added a commit
that referenced
this issue
Dec 30, 2019
Fix #8 Reviewed and approved at 2019-12-18 CCB
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your feature request related to a problem? Please describe.
In the process of providing useful examples for unit testing, the sample lib should contain
at least one "if" statement to demonstrate how the alternate paths can be exercised in UT.
Describe the solution you'd like
Add a call to a simple C library function during
SAMPLE_LibInit
, and have an alternate return code (not CFE_SUCCESS) as based off the result. Unit test can then force the alternate path to execute.Describe alternatives you've considered
N/A
Additional context
This will add considerable value to the UT examples
Requester Info
Joseph Hickey, Vantage Systems, Inc.
The text was updated successfully, but these errors were encountered: