foxBMS - Unit Tests
1.2.1
The foxBMS Unit Tests API Documentation
|
Test for the Maxim 1785x driver tools. More...
#include "unity.h"
#include "Mockfassert.h"
#include "Mockmxm_cfg.h"
#include "mxm_1785x_tools.h"
#include "test_assert_helper.h"
Go to the source code of this file.
Test for the Maxim 1785x driver tools.
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:
def
Definition in file test_mxm_1785x_tools.c.
void setUp | ( | void | ) |
Definition at line 67 of file test_mxm_1785x_tools.c.
void tearDown | ( | void | ) |
Definition at line 70 of file test_mxm_1785x_tools.c.
void testConversionExtractAndInsertRoundTripFullScale | ( | void | ) |
void testConversionExtractAndInsertRoundTripNull | ( | void | ) |
void testConversionExtractAndInsertRoundTripSomeValue | ( | void | ) |
void testMXM_ConvertFullScale | ( | void | ) |
void testMXM_ConvertHalfScale | ( | void | ) |
void testMXM_ConvertInvalidConversionType | ( | void | ) |
void testMXM_ConvertLowScale | ( | void | ) |
void testMXM_ConvertModuleToStringFirstInFirstString | ( | void | ) |
void testMXM_ConvertModuleToStringFirstInSecondString | ( | void | ) |
void testMXM_ConvertModuleToStringNullPointer | ( | void | ) |
void testMXM_ConvertModuleToStringSecondInFirstString | ( | void | ) |
void testMXM_ConvertModuleToStringSecondInSecondString | ( | void | ) |
void testMXM_ConvertModuleToStringTooManyForMaxim | ( | void | ) |
void testMXM_ConvertModuleToStringTooManyForSystem | ( | void | ) |
void testMXM_ConvertSelfCheck | ( | void | ) |
void testMXM_ExtractValueFromRegisterADCValue | ( | void | ) |
test MXM_ExtractValueFromRegister() with an ADC value
Definition at line 79 of file test_mxm_1785x_tools.c.
void testMXM_ExtractValueFromRegisterLsbBitSet | ( | void | ) |
test MXM_ExtractValueFromRegister() with a single bit in lsb
Definition at line 88 of file test_mxm_1785x_tools.c.
void testMXM_ExtractValueFromRegisterLsbBitUnset | ( | void | ) |
test MXM_ExtractValueFromRegister() without a bit in lsb
Definition at line 97 of file test_mxm_1785x_tools.c.
void testMXM_ExtractValueFromRegisterLsbCompletelySet | ( | void | ) |
test MXM_ExtractValueFromRegister() with whole lsb
Definition at line 106 of file test_mxm_1785x_tools.c.
void testMXM_ExtractValueFromRegisterMsbBitSet | ( | void | ) |
test MXM_ExtractValueFromRegister() with a single bit in msb
Definition at line 124 of file test_mxm_1785x_tools.c.
void testMXM_ExtractValueFromRegisterMsbBitSetFullBytes | ( | void | ) |
test MXM_ExtractValueFromRegister() with a single bit in msb and with full byte
Definition at line 133 of file test_mxm_1785x_tools.c.
void testMXM_ExtractValueFromRegisterMsbBitUnset | ( | void | ) |
test MXM_ExtractValueFromRegister() without a bit in msb
Definition at line 142 of file test_mxm_1785x_tools.c.
void testMXM_ExtractValueFromRegisterMsbCompletelySet | ( | void | ) |
test MXM_ExtractValueFromRegister() with whole msb
Definition at line 115 of file test_mxm_1785x_tools.c.
void testMXM_ExtractValueFromRegisterTest | ( | void | ) |
void testMXM_FirstSetBitTest | ( | void | ) |
void testMXM_Unipolar14BitInto16BitWithInput0 | ( | void | ) |
void testMXM_Unipolar14BitInto16BitWithInput3FFF | ( | void | ) |
void testMXM_VoltageIntoUnipolar14Bit | ( | void | ) |
void testScaleAndConvert2500 | ( | void | ) |
void testScaleAndConvert500 | ( | void | ) |