Skip to content
Novus Examples
lcov1.1 KB

Coverage — LCOV with Function Records Only

Records containing FN/FNDA/FNF/FNH and nothing else: no DA lines, no LF or LH. Merge tools that assume every record ends with LF/LH either crash here or invent a zero line count for a file that simply was not line-instrumented.

Preview — first 50 lineslcov
TN:novus-checkout-unit
SF:src/cart/pricing.js
FN:2,unitPrice
FN:8,quantityMultiplier
FN:13,roundHalfUp
FN:19,applyTax
FN:25,bulkRate
FN:31,convertCurrency
FNDA:25,unitPrice
FNDA:8,quantityMultiplier
FNDA:9,roundHalfUp
FNDA:37,applyTax
FNDA:35,bulkRate
FNDA:0,convertCurrency
FNF:6
FNH:5
end_of_record
TN:novus-checkout-unit
SF:src/cart/discounts.js
FN:2,percentageDiscount
FN:8,stackDiscounts
FN:13,isCouponExpired
FN:19,loyaltyTier
FN:25,freeShippingThreshold
FNDA:30,percentageDiscount
FNDA:12,stackDiscounts
FNDA:31,isCouponExpired
FNDA:7,loyaltyTier
FNDA:0,freeShippingThreshold
FNF:5
FNH:4
end_of_record
TN:novus-checkout-unit
SF:src/checkout/session.js
FN:2,createSession
FN:8,expireSession
FN:13,restoreCart
FN:19,rotateToken
FN:25,persistCart
FN:31,readSessionCookie
FNDA:13,createSession
FNDA:36,expireSession
FNDA:26,restoreCart
FNDA:20,rotateToken
FNDA:23,persistCart
FNDA:8,readSessionCookie
FNF:6
FNH:6
end_of_record
TN:novus-checkout-unit
61 lines total — download for the full file.

Specifications

Seed
61200
Format
LCOV tracefile
Records
4
Has Line Records
false
Has Branch Records
false
Functions Found
20
Functions Hit
18
Line Endings
LF

Testing contract

Expected to recover
Scenario
Merge a tracefile whose records carry function data but no line data.
Expected result
20 functions are read with 18 hit, and the absence of LF/LH is treated as unknown rather than zero.

What is a .lcov file?

LCOV is a plain-text code-coverage tracefile format originally produced by the Linux Test Project's front end for gcov and now emitted by tooling across many languages. Records are grouped per source file between an `SF:` line and an `end_of_record` line, with `DA:` lines giving per-line hit counts, `FN:`/`FNDA:` lines covering functions, `BRDA:` lines covering branches, and `LF`/`LH`, `FNF`/`FNH`, `BRF`/`BRH` summary counters.

How to use this file

Use an example .lcov file to test coverage viewers, merge tools, and CI coverage gates — verifying that summary counters match the detail lines, that multiple source records are merged rather than overwritten, and that branch data survives conversion to Cobertura or JSON.

How to use this file for testing

“Coverage — LCOV with Function Records Only” is a deterministic Novus Examples fixture for Conversion testing, Code parsing, Schema validation. The same content exported across many formats and linked as a group, so you can convert one and diff against the expected twin.

Documented properties for this file: seed 61200 · 4 records · LF. Compare results against paired or grouped companions on this page when present (clean↔damaged, searchable↔scanned, or format twins) so scores stay reproducible across runs.

Download the file once, keep the path stable in CI or local scripts, and treat the spec table as the contract: dimensions, seeds, field lists, and roles are intentional. Corrupt or invalid samples are labelled as such — expect parsers to fail loudly rather than silently accept them.

Test and coverage reports document their totals (suites, cases, passes, failures, skips, covered lines) in the spec table. Point your CI dashboard, coverage gate, or report converter at the file and assert those counts survive; format twins carry identical numbers so a conversion can be scored exactly.

Generated by generation/testing.py. Free for any use, no attribution required — license.