LCOV - code coverage report
Current view: top level - unit_tests/tests/util - test_honda_crc.cpp (source / functions) Hit Total Coverage
Test: coverage.info Lines: 6 6 100.0 %
Date: 2024-12-19 02:33:10 Functions: 8 8 100.0 %

          Line data    Source code
       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           1 :         ASSERT_EQ(140, crc_hondak_calc(data, 3));
       9             : }
      10             : 
      11             : // https://rusefi.com/forum/viewtopic.php?p=47283#p47283
      12           4 : TEST(util, crc8hondak_2) {
      13           1 :         const uint8_t data[] = {0, 0xD0, 0x06, 0};
      14           1 :         ASSERT_EQ(0x62, crc_hondak_calc(data, 4));
      15             : }

Generated by: LCOV version 1.14