/* automatically generated by JSCoverage - do not edit */
if (typeof _$jscoverage === 'undefined') _$jscoverage = {};
if (! _$jscoverage['browserify/test/crypto.js']) {
  _$jscoverage['browserify/test/crypto.js'] = [];
  _$jscoverage['browserify/test/crypto.js'][1] = 0;
  _$jscoverage['browserify/test/crypto.js'][2] = 0;
  _$jscoverage['browserify/test/crypto.js'][3] = 0;
  _$jscoverage['browserify/test/crypto.js'][4] = 0;
  _$jscoverage['browserify/test/crypto.js'][5] = 0;
  _$jscoverage['browserify/test/crypto.js'][7] = 0;
  _$jscoverage['browserify/test/crypto.js'][8] = 0;
  _$jscoverage['browserify/test/crypto.js'][9] = 0;
  _$jscoverage['browserify/test/crypto.js'][11] = 0;
  _$jscoverage['browserify/test/crypto.js'][16] = 0;
  _$jscoverage['browserify/test/crypto.js'][17] = 0;
  _$jscoverage['browserify/test/crypto.js'][19] = 0;
  _$jscoverage['browserify/test/crypto.js'][20] = 0;
  _$jscoverage['browserify/test/crypto.js'][22] = 0;
  _$jscoverage['browserify/test/crypto.js'][23] = 0;
  _$jscoverage['browserify/test/crypto.js'][24] = 0;
  _$jscoverage['browserify/test/crypto.js'][26] = 0;
  _$jscoverage['browserify/test/crypto.js'][27] = 0;
  _$jscoverage['browserify/test/crypto.js'][29] = 0;
  _$jscoverage['browserify/test/crypto.js'][31] = 0;
  _$jscoverage['browserify/test/crypto.js'][34] = 0;
  _$jscoverage['browserify/test/crypto.js'][35] = 0;
}
_$jscoverage['browserify/test/crypto.js'][1]++;
var test = require("tap").test;
_$jscoverage['browserify/test/crypto.js'][2]++;
var spawn = require("child_process").spawn;
_$jscoverage['browserify/test/crypto.js'][3]++;
var path = require("path");
_$jscoverage['browserify/test/crypto.js'][4]++;
var fs = require("fs");
_$jscoverage['browserify/test/crypto.js'][5]++;
var vm = require("vm");
_$jscoverage['browserify/test/crypto.js'][7]++;
var mkdirp = require("mkdirp");
_$jscoverage['browserify/test/crypto.js'][8]++;
var tmpdir = "/tmp/" + Math.random().toString(16).slice(2);
_$jscoverage['browserify/test/crypto.js'][9]++;
mkdirp.sync(tmpdir);
_$jscoverage['browserify/test/crypto.js'][11]++;
fs.writeFileSync(tmpdir + "/main.js", ["var c = require(\"crypto\")", "beep(c)"].join("\n"));
_$jscoverage['browserify/test/crypto.js'][16]++;
test("*-browserify libs from node_modules/", (function (t) {
  _$jscoverage['browserify/test/crypto.js'][17]++;
  t.plan(2);
  _$jscoverage['browserify/test/crypto.js'][19]++;
  var bin = __dirname + "/../bin/cmd.js";
  _$jscoverage['browserify/test/crypto.js'][20]++;
  var ps = spawn(bin, ["main.js"], {cwd: tmpdir});
  _$jscoverage['browserify/test/crypto.js'][22]++;
  var src = "";
  _$jscoverage['browserify/test/crypto.js'][23]++;
  ps.stdout.on("data", (function (buf) {
  _$jscoverage['browserify/test/crypto.js'][23]++;
  src += buf;
}));
  _$jscoverage['browserify/test/crypto.js'][24]++;
  ps.stderr.pipe(process.stderr, {end: false});
  _$jscoverage['browserify/test/crypto.js'][26]++;
  ps.on("exit", (function (code) {
  _$jscoverage['browserify/test/crypto.js'][27]++;
  t.equal(code, 0);
  _$jscoverage['browserify/test/crypto.js'][29]++;
  var c = {beep: (function (c) {
  _$jscoverage['browserify/test/crypto.js'][31]++;
  t.equal(typeof c.createHash, "function");
})};
  _$jscoverage['browserify/test/crypto.js'][34]++;
  vm.runInNewContext(src, c);
  _$jscoverage['browserify/test/crypto.js'][35]++;
  t.end();
}));
}));
_$jscoverage['browserify/test/crypto.js'].source = ["var test = require('tap').test;","var spawn = require('child_process').spawn;","var path = require('path');","var fs = require('fs');","var vm = require('vm');","","var mkdirp = require('mkdirp');","var tmpdir = '/tmp/' + Math.random().toString(16).slice(2);","mkdirp.sync(tmpdir);","","fs.writeFileSync(tmpdir + '/main.js', [","    'var c = require(\"crypto\")',","    'beep(c)'","].join('\\n'));","","test('*-browserify libs from node_modules/', function (t) {","    t.plan(2);","    ","    var bin = __dirname + '/../bin/cmd.js';","    var ps = spawn(bin, [ 'main.js' ], { cwd : tmpdir });","    ","    var src = '';","    ps.stdout.on('data', function (buf) { src += buf });","    ps.stderr.pipe(process.stderr, { end : false });","    ","    ps.on('exit', function (code) {","        t.equal(code, 0);","        ","        var c = {","            beep : function (c) {","                t.equal(typeof c.createHash, 'function');","            },","        };","        vm.runInNewContext(src, c);","        t.end();","    });","});"];
