MCPcopy Index your code
hub / github.com/nodejs/node / test

Function test

test/parallel/test-fs-readfile-error.js:37–45  ·  view source on GitHub ↗
(env, cb)

Source from the content-addressed store, hash-verified

35const fixtures = require('../common/fixtures');
36
37function test(env, cb) {
38 const filename = fixtures.path('test-fs-readfile-error.js');
39 exec(...common.escapePOSIXShell`"${process.execPath}" "${filename}"`, common.mustCall((err, stdout, stderr) => {
40 assert(err);
41 assert.strictEqual(stdout, '');
42 assert.notStrictEqual(stderr, '');
43 cb(String(stderr));
44 }));
45}
46
47test({ NODE_DEBUG: '' }, common.mustCall((data) => {
48 assert.match(data, /EISDIR/);

Callers 1

Calls 5

StringClass · 0.85
cbFunction · 0.70
execFunction · 0.50
assertFunction · 0.50
pathMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…