MCPcopy
hub / github.com/webpack/webpack / getSnapshot

Function getSnapshot

test/FileSystemInfo.unittest.js:457–468  ·  view source on GitHub ↗

* @param {(err?: WebpackError | null, snapshot?: Snapshot | null) => void} callback callback function

(callback)

Source from the content-addressed store, hash-verified

455 * @param {(err?: WebpackError | null, snapshot?: Snapshot | null) => void} callback callback function
456 */
457 function getSnapshot(callback) {
458 const fs = createFs();
459 const fsInfo = createFsInfo(fs);
460 fsInfo.createSnapshot(
461 Date.now() + 10000,
462 files,
463 directories,
464 missing,
465 options,
466 callback
467 );
468 }
469
470 it("should return same iterable for getFileIterable()", (done) => {
471 getSnapshot((err, snapshot) => {

Callers 1

Calls 3

createFsFunction · 0.85
createFsInfoFunction · 0.85
createSnapshotMethod · 0.80

Tested by

no test coverage detected