foxBMS - Unit Tests
1.5.0
The foxBMS Unit Tests API Documentation
|
Tests for the CAN driver callbacks. More...
#include "unity.h"
#include "Mockcan.h"
#include "Mockcan_cbs_tx_debug-response.h"
#include "Mockcan_cbs_tx_unsupported-message.h"
#include "Mockdatabase.h"
#include "Mockdiag.h"
#include "Mockfoxmath.h"
#include "Mockfram.h"
#include "Mockimd.h"
#include "Mockos.h"
#include "Mockreset.h"
#include "database_cfg.h"
#include "can_cbs_rx.h"
#include "can_cfg_rx-message-definitions.h"
#include "can_helper.h"
#include "test_assert_helper.h"
#include <stdbool.h>
#include <stdint.h>
Go to the source code of this file.
Macros | |
#define | MULTIPLEXER_VALUE_VERSION_INFORMATION (0u) |
#define | MULTIPLEXER_VALUE_RTC (1u) |
#define | MULTIPLEXER_VALUE_SOFTWARE_RESET (2u) |
#define | MULTIPLEXER_VALUE_FRAM_INITIALIZATION (3u) |
#define | MULTIPLEXER_VALUE_TIME_INFO (4u) |
#define | INVALID_MULTIPLEXER_VALUE (99u) |
Tests for the CAN driver callbacks.
SPDX-License-Identifier: BSD-3-Clause
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
We kindly request you to use one or more of the following phrases to refer to foxBMS in your hardware, software, documentation or advertising materials:
Definition in file test_can_cbs_rx_debug.c.
#define INVALID_MULTIPLEXER_VALUE (99u) |
Definition at line 87 of file test_can_cbs_rx_debug.c.
#define MULTIPLEXER_VALUE_FRAM_INITIALIZATION (3u) |
Definition at line 85 of file test_can_cbs_rx_debug.c.
#define MULTIPLEXER_VALUE_RTC (1u) |
Definition at line 83 of file test_can_cbs_rx_debug.c.
#define MULTIPLEXER_VALUE_SOFTWARE_RESET (2u) |
Definition at line 84 of file test_can_cbs_rx_debug.c.
#define MULTIPLEXER_VALUE_TIME_INFO (4u) |
Definition at line 86 of file test_can_cbs_rx_debug.c.
#define MULTIPLEXER_VALUE_VERSION_INFORMATION (0u) |
Definition at line 82 of file test_can_cbs_rx_debug.c.
void setUp | ( | void | ) |
Definition at line 140 of file test_can_cbs_rx_debug.c.
void tearDown | ( | void | ) |
Definition at line 143 of file test_can_cbs_rx_debug.c.
void testCANRX_CheckIfBmsSoftwareVersionIsRequested | ( | void | ) |
void testCANRX_CheckIfFramInitializationIsRequested | ( | void | ) |
void testCANRX_CheckIfMcuLotNumberIsRequested | ( | void | ) |
void testCANRX_CheckIfMcuUniqueDieIdIsRequested | ( | void | ) |
void testCANRX_CheckIfMcuWaferInformationIsRequested | ( | void | ) |
void testCANRX_CheckIfSoftwareResetIsRequested | ( | void | ) |
void testCANRX_CheckIfTimeInfoIsRequested | ( | void | ) |
void testCANRX_DebugAssertionsParamCanData | ( | void | ) |
void testCANRX_DebugAssertionsParamDatabaseShim | ( | void | ) |
void testCANRX_DebugAssertionsParamMessage | ( | void | ) |
void testCANRX_DebugFramInitializationMultiplexerValue | ( | void | ) |
void testCANRX_DebugInvalidMultiplexerValues | ( | void | ) |
void testCANRX_DebugRtcMultiplexerValue | ( | void | ) |
void testCANRX_DebugSoftwareResetMultiplexerValue | ( | void | ) |
void testCANRX_DebugTimeInfoMultiplexerValue | ( | void | ) |
void testCANRX_DebugVersionInformationMultiplexerValue | ( | void | ) |
void testCANRX_GetDay | ( | void | ) |
void testCANRX_GetHours | ( | void | ) |
void testCANRX_GetHundredthOfSeconds | ( | void | ) |
void testCANRX_GetMinutes | ( | void | ) |
void testCANRX_GetMonth | ( | void | ) |
void testCANRX_GetSeconds | ( | void | ) |
void testCANRX_GetWeekday | ( | void | ) |
void testCANRX_GetYear | ( | void | ) |
void testCANRX_ProcessFramInitializationMux | ( | void | ) |
void testCANRX_ProcessRtcMux | ( | void | ) |
void testCANRX_ProcessSoftwareResetMux | ( | void | ) |
void testCANRX_ProcessTimeInfoMux | ( | void | ) |
void testCANRX_ProcessVersionInformationMux | ( | void | ) |
void testCANRX_TriggerBmsSoftwareVersionMessage | ( | void | ) |
void testCANRX_TriggerMcuLotNumberMessage | ( | void | ) |
void testCANRX_TriggerMcuUniqueDieIdMessage | ( | void | ) |
void testCANRX_TriggerMcuWaferInformationMessage | ( | void | ) |
void testCANRX_TriggerTimeInfoMessage | ( | void | ) |
const CAN_SHIM_s can_kShim |
variable for storing and passing on the local database table handles
Definition at line 121 of file test_can_cbs_rx_debug.c.
|
static |
Definition at line 102 of file test_can_cbs_rx_debug.c.
|
static |
Definition at line 105 of file test_can_cbs_rx_debug.c.
|
static |
Definition at line 111 of file test_can_cbs_rx_debug.c.
|
static |
Definition at line 112 of file test_can_cbs_rx_debug.c.
|
static |
Definition at line 104 of file test_can_cbs_rx_debug.c.
|
static |
Definition at line 116 of file test_can_cbs_rx_debug.c.
|
static |
Definition at line 114 of file test_can_cbs_rx_debug.c.
|
static |
Definition at line 106 of file test_can_cbs_rx_debug.c.
|
static |
Definition at line 108 of file test_can_cbs_rx_debug.c.
|
static |
Definition at line 115 of file test_can_cbs_rx_debug.c.
|
static |
Definition at line 109 of file test_can_cbs_rx_debug.c.
|
static |
Definition at line 110 of file test_can_cbs_rx_debug.c.
|
static |
Definition at line 107 of file test_can_cbs_rx_debug.c.
|
static |
Definition at line 103 of file test_can_cbs_rx_debug.c.
OS_QUEUE ftsk_rtcSetTimeQueue = NULL_PTR |
handle of the rtc driver data queue
Definition at line 119 of file test_can_cbs_rx_debug.c.
OS_QUEUE imd_canDataQueue = NULL_PTR |
Definition at line 118 of file test_can_cbs_rx_debug.c.
const CAN_ENDIANNESS_e invalidEndianness = CAN_LITTLE_ENDIAN |
Definition at line 99 of file test_can_cbs_rx_debug.c.
const uint8_t testCanDataZeroArray[CAN_MAX_DLC] = {0} |
Definition at line 97 of file test_can_cbs_rx_debug.c.
const uint64_t testMessageDataZero = 0u |
Definition at line 98 of file test_can_cbs_rx_debug.c.
const CAN_ENDIANNESS_e validEndianness = CAN_BIG_ENDIAN |
Definition at line 100 of file test_can_cbs_rx_debug.c.
CAN_MESSAGE_PROPERTIES_s validRxDebugTestMessage |
Definition at line 89 of file test_can_cbs_rx_debug.c.