Code coverage report for lib/root.js

Statements: 70.59% (12 / 17)      Branches: 37.5% (3 / 8)      Functions: 0% (0 / 2)      Lines: 70.59% (12 / 17)      Ignored: none     

All files » lib/ » root.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 281   1 1     1     1   1   1               1 1 1 1   1  
var Test = require('./test.js')
 
var to = process.env.TAP_TIMEOUT
Iif (to)
  to *= 1000
 
var tap = new Test({
  timeout: to || Infinity
})
module.exports = tap
 
tap._name = 'TAP'
 
process.on('exit', function (code) {
  delete tap.end
  tap.endAll()
 
  if (!tap._ok && code === 0)
    process.exit(1)
})
 
tap.end = function () {}
tap.pipe(process.stdout)
tap.plan = tap.plan.bind(tap)
tap.test = tap.test.bind(tap)
 
tap.mochaGlobals = require('./mocha.js').global