# lcov

URL: /kida/api/utils/lcov/
Section: utils
Description: LCOV coverage data to dict converter.

Stdlib-only parser for LCOV ``.info`` files produced by lcov, geninfo,
nyc/istanbul, go tool cover, and similar tools.

---

> For a complete page index, fetch /kida/llms.txt.

Open LLM text
(/kida/api/utils/lcov/index.txt)

Share with AI

Ask Claude
(https://claude.ai/new?q=Please%20help%20me%20understand%20this%20documentation%3A%20%2Fkida%2Fapi%2Futils%2Flcov%2Findex.txt)

Ask ChatGPT
(https://chatgpt.com/?q=Please%20help%20me%20understand%20this%20documentation%3A%20%2Fkida%2Fapi%2Futils%2Flcov%2Findex.txt)

Ask Gemini
(https://gemini.google.com/app?q=Please%20help%20me%20understand%20this%20documentation%3A%20%2Fkida%2Fapi%2Futils%2Flcov%2Findex.txt)

Ask Copilot
(https://copilot.microsoft.com/?q=Please%20help%20me%20understand%20this%20documentation%3A%20%2Fkida%2Fapi%2Futils%2Flcov%2Findex.txt)

Module

#
`utils.lcov`

LCOV coverage data to dict converter.

Stdlib-only parser for LCOV`.info`files produced by lcov, geninfo,
nyc/istanbul, go tool cover, and similar tools.

1Function

## Functions

`lcov_to_dict`

1

`dict[str, Any]`

▼

Parse an LCOV file and return a dict matching coverage-report.md's schema.

`def lcov_to_dict(path: str | Path) -> dict[str, Any]`

##### Parameters

Name
Type
Description

`path`
`str | Path`

Path to the LCOV`.info`file.

##### Returns

`dict[str, Any]`
