Skip to content
Snippets Groups Projects
Verified Commit 8d551d5f authored by Petr Špaček's avatar Petr Špaček
Browse files

fixup! build: added `make coverage` to compute C and Lua code coverage

Test coverage results for Lua code were off-by-one line.
parent f8d92071
Branches
Tags
1 merge request!407CI coverage: build coverage report
Pipeline #29842 passed with stages
in 6 minutes and 24 seconds
......@@ -29,7 +29,7 @@ local function write_lcov_info(files)
print('TN:')
print(string.format('SF:%s', fname))
for i, hits in pairs(finfo.coverage) do
print(string.format('DA:%d,%d', i - 1, hits))
print(string.format('DA:%d,%d', i, hits))
instrumented = instrumented + 1
if hits > 0 then
nonzero = nonzero + 1
......@@ -53,4 +53,4 @@ for _, fname in ipairs(arg) do
end
-- Write results
write_lcov_info(all_files)
\ No newline at end of file
write_lcov_info(all_files)
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment