Function
writeFile
test/Compiler.test.js:63–71
· test/Compiler.test.js::writeFile
(
/** @type {string} */ name,
/** @type {Buffer} */ content,
/** @type {() => void} */ callback
)
Source from the content-addressed store, hash-verified
| 61 | callback(err); |
| 62 | }, |
| 63 | writeFile( |
| 64 | /** @type {string} */ name, |
| 65 | /** @type {Buffer} */ content, |
| 66 | /** @type {() => void} */ callback |
| 67 | ) { |
| 68 | logs.writeFile.push(name, content); |
| 69 | files[name] = content.toString(class="st">"utf8"); |
| 70 | callback(); |
| 71 | }, |
| 72 | stat( |
| 73 | /** @type {string} */ _path, |
| 74 | /** @type {(err: Error) => void} */ callback |
Callers
nothing calls this directly
Tested by
no test coverage detected