-
Notifications
You must be signed in to change notification settings - Fork 203
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
Fix #2341, Rename TimeA/TimeB parameter to improve consistency #2342
base: main
Are you sure you want to change the base?
Fix #2341, Rename TimeA/TimeB parameter to improve consistency #2342
Conversation
{ | ||
UT_GenStub_SetupReturnBuffer(CFE_TIME_Compare, CFE_TIME_Compare_t); | ||
|
||
UT_GenStub_AddParam(CFE_TIME_Compare, CFE_TIME_SysTime_t, TimeA); | ||
UT_GenStub_AddParam(CFE_TIME_Compare, CFE_TIME_SysTime_t, TimeB); | ||
UT_GenStub_AddParam(CFE_TIME_Compare, CFE_TIME_SysTime_t, Time1); |
Check warning
Code scanning / CodeQL
Uses of recursion Warning
UT_Stub_RegisterContextWithMetaData
UT_GenStub_AddParam(CFE_TIME_Compare, CFE_TIME_SysTime_t, TimeA); | ||
UT_GenStub_AddParam(CFE_TIME_Compare, CFE_TIME_SysTime_t, TimeB); | ||
UT_GenStub_AddParam(CFE_TIME_Compare, CFE_TIME_SysTime_t, Time1); | ||
UT_GenStub_AddParam(CFE_TIME_Compare, CFE_TIME_SysTime_t, Time2); |
Check warning
Code scanning / CodeQL
Uses of recursion Warning
UT_Stub_RegisterContextWithMetaData
@@ -614,7 +614,7 @@ | |||
/* | |||
** Compute the amount of time "since" the tone... | |||
*/ | |||
if (CFE_TIME_Compare(Reference->CurrentLatch, Reference->AtToneLatch) == CFE_TIME_A_LT_B) | |||
if (CFE_TIME_Compare(Reference->CurrentLatch, Reference->AtToneLatch) == CFE_TIME_1_LT_2) |
Check warning
Code scanning / CodeQL
Uses of recursion Warning
CFE_TIME_Compare
The function CFE_TIME_GetReference is indirectly recursive via this call to
CFE_TIME_Compare
@@ -614,7 +614,7 @@ | |||
/* | |||
** Compute the amount of time "since" the tone... | |||
*/ | |||
if (CFE_TIME_Compare(Reference->CurrentLatch, Reference->AtToneLatch) == CFE_TIME_A_LT_B) | |||
if (CFE_TIME_Compare(Reference->CurrentLatch, Reference->AtToneLatch) == CFE_TIME_1_LT_2) |
Check warning
Code scanning / CodeQL
Side effect in a Boolean expression Warning
@@ -57,12 +57,12 @@ | |||
* Generated stub function for CFE_TIME_Compare() | |||
* ---------------------------------------------------- | |||
*/ | |||
CFE_TIME_Compare_t CFE_TIME_Compare(CFE_TIME_SysTime_t TimeA, CFE_TIME_SysTime_t TimeB) | |||
CFE_TIME_Compare_t CFE_TIME_Compare(CFE_TIME_SysTime_t Time1, CFE_TIME_SysTime_t Time2) |
Check notice
Code scanning / CodeQL
Long function without assertion Note
@@ -452,50 +452,50 @@ | |||
* See description in header file for argument/return detail | |||
* | |||
*-----------------------------------------------------------------*/ | |||
CFE_TIME_Compare_t CFE_TIME_Compare(CFE_TIME_SysTime_t TimeA, CFE_TIME_SysTime_t TimeB) | |||
CFE_TIME_Compare_t CFE_TIME_Compare(CFE_TIME_SysTime_t Time1, CFE_TIME_SysTime_t Time2) |
Check notice
Code scanning / CodeQL
Long function without assertion Note
e7e04bf
to
232e463
Compare
Checklist
Describe the contribution
TimeA
/TimeB
parameter names toTime1
/Time2
- making all consistent across cFE (the other option is to reverse this and convert the others to TimeA/TimeB)CFE_TIME_A_GT_B
andCFE_TIME_A_LT_B
toCFE_TIME_1_GT_2
andCFE_TIME_1_LT_2
to remain consistentNote: If this PR is merged it will require a minor update to SC which utilises the
CFE_TIME_A_GT_B
enumerated type here and in a couple of tests.Testing performed
GitHub CI actions all passing successfully (incl. Build + Run, Coverage/Functional Tests etc.).
Expected behavior changes
Contributor Info
Avi Weiss @thnkslprpt