/* automatically generated by JSCoverage - do not edit */
if (typeof _$jscoverage === 'undefined') _$jscoverage = {};
if (! _$jscoverage['browserify/test/retarget.js']) {
  _$jscoverage['browserify/test/retarget.js'] = [];
  _$jscoverage['browserify/test/retarget.js'][1] = 0;
  _$jscoverage['browserify/test/retarget.js'][2] = 0;
  _$jscoverage['browserify/test/retarget.js'][3] = 0;
  _$jscoverage['browserify/test/retarget.js'][4] = 0;
  _$jscoverage['browserify/test/retarget.js'][6] = 0;
  _$jscoverage['browserify/test/retarget.js'][7] = 0;
  _$jscoverage['browserify/test/retarget.js'][9] = 0;
  _$jscoverage['browserify/test/retarget.js'][10] = 0;
  _$jscoverage['browserify/test/retarget.js'][12] = 0;
  _$jscoverage['browserify/test/retarget.js'][17] = 0;
  _$jscoverage['browserify/test/retarget.js'][18] = 0;
  _$jscoverage['browserify/test/retarget.js'][20] = 0;
  _$jscoverage['browserify/test/retarget.js'][21] = 0;
  _$jscoverage['browserify/test/retarget.js'][23] = 0;
  _$jscoverage['browserify/test/retarget.js'][24] = 0;
  _$jscoverage['browserify/test/retarget.js'][25] = 0;
}
_$jscoverage['browserify/test/retarget.js'][1]++;
var test = require("tap").test;
_$jscoverage['browserify/test/retarget.js'][2]++;
var spawn = require("child_process").spawn;
_$jscoverage['browserify/test/retarget.js'][3]++;
var path = require("path");
_$jscoverage['browserify/test/retarget.js'][4]++;
var vm = require("vm");
_$jscoverage['browserify/test/retarget.js'][6]++;
test("retarget with -r", (function (t) {
  _$jscoverage['browserify/test/retarget.js'][7]++;
  t.plan(2);
  _$jscoverage['browserify/test/retarget.js'][9]++;
  var cwd = process.cwd();
  _$jscoverage['browserify/test/retarget.js'][10]++;
  process.chdir(__dirname);
  _$jscoverage['browserify/test/retarget.js'][12]++;
  var ps = spawn(process.execPath, [path.resolve(__dirname, "../bin/cmd.js"), "-r", "beep", "--exports=require"]);
  _$jscoverage['browserify/test/retarget.js'][17]++;
  var src = "";
  _$jscoverage['browserify/test/retarget.js'][18]++;
  ps.stdout.on("data", (function (buf) {
  _$jscoverage['browserify/test/retarget.js'][18]++;
  src += buf;
}));
  _$jscoverage['browserify/test/retarget.js'][20]++;
  ps.on("exit", (function (code) {
  _$jscoverage['browserify/test/retarget.js'][21]++;
  t.equal(code, 0);
  _$jscoverage['browserify/test/retarget.js'][23]++;
  var c = {};
  _$jscoverage['browserify/test/retarget.js'][24]++;
  vm.runInNewContext(src, c);
  _$jscoverage['browserify/test/retarget.js'][25]++;
  t.equal(c.require("beep"), "boop");
}));
}));
_$jscoverage['browserify/test/retarget.js'].source = ["var test = require('tap').test;","var spawn = require('child_process').spawn;","var path = require('path');","var vm = require('vm');","","test('retarget with -r', function (t) {","    t.plan(2);","    ","    var cwd = process.cwd();","    process.chdir(__dirname);","    ","    var ps = spawn(process.execPath, [","        path.resolve(__dirname, '../bin/cmd.js'),","        '-r', 'beep',","        '--exports=require'","    ]);","    var src = '';","    ps.stdout.on('data', function (buf) { src += buf });","    ","    ps.on('exit', function (code) {","        t.equal(code, 0);","        ","        var c = {};","        vm.runInNewContext(src, c);","        t.equal(c.require('beep'), 'boop');","    });","});"];
