cobertura-parse
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "cobertura-parse", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Parse cobertura coverage to JSON, based on output from lcov-parse", | ||
"main": "index.js", | ||
"main": "source/index.js", | ||
"scripts": { | ||
@@ -7,0 +7,0 @@ "test": "mocha --reporter spec", |
@@ -36,5 +36,5 @@ "use strict"; | ||
functions: { | ||
found: c.methods[ 0 ].method.length, | ||
found: c.methods[ 0 ].method ? c.methods[ 0 ].method.length : 0, | ||
hit: 0, | ||
details: c.methods[ 0 ].method.map( function ( m ) | ||
details: !c.methods[ 0 ].method ? [] : c.methods[ 0 ].method.map( function ( m ) | ||
{ | ||
@@ -49,5 +49,5 @@ return { | ||
lines: { | ||
found: c.lines[ 0 ].line.length, | ||
found: c.lines[ 0 ].line ? c.lines[ 0 ].line.length : 0, | ||
hit: 0, | ||
details: c.lines[ 0 ].line.map( function ( l ) | ||
details: !c.lines[ 0 ].line ? [] : c.lines[ 0 ].line.map( function ( l ) | ||
{ | ||
@@ -54,0 +54,0 @@ return { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25202