RunKit + npm: hitmap_json_to_lcov

node v6.17.1
endpointsharetweet
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