/* automatically generated by JSCoverage - do not edit */
if (typeof _$jscoverage === 'undefined') _$jscoverage = {};
if (! _$jscoverage['browserify/test/error_code.js']) {
  _$jscoverage['browserify/test/error_code.js'] = [];
  _$jscoverage['browserify/test/error_code.js'][1] = 0;
  _$jscoverage['browserify/test/error_code.js'][2] = 0;
  _$jscoverage['browserify/test/error_code.js'][3] = 0;
  _$jscoverage['browserify/test/error_code.js'][7] = 0;
  _$jscoverage['browserify/test/error_code.js'][8] = 0;
  _$jscoverage['browserify/test/error_code.js'][10] = 0;
  _$jscoverage['browserify/test/error_code.js'][11] = 0;
  _$jscoverage['browserify/test/error_code.js'][13] = 0;
  _$jscoverage['browserify/test/error_code.js'][17] = 0;
  _$jscoverage['browserify/test/error_code.js'][18] = 0;
  _$jscoverage['browserify/test/error_code.js'][20] = 0;
  _$jscoverage['browserify/test/error_code.js'][21] = 0;
  _$jscoverage['browserify/test/error_code.js'][22] = 0;
}
_$jscoverage['browserify/test/error_code.js'][1]++;
var test = require("tap").test;
_$jscoverage['browserify/test/error_code.js'][2]++;
var spawn = require("child_process").spawn;
_$jscoverage['browserify/test/error_code.js'][3]++;
var path = require("path");
_$jscoverage['browserify/test/error_code.js'][7]++;
test("error code", (function (t) {
  _$jscoverage['browserify/test/error_code.js'][8]++;
  t.plan(2);
  _$jscoverage['browserify/test/error_code.js'][10]++;
  var cwd = process.cwd();
  _$jscoverage['browserify/test/error_code.js'][11]++;
  process.chdir(__dirname);
  _$jscoverage['browserify/test/error_code.js'][13]++;
  var ps = spawn(process.execPath, [path.resolve(__dirname, "../bin/cmd.js"), path.resolve(__dirname, "error_code/src.js")]);
  _$jscoverage['browserify/test/error_code.js'][17]++;
  var err = "";
  _$jscoverage['browserify/test/error_code.js'][18]++;
  ps.stderr.on("data", (function (buf) {
  _$jscoverage['browserify/test/error_code.js'][18]++;
  err += buf;
}));
  _$jscoverage['browserify/test/error_code.js'][20]++;
  ps.on("exit", (function (code) {
  _$jscoverage['browserify/test/error_code.js'][21]++;
  t.notEqual(code, 0);
  _$jscoverage['browserify/test/error_code.js'][22]++;
  t.ok(/^(Syntax|Parse)Error:/m.test(err));
}));
}));
_$jscoverage['browserify/test/error_code.js'].source = ["var test = require('tap').test;","var spawn = require('child_process').spawn;","var path = require('path');","","if (false) require('__32jlkbeep');","","test('error code', function (t) {","    t.plan(2);","    ","    var cwd = process.cwd();","    process.chdir(__dirname);","    ","    var ps = spawn(process.execPath, [","        path.resolve(__dirname, '../bin/cmd.js'),","        path.resolve(__dirname, 'error_code/src.js')","    ]);","    var err = '';","    ps.stderr.on('data', function (buf) { err += buf });","    ","    ps.on('exit', function (code) {","        t.notEqual(code, 0);","        t.ok(/^(Syntax|Parse)Error:/m.test(err));","    });","});"];
