zephyr/test/drivers/include/test/drivers/test_mocks.h: Format with clang-format
BRANCH=none
TEST=none
(CALL_NUM), FAKE##_fake.call_count); \
zassert_equal( \
FAKE##_fake.arg1_history[(CALL_NUM)], (EXPECTED_REG), \
- "Expected I2C write #%d to register 0x%02x (" \
- #EXPECTED_REG ") but wrote to reg 0x%02x", \
+ "Expected I2C write #%d to register 0x%02x (" #EXPECTED_REG \
+ ") but wrote to reg 0x%02x", \
(CALL_NUM), (EXPECTED_REG), \
FAKE##_fake.arg1_history[(CALL_NUM)]); \
if ((EXPECTED_VAL) != MOCK_IGNORE_VALUE) { \
zassert_equal( \
FAKE##_fake.arg2_history[(CALL_NUM)], \
(EXPECTED_VAL), \
- "Expected I2C write #%d to register 0x%02x (" \
- #EXPECTED_REG ") to write 0x%02x (" \
- #EXPECTED_VAL ") but wrote 0x%02x", \
+ "Expected I2C write #%d to register 0x%02x (" #EXPECTED_REG \
+ ") to write 0x%02x (" #EXPECTED_VAL \
+ ") but wrote 0x%02x", \
(CALL_NUM), (EXPECTED_REG), (EXPECTED_VAL), \
FAKE##_fake.arg2_history[(CALL_NUM)]); \
} \
(CALL_NUM), FAKE##_fake.call_count); \
zassert_equal( \
FAKE##_fake.arg1_history[(CALL_NUM)], (EXPECTED_REG), \
- "Expected I2C read #%d from register 0x%02x (" \
- #EXPECTED_REG ") but read from reg 0x%02x", \
+ "Expected I2C read #%d from register 0x%02x (" #EXPECTED_REG \
+ ") but read from reg 0x%02x", \
(CALL_NUM), (EXPECTED_REG), \
FAKE##_fake.arg1_history[(CALL_NUM)]); \
} while (0)
