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

Function doAsyncIterDirClosedTest

test/parallel/test-fs-opendir.js:245–249  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

243
244// Check first call to close() - should not report an error.
245async function doAsyncIterDirClosedTest() {
246 const dir = await fs.promises.opendir(testDir);
247 await dir.close();
248 await assert.rejects(() => dir.close(), dirclosedError);
249}
250doAsyncIterDirClosedTest().then(common.mustCall());
251
252// Check that readSync() and closeSync() during read() throw exceptions

Callers 1

test-fs-opendir.jsFile · 0.85

Calls 2

opendirMethod · 0.80
closeMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…