/* automatically generated by JSCoverage - do not edit */
if (typeof _$jscoverage === 'undefined') _$jscoverage = {};
if (! _$jscoverage['browserify/test/cache.js']) {
  _$jscoverage['browserify/test/cache.js'] = [];
  _$jscoverage['browserify/test/cache.js'][1] = 0;
  _$jscoverage['browserify/test/cache.js'][2] = 0;
  _$jscoverage['browserify/test/cache.js'][3] = 0;
  _$jscoverage['browserify/test/cache.js'][4] = 0;
  _$jscoverage['browserify/test/cache.js'][5] = 0;
  _$jscoverage['browserify/test/cache.js'][7] = 0;
  _$jscoverage['browserify/test/cache.js'][8] = 0;
  _$jscoverage['browserify/test/cache.js'][10] = 0;
  _$jscoverage['browserify/test/cache.js'][11] = 0;
  _$jscoverage['browserify/test/cache.js'][12] = 0;
  _$jscoverage['browserify/test/cache.js'][13] = 0;
  _$jscoverage['browserify/test/cache.js'][14] = 0;
  _$jscoverage['browserify/test/cache.js'][15] = 0;
  _$jscoverage['browserify/test/cache.js'][16] = 0;
  _$jscoverage['browserify/test/cache.js'][17] = 0;
  _$jscoverage['browserify/test/cache.js'][18] = 0;
  _$jscoverage['browserify/test/cache.js'][19] = 0;
  _$jscoverage['browserify/test/cache.js'][20] = 0;
  _$jscoverage['browserify/test/cache.js'][24] = 0;
}
_$jscoverage['browserify/test/cache.js'][1]++;
var vm = require("vm");
_$jscoverage['browserify/test/cache.js'][2]++;
var fs = require("fs");
_$jscoverage['browserify/test/cache.js'][3]++;
var browserify = require("../");
_$jscoverage['browserify/test/cache.js'][4]++;
var test = require("tap").test;
_$jscoverage['browserify/test/cache.js'][5]++;
var crypto = require("crypto");
_$jscoverage['browserify/test/cache.js'][7]++;
test("cache", (function (t) {
  _$jscoverage['browserify/test/cache.js'][8]++;
  t.plan(2);
  _$jscoverage['browserify/test/cache.js'][10]++;
  var file = "/tmp/" + Math.floor(Math.random() * (1073741824)).toString(16) + ".json";
  _$jscoverage['browserify/test/cache.js'][11]++;
  browserify({cache: file}).require("seq").bundle();
  _$jscoverage['browserify/test/cache.js'][12]++;
  setTimeout((function () {
  _$jscoverage['browserify/test/cache.js'][13]++;
  fs.readFile(file, (function (err, body) {
  _$jscoverage['browserify/test/cache.js'][14]++;
  if (err) {
    _$jscoverage['browserify/test/cache.js'][14]++;
    t.fail(err);
  }
  _$jscoverage['browserify/test/cache.js'][15]++;
  var cache = JSON.parse(body);
  _$jscoverage['browserify/test/cache.js'][16]++;
  var tfile = require.resolve("seq");
  _$jscoverage['browserify/test/cache.js'][17]++;
  fs.readFile(tfile, (function (err, body) {
  _$jscoverage['browserify/test/cache.js'][18]++;
  var hash = new crypto.Hash("md5").update(body).digest("hex");
  _$jscoverage['browserify/test/cache.js'][19]++;
  t.ok(cache[hash]);
  _$jscoverage['browserify/test/cache.js'][20]++;
  t.deepEqual(cache[hash].strings.sort(), ["events", "hashish", "chainsaw"].sort());
  _$jscoverage['browserify/test/cache.js'][24]++;
  t.end();
}));
}));
}), 200);
}));
_$jscoverage['browserify/test/cache.js'].source = ["var vm = require('vm');","var fs = require('fs');","var browserify = require('../');","var test = require('tap').test;","var crypto = require('crypto');","","test('cache', function (t) {","    t.plan(2);","    ","    var file = '/tmp/' + Math.floor(Math.random() * (1&lt;&lt;30)).toString(16) + '.json';","    browserify({ cache : file }).require('seq').bundle();","    setTimeout(function () {","        fs.readFile(file, function (err, body) {","            if (err) t.fail(err);","            var cache = JSON.parse(body);","            var tfile = require.resolve('seq');","            fs.readFile(tfile, function (err, body) {","                var hash = new crypto.Hash('md5').update(body).digest('hex');","                t.ok(cache[hash]);","                t.deepEqual(","                    cache[hash].strings.sort(),","                    [ 'events', 'hashish', 'chainsaw' ].sort()","                );","                t.end();","            });","        });","    }, 200);","});"];
