GCC Code Coverage Report


Directory: ./
File: unit_tests/tests/lua/test_lua_hd.cpp
Date: 2025-10-03 00:57:22
Coverage Exec Excl Total
Lines: 100.0% 6 0 6
Functions: 100.0% 3 0 3
Branches: 42.9% 3 0 7
Decisions: -% 0 - 0

Line Branch Decision Exec Source
1 #include "pch.h"
2 #include "rusefi_lua.h"
3 #include "lua_lib.h"
4
5 4 TEST(LuaHd2023, packet) {
6 1 const char* realHDdata = R"(
7
8 function testFunc()
9 return crc8_j1850({0x00, 0x00, 0x00, 0x00, 0xa0, 0x00, 0x2d }, 7)
10 end
11
12 )";
13
3/7
✓ Branch 5 taken 1 time.
✓ Branch 9 taken 1 time.
✗ Branch 15 not taken.
✓ Branch 16 taken 1 time.
✗ Branch 19 not taken.
✗ Branch 24 not taken.
✗ Branch 27 not taken.
1 EXPECT_EQ(testLuaReturnsNumberOrNil(realHDdata).value_or(0), 0xfc);
14 1 }
15