| Line | Branch | Decision | Exec | Source |
|---|---|---|---|---|
| 1 | #include "pch.h" | |||
| 2 | #include "crc8hondak.h" | |||
| 3 | ||||
| 4 | ||||
| 5 | 4 | TEST(util, crc8hondak) { | ||
| 6 | 1 | const uint8_t data[] = {0x1, 0, 0}; | ||
| 7 | ||||
| 8 |
4/9✓ Branch 3 taken 1 time.
✓ Branch 7 taken 1 time.
✗ Branch 12 not taken.
✓ Branch 13 taken 1 time.
✗ Branch 16 not taken.
✗ Branch 21 not taken.
✗ Branch 24 not taken.
✓ Branch 31 taken 1 time.
✗ Branch 32 not taken.
|
1 | ASSERT_EQ(140, crc_hondak_calc(data, 3)); | |
| 9 | } | |||
| 10 | ||||
| 11 | // https://rusefi.com/forum/viewtopic.php?p=47283#p47283 | |||
| 12 | TEST(util, crc8hondak_2) { | |||
| 13 | const uint8_t data[] = {0, 0xD0, 0x06, 0}; | |||
| 14 | ASSERT_EQ(0x62, crc_hondak_calc(data, 4)); | |||
| 15 | } | |||
| 16 |