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

Method read

lib/internal/fs/dir.js:110–112  ·  view source on GitHub ↗
(callback)

Source from the content-addressed store, hash-verified

108 }
109
110 read(callback) {
111 return arguments.length === 0 ? this.#readPromisified() : this.#readImpl(true, callback);
112 }
113
114 #readImpl(maybeSync, callback) {
115 if (this.#closed === true) {

Callers 15

SocketFunction · 0.45
afterConnectFunction · 0.45
readFileAfterStatFunction · 0.45
readFunction · 0.45
readSyncFunction · 0.45
readFunction · 0.45
constructorMethod · 0.45
onStreamReadFunction · 0.45
packageResolveFunction · 0.45
_readPackageFunction · 0.45
tryPackageMapResolveCJSFunction · 0.45
initReadFunction · 0.45

Calls 1

#readImplMethod · 0.95

Tested by 11

test_happy_pathMethod · 0.36
_test_contentMethod · 0.36
assert_expectedMethod · 0.36
testArgsMethod · 0.36
test_schedule_logFunction · 0.36
read_fileFunction · 0.36
test_analyze_crashMethod · 0.36
test_three_fuzzersMethod · 0.36