-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
37 changed files
with
12,573 additions
and
0 deletions.
There are no files selected for viewing
105 changes: 105 additions & 0 deletions
105
unit-test-coverage/ut-stubs/src/PCS_arch_ppc_vxPpcLib_stubs.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
/************************************************************************ | ||
* NASA Docket No. GSC-18,719-1, and identified as “core Flight System: Bootes” | ||
* | ||
* Copyright (c) 2020 United States Government as represented by the | ||
* Administrator of the National Aeronautics and Space Administration. | ||
* All Rights Reserved. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); you may | ||
* not use this file except in compliance with the License. You may obtain | ||
* a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
************************************************************************/ | ||
|
||
/** | ||
* @file | ||
* | ||
* Auto-Generated stub implementations for functions defined in PCS_arch_ppc_vxPpcLib header | ||
*/ | ||
|
||
#include "PCS_arch_ppc_vxPpcLib.h" | ||
#include "utgenstub.h" | ||
|
||
/* | ||
* ---------------------------------------------------- | ||
* Generated stub function for PCS_vxDecGet() | ||
* ---------------------------------------------------- | ||
*/ | ||
uint32_t PCS_vxDecGet(void) | ||
{ | ||
UT_GenStub_SetupReturnBuffer(PCS_vxDecGet, uint32_t); | ||
|
||
UT_GenStub_Execute(PCS_vxDecGet, Basic, NULL); | ||
|
||
return UT_GenStub_GetReturnValue(PCS_vxDecGet, uint32_t); | ||
} | ||
|
||
/* | ||
* ---------------------------------------------------- | ||
* Generated stub function for PCS_vxFpscrGet() | ||
* ---------------------------------------------------- | ||
*/ | ||
uint32_t PCS_vxFpscrGet(void) | ||
{ | ||
UT_GenStub_SetupReturnBuffer(PCS_vxFpscrGet, uint32_t); | ||
|
||
UT_GenStub_Execute(PCS_vxFpscrGet, Basic, NULL); | ||
|
||
return UT_GenStub_GetReturnValue(PCS_vxFpscrGet, uint32_t); | ||
} | ||
|
||
/* | ||
* ---------------------------------------------------- | ||
* Generated stub function for PCS_vxFpscrSet() | ||
* ---------------------------------------------------- | ||
*/ | ||
void PCS_vxFpscrSet(uint32_t) | ||
{ | ||
UT_GenStub_AddParam(PCS_vxFpscrSet, , uint32_t); | ||
|
||
UT_GenStub_Execute(PCS_vxFpscrSet, Basic, NULL); | ||
} | ||
|
||
/* | ||
* ---------------------------------------------------- | ||
* Generated stub function for PCS_vxMsrGet() | ||
* ---------------------------------------------------- | ||
*/ | ||
uint32_t PCS_vxMsrGet(void) | ||
{ | ||
UT_GenStub_SetupReturnBuffer(PCS_vxMsrGet, uint32_t); | ||
|
||
UT_GenStub_Execute(PCS_vxMsrGet, Basic, NULL); | ||
|
||
return UT_GenStub_GetReturnValue(PCS_vxMsrGet, uint32_t); | ||
} | ||
|
||
/* | ||
* ---------------------------------------------------- | ||
* Generated stub function for PCS_vxMsrSet() | ||
* ---------------------------------------------------- | ||
*/ | ||
void PCS_vxMsrSet(uint32_t) | ||
{ | ||
UT_GenStub_AddParam(PCS_vxMsrSet, , uint32_t); | ||
|
||
UT_GenStub_Execute(PCS_vxMsrSet, Basic, NULL); | ||
} | ||
|
||
/* | ||
* ---------------------------------------------------- | ||
* Generated stub function for PCS_vxTimeBaseGet() | ||
* ---------------------------------------------------- | ||
*/ | ||
void PCS_vxTimeBaseGet(uint32_t *u, uint32_t *l) | ||
{ | ||
UT_GenStub_AddParam(PCS_vxTimeBaseGet, uint32_t *, u); | ||
UT_GenStub_AddParam(PCS_vxTimeBaseGet, uint32_t *, l); | ||
|
||
UT_GenStub_Execute(PCS_vxTimeBaseGet, Basic, NULL); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
/************************************************************************ | ||
* NASA Docket No. GSC-18,719-1, and identified as “core Flight System: Bootes” | ||
* | ||
* Copyright (c) 2020 United States Government as represented by the | ||
* Administrator of the National Aeronautics and Space Administration. | ||
* All Rights Reserved. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); you may | ||
* not use this file except in compliance with the License. You may obtain | ||
* a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
************************************************************************/ | ||
|
||
/** | ||
* @file | ||
* | ||
* Auto-Generated stub implementations for functions defined in PCS_bsdnet header | ||
*/ | ||
|
||
#include "PCS_bsdnet.h" | ||
#include "utgenstub.h" | ||
|
||
/* | ||
* ---------------------------------------------------- | ||
* Generated stub function for PCS_rtems_bsdnet_do_dhcp_failsafe() | ||
* ---------------------------------------------------- | ||
*/ | ||
void PCS_rtems_bsdnet_do_dhcp_failsafe(void) | ||
{ | ||
|
||
UT_GenStub_Execute(PCS_rtems_bsdnet_do_dhcp_failsafe, Basic, NULL); | ||
} | ||
|
||
/* | ||
* ---------------------------------------------------- | ||
* Generated stub function for PCS_rtems_bsdnet_initialize_network() | ||
* ---------------------------------------------------- | ||
*/ | ||
int PCS_rtems_bsdnet_initialize_network(void) | ||
{ | ||
UT_GenStub_SetupReturnBuffer(PCS_rtems_bsdnet_initialize_network, int); | ||
|
||
UT_GenStub_Execute(PCS_rtems_bsdnet_initialize_network, Basic, NULL); | ||
|
||
return UT_GenStub_GetReturnValue(PCS_rtems_bsdnet_initialize_network, int); | ||
} | ||
|
||
/* | ||
* ---------------------------------------------------- | ||
* Generated stub function for PCS_rtems_fxp_attach() | ||
* ---------------------------------------------------- | ||
*/ | ||
int PCS_rtems_fxp_attach(struct PCS_rtems_bsdnet_ifconfig *, int) | ||
{ | ||
UT_GenStub_SetupReturnBuffer(PCS_rtems_fxp_attach, int); | ||
|
||
UT_GenStub_AddParam(PCS_rtems_fxp_attach, , int); | ||
|
||
UT_GenStub_Execute(PCS_rtems_fxp_attach, Basic, NULL); | ||
|
||
return UT_GenStub_GetReturnValue(PCS_rtems_fxp_attach, int); | ||
} | ||
|
||
/* | ||
* ---------------------------------------------------- | ||
* Generated stub function for PCS_rtems_status_text() | ||
* ---------------------------------------------------- | ||
*/ | ||
const char *PCS_rtems_status_text(PCS_rtems_status_code) | ||
{ | ||
UT_GenStub_SetupReturnBuffer(PCS_rtems_status_text, const char *); | ||
|
||
UT_GenStub_AddParam(PCS_rtems_status_text, , PCS_rtems_status_code); | ||
|
||
UT_GenStub_Execute(PCS_rtems_status_text, Basic, NULL); | ||
|
||
return UT_GenStub_GetReturnValue(PCS_rtems_status_text, const char *); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/************************************************************************ | ||
* NASA Docket No. GSC-18,719-1, and identified as “core Flight System: Bootes” | ||
* | ||
* Copyright (c) 2020 United States Government as represented by the | ||
* Administrator of the National Aeronautics and Space Administration. | ||
* All Rights Reserved. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); you may | ||
* not use this file except in compliance with the License. You may obtain | ||
* a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
************************************************************************/ | ||
|
||
/** | ||
* @file | ||
* | ||
* Auto-Generated stub implementations for functions defined in PCS_cacheLib header | ||
*/ | ||
|
||
#include "PCS_cacheLib.h" | ||
#include "utgenstub.h" | ||
|
||
/* | ||
* ---------------------------------------------------- | ||
* Generated stub function for PCS_cacheTextUpdate() | ||
* ---------------------------------------------------- | ||
*/ | ||
PCS_STATUS PCS_cacheTextUpdate(void *adrs, size_t bytes) | ||
{ | ||
UT_GenStub_SetupReturnBuffer(PCS_cacheTextUpdate, PCS_STATUS); | ||
|
||
UT_GenStub_AddParam(PCS_cacheTextUpdate, void *, adrs); | ||
UT_GenStub_AddParam(PCS_cacheTextUpdate, size_t, bytes); | ||
|
||
UT_GenStub_Execute(PCS_cacheTextUpdate, Basic, NULL); | ||
|
||
return UT_GenStub_GetReturnValue(PCS_cacheTextUpdate, PCS_STATUS); | ||
} |
63 changes: 63 additions & 0 deletions
63
unit-test-coverage/ut-stubs/src/PCS_cfe_configdata_stubs.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
/************************************************************************ | ||
* NASA Docket No. GSC-18,719-1, and identified as “core Flight System: Bootes” | ||
* | ||
* Copyright (c) 2020 United States Government as represented by the | ||
* Administrator of the National Aeronautics and Space Administration. | ||
* All Rights Reserved. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); you may | ||
* not use this file except in compliance with the License. You may obtain | ||
* a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
************************************************************************/ | ||
|
||
/** | ||
* @file | ||
* | ||
* Auto-Generated stub implementations for functions defined in PCS_cfe_configdata header | ||
*/ | ||
|
||
#include "PCS_cfe_configdata.h" | ||
#include "utgenstub.h" | ||
|
||
/* | ||
* ---------------------------------------------------- | ||
* Generated stub function for PCS_System1HzISR() | ||
* ---------------------------------------------------- | ||
*/ | ||
void PCS_System1HzISR(void) | ||
{ | ||
|
||
UT_GenStub_Execute(PCS_System1HzISR, Basic, NULL); | ||
} | ||
|
||
/* | ||
* ---------------------------------------------------- | ||
* Generated stub function for PCS_SystemMain() | ||
* ---------------------------------------------------- | ||
*/ | ||
void PCS_SystemMain(uint32 StartType, uint32 StartSubtype, uint32 ModeId, const char *StartFilePath) | ||
{ | ||
UT_GenStub_AddParam(PCS_SystemMain, uint32, StartType); | ||
UT_GenStub_AddParam(PCS_SystemMain, uint32, StartSubtype); | ||
UT_GenStub_AddParam(PCS_SystemMain, uint32, ModeId); | ||
UT_GenStub_AddParam(PCS_SystemMain, const char *, StartFilePath); | ||
|
||
UT_GenStub_Execute(PCS_SystemMain, Basic, NULL); | ||
} | ||
|
||
/* | ||
* ---------------------------------------------------- | ||
* Generated stub function for PCS_SystemNotify() | ||
* ---------------------------------------------------- | ||
*/ | ||
void PCS_SystemNotify(void) | ||
{ | ||
|
||
UT_GenStub_Execute(PCS_SystemNotify, Basic, NULL); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
/************************************************************************ | ||
* NASA Docket No. GSC-18,719-1, and identified as “core Flight System: Bootes” | ||
* | ||
* Copyright (c) 2020 United States Government as represented by the | ||
* Administrator of the National Aeronautics and Space Administration. | ||
* All Rights Reserved. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); you may | ||
* not use this file except in compliance with the License. You may obtain | ||
* a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
************************************************************************/ | ||
|
||
/** | ||
* @file | ||
* | ||
* Auto-Generated stub implementations for functions defined in PCS_dosFsLib header | ||
*/ | ||
|
||
#include "PCS_dosFsLib.h" | ||
#include "utgenstub.h" | ||
|
||
/* | ||
* ---------------------------------------------------- | ||
* Generated stub function for PCS_dosFsVolFormat() | ||
* ---------------------------------------------------- | ||
*/ | ||
PCS_STATUS PCS_dosFsVolFormat(char *path, int opt, PCS_FUNCPTR pPromptFunc) | ||
{ | ||
UT_GenStub_SetupReturnBuffer(PCS_dosFsVolFormat, PCS_STATUS); | ||
|
||
UT_GenStub_AddParam(PCS_dosFsVolFormat, char *, path); | ||
UT_GenStub_AddParam(PCS_dosFsVolFormat, int, opt); | ||
UT_GenStub_AddParam(PCS_dosFsVolFormat, PCS_FUNCPTR, pPromptFunc); | ||
|
||
UT_GenStub_Execute(PCS_dosFsVolFormat, Basic, NULL); | ||
|
||
return UT_GenStub_GetReturnValue(PCS_dosFsVolFormat, PCS_STATUS); | ||
} |
45 changes: 45 additions & 0 deletions
45
unit-test-coverage/ut-stubs/src/PCS_drv_hdisk_ataDrv_stubs.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
/************************************************************************ | ||
* NASA Docket No. GSC-18,719-1, and identified as “core Flight System: Bootes” | ||
* | ||
* Copyright (c) 2020 United States Government as represented by the | ||
* Administrator of the National Aeronautics and Space Administration. | ||
* All Rights Reserved. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); you may | ||
* not use this file except in compliance with the License. You may obtain | ||
* a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
************************************************************************/ | ||
|
||
/** | ||
* @file | ||
* | ||
* Auto-Generated stub implementations for functions defined in PCS_drv_hdisk_ataDrv header | ||
*/ | ||
|
||
#include "PCS_drv_hdisk_ataDrv.h" | ||
#include "utgenstub.h" | ||
|
||
/* | ||
* ---------------------------------------------------- | ||
* Generated stub function for PCS_ataXbdDevCreate() | ||
* ---------------------------------------------------- | ||
*/ | ||
PCS_device_t PCS_ataXbdDevCreate(int ctrl, int drive, unsigned int nBlks, unsigned int offset, const char *) | ||
{ | ||
UT_GenStub_SetupReturnBuffer(PCS_ataXbdDevCreate, PCS_device_t); | ||
|
||
UT_GenStub_AddParam(PCS_ataXbdDevCreate, int, ctrl); | ||
UT_GenStub_AddParam(PCS_ataXbdDevCreate, int, drive); | ||
UT_GenStub_AddParam(PCS_ataXbdDevCreate, unsigned int, nBlks); | ||
UT_GenStub_AddParam(PCS_ataXbdDevCreate, unsigned int, offset); | ||
|
||
UT_GenStub_Execute(PCS_ataXbdDevCreate, Basic, NULL); | ||
|
||
return UT_GenStub_GetReturnValue(PCS_ataXbdDevCreate, PCS_device_t); | ||
} |
Oops, something went wrong.