... | ... | @@ -1244,16 +1244,16 @@ The templates follow the [Order of Includes](#order-of-includes) and we do not d |
|
|
|
|
|
## Header File
|
|
|
```c
|
|
|
/* SIBROS TECHNOLOGIES, INC. CONFIDENTIAL
|
|
|
/***********************************************************************************************************************
|
|
|
* SIBROS TECHNOLOGIES, INC. CONFIDENTIAL
|
|
|
* Copyright (c) 2018 - 2020 Sibros Technologies, Inc.
|
|
|
* All Rights Reserved.
|
|
|
* NOTICE: All information contained herein is, and remains the property of Sibros Technologies,
|
|
|
* Inc. and its suppliers, if any. The intellectual and technical concepts contained herein are
|
|
|
* proprietary to Sibros Technologies, Inc. and its suppliers and may be covered by U.S. and Foreign
|
|
|
* Patents, patents in process, and are protected by trade secret or copyright law. Dissemination of
|
|
|
* this information or reproduction of this material is strictly forbidden unless prior written
|
|
|
* permission is obtained from Sibros Technologies, Inc.
|
|
|
*/
|
|
|
* NOTICE: All information contained herein is, and remains the property of Sibros Technologies, Inc. and its suppliers,
|
|
|
* if any. The intellectual and technical concepts contained herein are proprietary to Sibros Technologies, Inc. and its
|
|
|
* suppliers and may be covered by U.S. and Foreign Patents, patents in process, and are protected by trade secret or
|
|
|
* copyright law. Dissemination of this information or reproduction of this material is strictly forbidden unless prior
|
|
|
* written permission is obtained from Sibros Technologies, Inc.
|
|
|
**********************************************************************************************************************/
|
|
|
|
|
|
/**
|
|
|
* @file
|
... | ... | @@ -1269,33 +1269,32 @@ The templates follow the [Order of Includes](#order-of-includes) and we do not d |
|
|
extern "C" {
|
|
|
#endif
|
|
|
|
|
|
#include <string.h>
|
|
|
|
|
|
#include "others.h"
|
|
|
|
|
|
/*******************************************************************************
|
|
|
/***********************************************************************************************************************
|
|
|
*
|
|
|
* D E F I N E S
|
|
|
* I N C L U D E S
|
|
|
*
|
|
|
******************************************************************************/
|
|
|
**********************************************************************************************************************/
|
|
|
// include <standard_header.h>
|
|
|
|
|
|
// include "sibros_header.h"
|
|
|
|
|
|
/*******************************************************************************
|
|
|
/***********************************************************************************************************************
|
|
|
*
|
|
|
* E N U M S
|
|
|
* D E F I N E S
|
|
|
*
|
|
|
******************************************************************************/
|
|
|
**********************************************************************************************************************/
|
|
|
|
|
|
/*******************************************************************************
|
|
|
/***********************************************************************************************************************
|
|
|
*
|
|
|
* T Y P E D E F S
|
|
|
* T Y P E D E F S
|
|
|
*
|
|
|
******************************************************************************/
|
|
|
**********************************************************************************************************************/
|
|
|
|
|
|
/*******************************************************************************
|
|
|
/***********************************************************************************************************************
|
|
|
*
|
|
|
* P U B L I C F U N C T I O N S
|
|
|
* F U N C T I O N D E C L A R A T I O N S
|
|
|
*
|
|
|
******************************************************************************/
|
|
|
**********************************************************************************************************************/
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
} /* extern "C" */
|
... | ... | @@ -1305,180 +1304,140 @@ extern "C" { |
|
|
|
|
|
## Private Header File
|
|
|
```c
|
|
|
/* SIBROS TECHNOLOGIES, INC. CONFIDENTIAL
|
|
|
/***********************************************************************************************************************
|
|
|
* SIBROS TECHNOLOGIES, INC. CONFIDENTIAL
|
|
|
* Copyright (c) 2018 - 2020 Sibros Technologies, Inc.
|
|
|
* All Rights Reserved.
|
|
|
* NOTICE: All information contained herein is, and remains the property of Sibros Technologies,
|
|
|
* Inc. and its suppliers, if any. The intellectual and technical concepts contained herein are
|
|
|
* proprietary to Sibros Technologies, Inc. and its suppliers and may be covered by U.S. and Foreign
|
|
|
* Patents, patents in process, and are protected by trade secret or copyright law. Dissemination of
|
|
|
* this information or reproduction of this material is strictly forbidden unless prior written
|
|
|
* permission is obtained from Sibros Technologies, Inc.
|
|
|
*/
|
|
|
* NOTICE: All information contained herein is, and remains the property of Sibros Technologies, Inc. and its suppliers,
|
|
|
* if any. The intellectual and technical concepts contained herein are proprietary to Sibros Technologies, Inc. and its
|
|
|
* suppliers and may be covered by U.S. and Foreign Patents, patents in process, and are protected by trade secret or
|
|
|
* copyright law. Dissemination of this information or reproduction of this material is strictly forbidden unless prior
|
|
|
* written permission is obtained from Sibros Technologies, Inc.
|
|
|
**********************************************************************************************************************/
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
extern "C" {
|
|
|
#endif
|
|
|
|
|
|
#include <string.h>
|
|
|
/***********************************************************************************************************************
|
|
|
*
|
|
|
* I N C L U D E S
|
|
|
*
|
|
|
**********************************************************************************************************************/
|
|
|
// #include <standard_header.h>
|
|
|
|
|
|
#include "others.h"
|
|
|
// #include "sibros_header.h"
|
|
|
|
|
|
#include "sl_unit_test_facilitator.h"
|
|
|
|
|
|
/*******************************************************************************
|
|
|
/***********************************************************************************************************************
|
|
|
*
|
|
|
* D E F I N E S
|
|
|
* D E F I N E S
|
|
|
*
|
|
|
******************************************************************************/
|
|
|
**********************************************************************************************************************/
|
|
|
|
|
|
/*******************************************************************************
|
|
|
/***********************************************************************************************************************
|
|
|
*
|
|
|
* E N U M S
|
|
|
* T Y P E D E F S
|
|
|
*
|
|
|
******************************************************************************/
|
|
|
**********************************************************************************************************************/
|
|
|
|
|
|
/*******************************************************************************
|
|
|
/***********************************************************************************************************************
|
|
|
*
|
|
|
* T Y P E D E F S
|
|
|
* P R I V A T E D A T A D E C L A R A T I O N S
|
|
|
*
|
|
|
******************************************************************************/
|
|
|
**********************************************************************************************************************/
|
|
|
|
|
|
/*******************************************************************************
|
|
|
/***********************************************************************************************************************
|
|
|
*
|
|
|
* P R I V A T E F U N C T I O N D E C L A R A T I O N S
|
|
|
* F U N C T I O N D E C L A R A T I O N S
|
|
|
*
|
|
|
******************************************************************************/
|
|
|
**********************************************************************************************************************/
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
} /* extern "C" */
|
|
|
#endif
|
|
|
|
|
|
```
|
|
|
|
|
|
## Source File
|
|
|
```c
|
|
|
/* SIBROS TECHNOLOGIES, INC. CONFIDENTIAL
|
|
|
/***********************************************************************************************************************
|
|
|
* SIBROS TECHNOLOGIES, INC. CONFIDENTIAL
|
|
|
* Copyright (c) 2018 - 2020 Sibros Technologies, Inc.
|
|
|
* All Rights Reserved.
|
|
|
* NOTICE: All information contained herein is, and remains the property of Sibros Technologies,
|
|
|
* Inc. and its suppliers, if any. The intellectual and technical concepts contained herein are
|
|
|
* proprietary to Sibros Technologies, Inc. and its suppliers and may be covered by U.S. and Foreign
|
|
|
* Patents, patents in process, and are protected by trade secret or copyright law. Dissemination of
|
|
|
* this information or reproduction of this material is strictly forbidden unless prior written
|
|
|
* permission is obtained from Sibros Technologies, Inc.
|
|
|
*/
|
|
|
|
|
|
#include <string.h>
|
|
|
|
|
|
#include "others.h"
|
|
|
|
|
|
#include "module.h"
|
|
|
#include "module_private.h" // either this
|
|
|
#include "sl_unit_test_facilitator.h" // or this
|
|
|
|
|
|
/*******************************************************************************
|
|
|
* NOTICE: All information contained herein is, and remains the property of Sibros Technologies, Inc. and its suppliers,
|
|
|
* if any. The intellectual and technical concepts contained herein are proprietary to Sibros Technologies, Inc. and its
|
|
|
* suppliers and may be covered by U.S. and Foreign Patents, patents in process, and are protected by trade secret or
|
|
|
* copyright law. Dissemination of this information or reproduction of this material is strictly forbidden unless prior
|
|
|
* written permission is obtained from Sibros Technologies, Inc.
|
|
|
**********************************************************************************************************************/
|
|
|
|
|
|
/***********************************************************************************************************************
|
|
|
*
|
|
|
* P R I V A T E D A T A D E F I N I T I O N S
|
|
|
* I N C L U D E S
|
|
|
*
|
|
|
******************************************************************************/
|
|
|
// Private data for modules should be rare because all data should be part
|
|
|
// of the module's struct instance
|
|
|
**********************************************************************************************************************/
|
|
|
|
|
|
/*******************************************************************************
|
|
|
*
|
|
|
* P R I V A T E F U N C T I O N S
|
|
|
*
|
|
|
******************************************************************************/
|
|
|
|
|
|
/*******************************************************************************
|
|
|
*
|
|
|
* P U B L I C F U N C T I O N S
|
|
|
*
|
|
|
******************************************************************************/
|
|
|
|
|
|
```
|
|
|
|
|
|
## Unity Unit-Test Source File
|
|
|
```c
|
|
|
/* SIBROS TECHNOLOGIES, INC. CONFIDENTIAL
|
|
|
* Copyright (c) 2018 - 2020 Sibros Technologies, Inc.
|
|
|
* All Rights Reserved.
|
|
|
* NOTICE: All information contained herein is, and remains the property of Sibros Technologies,
|
|
|
* Inc. and its suppliers, if any. The intellectual and technical concepts contained herein are
|
|
|
* proprietary to Sibros Technologies, Inc. and its suppliers and may be covered by U.S. and Foreign
|
|
|
* Patents, patents in process, and are protected by trade secret or copyright law. Dissemination of
|
|
|
* this information or reproduction of this material is strictly forbidden unless prior written
|
|
|
* permission is obtained from Sibros Technologies, Inc.
|
|
|
*/
|
|
|
|
|
|
#include <clibs.h>
|
|
|
// #include <standard_header.h>
|
|
|
|
|
|
#include "unity.h"
|
|
|
|
|
|
// Mocks
|
|
|
#include "Mockdatabase.h"
|
|
|
// #include "Mockother_header.h"
|
|
|
|
|
|
// Build real code (not Mocks) for these
|
|
|
#include "sl_utils.h"
|
|
|
// #include "sibros_header.h"
|
|
|
|
|
|
// Module includes
|
|
|
#include "module.h"
|
|
|
#include "module_private.h" // either this
|
|
|
#include "sl_unit_test_facilitator.h" // or this
|
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
*
|
|
|
* D E F I N E S
|
|
|
*
|
|
|
******************************************************************************/
|
|
|
// #include "module.h"
|
|
|
// #include "module_private.h" // either this
|
|
|
// #include "sl_unit_test_facilitator.h" // or this
|
|
|
|
|
|
/*****************************************************************************
|
|
|
/***********************************************************************************************************************
|
|
|
*
|
|
|
* E N U M S
|
|
|
* D E F I N E S
|
|
|
*
|
|
|
******************************************************************************/
|
|
|
**********************************************************************************************************************/
|
|
|
|
|
|
/******************************************************************************
|
|
|
/***********************************************************************************************************************
|
|
|
*
|
|
|
* T Y P E D E F S
|
|
|
* T Y P E D E F S
|
|
|
*
|
|
|
******************************************************************************/
|
|
|
**********************************************************************************************************************/
|
|
|
|
|
|
/******************************************************************************
|
|
|
/***********************************************************************************************************************
|
|
|
*
|
|
|
* P R I V A T E F U N C T I O N D E C L A R A T I O N S
|
|
|
* P R I V A T E F U N C T I O N D E C L A R A T I O N S
|
|
|
*
|
|
|
******************************************************************************/
|
|
|
**********************************************************************************************************************/
|
|
|
|
|
|
/******************************************************************************
|
|
|
/***********************************************************************************************************************
|
|
|
*
|
|
|
* P R I V A T E D A T A D E F I N I T I O N S
|
|
|
* P R I V A T E D A T A D E C L A R A T I O N S
|
|
|
*
|
|
|
*****************************************************************************/
|
|
|
**********************************************************************************************************************/
|
|
|
|
|
|
/******************************************************************************
|
|
|
/***********************************************************************************************************************
|
|
|
*
|
|
|
* P R I V A T E F U N C T I O N S
|
|
|
* P R I V A T E F U N C T I O N S
|
|
|
*
|
|
|
*****************************************************************************/
|
|
|
**********************************************************************************************************************/
|
|
|
|
|
|
/******************************************************************************
|
|
|
/***********************************************************************************************************************
|
|
|
*
|
|
|
* T E S T S E T U P & T E A R D O W N
|
|
|
* T E S T S E T U P & T E A R D O W N
|
|
|
*
|
|
|
*****************************************************************************/
|
|
|
**********************************************************************************************************************/
|
|
|
void setUp(void) {}
|
|
|
|
|
|
void tearDown(void) {}
|
|
|
|
|
|
/******************************************************************************
|
|
|
/***********************************************************************************************************************
|
|
|
*
|
|
|
* T E S T S
|
|
|
* T E S T S
|
|
|
*
|
|
|
*****************************************************************************/
|
|
|
**********************************************************************************************************************/
|
|
|
|
|
|
void test_simple(void) {}
|
|
|
```
|
... | ... | |