-
Notifications
You must be signed in to change notification settings - Fork 57
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 #435, add coverage tests for PSP modules #436
Conversation
|
||
static uint32 CFE_PSP_ConfigPspModuleListLength = 0; | ||
static uint32 CFE_PSP_StandardPspModuleListLength = 0; | ||
CFE_PSP_ModuleListGlobal_t CFE_PSP_MODULE_LIST_GLOBAL; |
Check notice
Code scanning / CodeQL
Global could be static Note
|
||
/*************************************************** | ||
* | ||
* Helper function to initialize a list of modules (not externally called) | ||
* Returns the number of modules initialized | ||
*/ | ||
uint32_t CFE_PSP_ModuleInitList(uint32 BaseId, CFE_StaticModuleLoadEntry_t *ListPtr) | ||
void CFE_PSP_ModuleInitList(CFE_PSP_ModuleListWrapper_t *WrapPtr, uint32 BaseId, CFE_StaticModuleLoadEntry_t *ListPtr) |
Check notice
Code scanning / CodeQL
Long function without assertion Note
* See prototype for full description | ||
*/ | ||
int32 CFE_PSP_Module_FindByName(const char *ModuleName, uint32 *PspModuleId) | ||
uint32 CFE_PSP_Module_SearchNameInList(const CFE_PSP_ModuleListWrapper_t *WrapPtr, const char *ModuleName) |
Check notice
Code scanning / CodeQL
Long function without assertion Note
* | ||
* See prototype for full description | ||
*/ | ||
int32 CFE_PSP_Module_FindByName(const char *ModuleName, uint32 *PspModuleId) |
Check notice
Code scanning / CodeQL
Long function without assertion Note
fc41d65
to
43df4a1
Compare
f09f24e
to
6c99a9d
Compare
Yes, it does! Thanks for keeping an eye on the old issues. There are some doc fixes I need to merge in but after that we should be able to close both of those old issues as well. I will link it. |
8fe4379
to
c7f6359
Compare
The PSP now provides the complete set of stubs. IMPORTANT: This needs to be used in conjunction with nasa/PSP#436 to get the complete set of stubs, otherwise linking will fail.
The PSP now provides the full set of stubs. IMPORTANT: This needs to be merged in conjunction with nasa/PSP#436 to obtain the complete set of stubs. Otherwise the link will fail.
CCB 15 August 2024: Approved pending removal of commented code. |
Fix #435, add coverage tests for PSP modules
*Combines:* cFE equuleus-rc1+dev187 osal equuleus-rc1+dev85 PSP equuleus-rc1+dev48 **Includes:** *cFE* - nasa/cFE#2591 *osal* - nasa/osal#1419 *PSP* - nasa/PSP#436 Co-authored by: Avi Weiss <thnkslprpt@users.noreply.github.com> Co-authored by: Jose Martinez Pedraza <pepepr08@users.noreply.github.com> Co-authored by: Joseph Hickey <jphickey@users.noreply.github.com>
Adds a coverage test implementation for all existing PSP modules. This should get 100% coverage on all lines and branches.
c7f6359
to
fb6c855
Compare
The handler executes after the stub count increments, thus this needs to check for 1 to indicate the first call, not 0.
@dzbaker -- The workflow issue is fixed by the commit I just added. Due to the difference in where this code now executes in the overall flow, the counter is now 1 during the first call, not 0 (handlers execute post-increment). |
*Combines:* cFE equuleus-rc1+dev199 PSP equuleus-rc1+dev49 **Includes:** *cFS* - #791 - #796 *cFE* - nasa/cFE#2599 *PSP* - nasa/PSP#439 - nasa/PSP#436 Co-authored by: Andrew Liounis <aliounis@users.noreply.github.com> Co-authored by: Rich Landau <RichLandau@users.noreply.github.com> Co-authored by: Joseph Hickey <jphickey@users.noreply.github.com>
*Combines:* cFE equuleus-rc1+dev199 PSP equuleus-rc1+dev49 **Includes:** *cFS* - #791 - #796 *cFE* - nasa/cFE#2599 *PSP* - nasa/PSP#439 - nasa/PSP#436 Co-authored by: Andrew Liounis <aliounis@users.noreply.github.com> Co-authored by: Rich Landau <RichLandau@users.noreply.github.com> Co-authored by: Joseph Hickey <jphickey@users.noreply.github.com>
The PSP now provides the complete set of stubs. IMPORTANT: This needs to be used in conjunction with nasa/PSP#436 to get the complete set of stubs, otherwise linking will fail.
The PSP now provides the full set of stubs. IMPORTANT: This needs to be merged in conjunction with nasa/PSP#436 to obtain the complete set of stubs. Otherwise the link will fail.
Checklist (Please check before submitting)
Describe the contribution
Adds a coverage test implementation for all existing PSP modules. This should get 100% coverage on all lines and branches.
Fixes #435
Testing performed
Build and run all tests
Expected behavior changes
Complete coverage tests for PSP modules
System(s) tested on
Debian
Contributor Info - All information REQUIRED for consideration of pull request
Joseph Hickey, Vantage Systems, Inc.