/* automatically generated by JSCoverage - do not edit */
if (typeof _$jscoverage === 'undefined') _$jscoverage = {};
if (! _$jscoverage['browserify/test/bin.js']) {
  _$jscoverage['browserify/test/bin.js'] = [];
  _$jscoverage['browserify/test/bin.js'][1] = 0;
  _$jscoverage['browserify/test/bin.js'][2] = 0;
  _$jscoverage['browserify/test/bin.js'][3] = 0;
  _$jscoverage['browserify/test/bin.js'][4] = 0;
  _$jscoverage['browserify/test/bin.js'][6] = 0;
  _$jscoverage['browserify/test/bin.js'][7] = 0;
  _$jscoverage['browserify/test/bin.js'][9] = 0;
  _$jscoverage['browserify/test/bin.js'][10] = 0;
  _$jscoverage['browserify/test/bin.js'][12] = 0;
  _$jscoverage['browserify/test/bin.js'][17] = 0;
  _$jscoverage['browserify/test/bin.js'][18] = 0;
  _$jscoverage['browserify/test/bin.js'][19] = 0;
  _$jscoverage['browserify/test/bin.js'][22] = 0;
  _$jscoverage['browserify/test/bin.js'][23] = 0;
  _$jscoverage['browserify/test/bin.js'][25] = 0;
  _$jscoverage['browserify/test/bin.js'][26] = 0;
  _$jscoverage['browserify/test/bin.js'][27] = 0;
  _$jscoverage['browserify/test/bin.js'][30] = 0;
  _$jscoverage['browserify/test/bin.js'][31] = 0;
  _$jscoverage['browserify/test/bin.js'][35] = 0;
  _$jscoverage['browserify/test/bin.js'][37] = 0;
}
_$jscoverage['browserify/test/bin.js'][1]++;
var test = require("tap").test;
_$jscoverage['browserify/test/bin.js'][2]++;
var spawn = require("child_process").spawn;
_$jscoverage['browserify/test/bin.js'][3]++;
var path = require("path");
_$jscoverage['browserify/test/bin.js'][4]++;
var vm = require("vm");
_$jscoverage['browserify/test/bin.js'][6]++;
test("bin", (function (t) {
  _$jscoverage['browserify/test/bin.js'][7]++;
  t.plan(3);
  _$jscoverage['browserify/test/bin.js'][9]++;
  var cwd = process.cwd();
  _$jscoverage['browserify/test/bin.js'][10]++;
  process.chdir(__dirname);
  _$jscoverage['browserify/test/bin.js'][12]++;
  var ps = spawn(process.execPath, [path.resolve(__dirname, "../bin/cmd.js"), "entry/main.js", "--exports=require"]);
  _$jscoverage['browserify/test/bin.js'][17]++;
  var src = "";
  _$jscoverage['browserify/test/bin.js'][18]++;
  ps.stdout.on("data", (function (buf) {
  _$jscoverage['browserify/test/bin.js'][19]++;
  src += buf.toString();
}));
  _$jscoverage['browserify/test/bin.js'][22]++;
  ps.on("exit", (function (code) {
  _$jscoverage['browserify/test/bin.js'][23]++;
  t.equal(code, 0);
  _$jscoverage['browserify/test/bin.js'][25]++;
  var allDone = false;
  _$jscoverage['browserify/test/bin.js'][26]++;
  var c = {done: (function () {
  _$jscoverage['browserify/test/bin.js'][27]++;
  allDone = true;
})};
  _$jscoverage['browserify/test/bin.js'][30]++;
  vm.runInNewContext(src, c);
  _$jscoverage['browserify/test/bin.js'][31]++;
  t.deepEqual(Object.keys(c.require.modules).sort(), ["path", "__browserify_process", "/one.js", "/two.js", "/main.js"].sort());
  _$jscoverage['browserify/test/bin.js'][35]++;
  t.ok(allDone);
  _$jscoverage['browserify/test/bin.js'][37]++;
  t.end();
}));
}));
_$jscoverage['browserify/test/bin.js'].source = ["var test = require('tap').test;","var spawn = require('child_process').spawn;","var path = require('path');","var vm = require('vm');","","test('bin', function (t) {","    t.plan(3);","    ","    var cwd = process.cwd();","    process.chdir(__dirname);","    ","    var ps = spawn(process.execPath, [","        path.resolve(__dirname, '../bin/cmd.js'),","        'entry/main.js',","        '--exports=require'","    ]);","    var src = '';","    ps.stdout.on('data', function (buf) {","        src += buf.toString();","    });","    ","    ps.on('exit', function (code) {","        t.equal(code, 0);","        ","        var allDone = false;","        var c = {","            done : function () { allDone = true }","        };","        ","        vm.runInNewContext(src, c);","        t.deepEqual(","            Object.keys(c.require.modules).sort(),","            [ 'path', '__browserify_process', '/one.js', '/two.js', '/main.js' ].sort()","        );","        t.ok(allDone);","        ","        t.end();","    });","});"];
