Meta-data identifies the specifics of the coverage information, as well as the file versioning information.
{
meta: {
generator: 'vowsjs',
generated: 'Fri Aug 05 2011 22:45:56 GMT-0700 (PDT)',
instrumentation: 'node-jscoverage',
'file-version': '1.0',
files: [
'server.js',
'client.js'
]
}
}
Coverage specifics. Data varies based on instrumentation.
{
coverage: [
{
file: 'server.js',
coverage: 97,
hits: 97,
misses: 3,
sloc: 100,
source: {
1: {
line: 'var http = require("http");',
coverage: 1
},
2: {
line: 'for (var i = 0; i < 10; i++)',
coverage: 10,
fragments: [
{
startcol: 0,
endcol: 2,
fragment: 'for',
coverage: 1
},
{
startcol: 3,
endcol: 4,
fragment: '(',
coverage: 1
},
[ ... ]
]
},
[ ... ]
}
},
[ ... ]
]
}