-
Notifications
You must be signed in to change notification settings - Fork 215
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
UT_SetForceFail is a misnomer #559
Comments
I concur on that this is not an ideal name -- I was actually thinking this for quite some time but didn't think changing the name was worth breaking test code over it. But it shouldn't be too hard to apply the deprecation procedure if folks agree to change the name. How about Should discuss in CCB - fairly easy to do, just need other stakeholders to concur on this one. |
I agree with your call on the name. Thanks. |
@astrogeco I will not be joining today. I believe @jphickey and I are agreed on the name change. Even if you wish to change the name to something else, as long as the method name is descriptive of what it can accomplish, I am flexible on the actual words used. |
CCB 2020-08-19 APPROVED concept |
Fix nasa#559, Resolve doxygen warnings
Describe the bug
UT_SetForceFail assumes that the value given, that is being set as return value, is a fail condition. There may be sometimes that a function returns more than 1 value that is not considered a fail.
To Reproduce
Use in a unit test where there is a stubbed function with more than 1 "successful" return value.
Expected behavior
Change to something like UT_SetForcedReturnValue to make it more generic.
Code snips
N/A
System observed on:
RHEL 7.6
Additional context
Not a required or debilitating situation, but a name change may be make the function's effects more clear.
Reporter Info
Alan Gibson NASA-GSFC/587
The text was updated successfully, but these errors were encountered: