Skip to content

Add at least one conditional for unit testing #8

@jphickey

Description

@jphickey

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.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions