Added AlignAfterOpenBracket: AlwaysBreak and BinPackArguments: true to clang-format. Updated test/bacnet c/h files with updated format.
This commit is contained in:
@@ -20,7 +20,8 @@
|
||||
* @brief Test
|
||||
*/
|
||||
/* decode the whole APDU - mainly used for unit testing */
|
||||
static int reject_decode_apdu(uint8_t *apdu,
|
||||
static int reject_decode_apdu(
|
||||
uint8_t *apdu,
|
||||
unsigned apdu_len,
|
||||
uint8_t *invoke_id,
|
||||
uint8_t *reject_reason)
|
||||
@@ -112,8 +113,8 @@ static void testRejectErrorCode(void)
|
||||
error_code = reject_convert_to_error_code(reject_reason);
|
||||
test_reject_reason = reject_convert_error_code(error_code);
|
||||
if (test_reject_reason != reject_reason) {
|
||||
printf("Reject: result=%u reject-code=%u\n",
|
||||
test_reject_reason,
|
||||
printf(
|
||||
"Reject: result=%u reject-code=%u\n", test_reject_reason,
|
||||
reject_reason);
|
||||
}
|
||||
zassert_equal(test_reject_reason, reject_reason, NULL);
|
||||
@@ -123,16 +124,14 @@ static void testRejectErrorCode(void)
|
||||
* @}
|
||||
*/
|
||||
|
||||
|
||||
#if defined(CONFIG_ZTEST_NEW_API)
|
||||
ZTEST_SUITE(reject_tests, NULL, NULL, NULL, NULL, NULL);
|
||||
#else
|
||||
void test_main(void)
|
||||
{
|
||||
ztest_test_suite(reject_tests,
|
||||
ztest_unit_test(testRejectEncodeDecode),
|
||||
ztest_unit_test(testRejectErrorCode)
|
||||
);
|
||||
ztest_test_suite(
|
||||
reject_tests, ztest_unit_test(testRejectEncodeDecode),
|
||||
ztest_unit_test(testRejectErrorCode));
|
||||
|
||||
ztest_run_test_suite(reject_tests);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user