Parse LCOV.
Full specification: http://ltp.sourceforge.net/coverage/lcov/geninfo.1.php
Installation
yarn add parse-lcov
npm install parse-lcov
API
Usage
; ; parseLCOVlcov; /* Sample Output:[{ title: "", file: "source/file.ts", functions: { found: 2, hit: 2, details: [{ line: 5, hit: 2, name: "functionA" }, { hit: 16, line: 8, name: "functionB" }] }, branches: { found: 3, hit: 3, details: [{ block: 0, branch: 0, line: 5, taken: 1 }, { block: 1, branch: 0, line: 9, taken: 0 }] }, lines: { found: 13, hit: 13, details: [{ hit: 1, line: 1 }] } }]);*/
Types
; ; ;
Dev Dependencies
- @bconnorwhite/bob: Bob is a toolkit for TypeScript projects
License
Related Packages
- parse-json-object: Parse a typed JSON object
- read-lcov-safe: Read and parse an lcov file without try catch