Clone and edit this document
Runkit
Runkit
home page
user forum
new notebook
clone notebook
download notebook
support & documentation
log in
sign up
new notebook
help & feedback
clone this notebook
download this notebook
Sign In
Sign Up
RunKit + npm: hitmap_json_to_lcov
node v6.17.1
endpoint
share
tweet
var hitmapJsonToLcov = require("hitmap_json_to_lcov") var validObject = { '/home/name/project/test.c': { 'lines': { 'found': 3, 'hit': 2, 'details': [ { "line": 1, "hit": 2 }, { "line": 2, "hit": 10 }, { "line": 3, "hit": 0 } ] }, 'functions': { 'hit': 2, 'found': 4, 'details': [ { "name": "fn1", "line": 1, "hit": 2 }, { "name": "fn2", "line": 2, "hit": 10 }, { "name": "fn3", "line": 3, "hit": 0 } ] } } } var result = hitmapJsonToLcov(validObject);
Created from: https://npm.runkit.com/hitmap_json_to_lcov
Loading…
no comments
sign in
to comment