# Code coverage report for ./../tap/lib/root.js

## Statements: 88.89% (16 / 18) Branches: 50% (4 / 8) Functions: 100% (1 / 1) Lines: 88.89% (16 / 18) Ignored: none

All files » ./../tap/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
    272
    2

    2
    2

    2

    2

    2
    2

    2

    2
    2
    2

    2
    2
    2
    2
     var Test = require('./test.js')
    require('exit-code')

    var tap = new Test()
    module.exports = tap

    Iif (tap._timer && tap._timer.unref)
      tap._timer.unref()

    tap._name = 'TAP'

    process.on('exit', function (code) {
      tap.endAll()

      Iif (!tap._ok && code === 0)
        process.exitCode = 1
    })

    tap.pipe(process.stdout)
    tap.plan = tap.plan.bind(tap)
    tap.test = tap.test.bind(tap)

    tap.mocha = require('./mocha.js')
    tap.mochaGlobals = tap.mocha.global
    tap.Test = Test
    tap.synonyms = require('./synonyms.js')