/third_party/node/test/parallel/ |
D | test-fs-rm.js | 25 execSync('git init', common.mustNotMutateObjectDeep({ cwd: gitDirectory })); 29 fs.mkdirSync(dirname, common.mustNotMutateObjectDeep({ recursive: true })); 32 const options = common.mustNotMutateObjectDeep({ flag: 'wx' }); 92 fs.rm(dir, common.mustNotMutateObjectDeep({ recursive: false }), common.mustCall((err) => { 96 fs.rm(dir, common.mustNotMutateObjectDeep({ recursive: true }), common.mustSucceed(() => { 132 common.mustNotMutateObjectDeep({ recursive: true }), 141 fs.rm(filePath, common.mustNotMutateObjectDeep({ recursive: true }), common.mustCall((err) => { 146 fs.rmSync(filePath, common.mustNotMutateObjectDeep({ force: true })); 155 fs.rm(validLink, common.mustNotMutateObjectDeep({ recursive: true }), common.mustCall((err) => { 160 fs.rmSync(linkTarget, common.mustNotMutateObjectDeep({ force: true })); [all …]
|
D | test-fs-cp.mjs | 1 import { mustCall, mustNotMutateObjectDeep } from '../common/index.mjs'; 37 cpSync(src, dest, mustNotMutateObjectDeep({ recursive: true })); 47 cpSync(src, dest, mustNotMutateObjectDeep({ 68 mkdirSync(join(src, 'a', 'b'), mustNotMutateObjectDeep({ recursive: true })); 71 cpSync(src, dest, mustNotMutateObjectDeep({ recursive: true })); 73 cpSync(src, dest, mustNotMutateObjectDeep({ force: false, recursive: true })); 84 mkdirSync(dest, mustNotMutateObjectDeep({ recursive: true })); 86 cpSync(src, dest, mustNotMutateObjectDeep({ recursive: true })); 98 cpSync(src, dest, mustNotMutateObjectDeep({ dereference: true, recursive: true })); 99 cpSync(src, dest, mustNotMutateObjectDeep({ dereference: true, recursive: true })); [all …]
|
D | test-fs-mkdir.js | 60 …fs.mkdir(pathname, common.mustNotMutateObjectDeep({ mode: 0o777 }), common.mustCall(function(err) { 70 fs.mkdirSync(pathname, common.mustNotMutateObjectDeep({ mode: 0o777 })); 108 fs.mkdirSync(pathname, common.mustNotMutateObjectDeep({ recursive: true })); 145 () => { fs.mkdirSync(pathname, common.mustNotMutateObjectDeep({ recursive: true })); }, 179 …fs.mkdir(pathname, common.mustNotMutateObjectDeep({ recursive: true }), common.mustCall(function(e… 192 fs.mkdir(pathname, common.mustNotMutateObjectDeep({ recursive: true }), common.mustCall((err) => { 206 fs.mkdir(pathname, common.mustNotMutateObjectDeep({ recursive: true }), common.mustCall((err) => { 226 () => { fs.mkdirSync('X', common.mustNotMutateObjectDeep({ recursive: true })); }, 234 fs.mkdir('X', common.mustNotMutateObjectDeep({ recursive: true }), (err) => { 247 () => fs.mkdir(pathname, common.mustNotMutateObjectDeep({ recursive }), common.mustNotCall()), [all …]
|
D | test-fs-read-stream.js | 101 const file = fs.createReadStream(fn, common.mustNotMutateObjectDeep({ encoding: 'utf8' })); 122 …fs.createReadStream(rangeFile, common.mustNotMutateObjectDeep({ bufferSize: 1, start: 1, end: 2 })… 133 …const file = fs.createReadStream(rangeFile, common.mustNotMutateObjectDeep({ bufferSize: 1, start:… 145 …const file = fs.createReadStream(rangeFile, common.mustNotMutateObjectDeep({ bufferSize: 1.23, sta… 157 fs.createReadStream(rangeFile, common.mustNotMutateObjectDeep({ start: 10, end: 2 })); 167 …const stream = fs.createReadStream(rangeFile, common.mustNotMutateObjectDeep({ start: 0, end: 0 })… 181 const stream = new fs.createReadStream(rangeFile, common.mustNotMutateObjectDeep({ end: 1 })); 202 const stream = new fs.createReadStream(filename, common.mustNotMutateObjectDeep({ end: 1 })); 226 let file = fs.createReadStream(rangeFile, common.mustNotMutateObjectDeep({ autoClose: false })); 240 file = fs.createReadStream(null, common.mustNotMutateObjectDeep({ fd: file.fd, start: 0 })); [all …]
|
D | test-common-must-not-mutate-object-deep.mjs | 1 import { mustNotMutateObjectDeep } from '../common/index.mjs'; 5 // Test common.mustNotMutateObjectDeep() 20 const obj = () => mustNotMutateObjectDeep(original); 197 assert.deepStrictEqual(mustNotMutateObjectDeep(target), target); 198 assert.deepStrictEqual(mustNotMutateObjectDeep({ target }), { target }); 199 assert.deepStrictEqual(mustNotMutateObjectDeep([ target ]), [ target ]); 206 const fnImmutableView = mustNotMutateObjectDeep(fn); 224 promisify(mustNotMutateObjectDeep(promisify(fn)));
|
D | test-fs-readfile-flags.js | 19 common.mustNotMutateObjectDeep({ encoding: 'utf8', flag: 'a+' }), 26 common.mustNotMutateObjectDeep({ encoding: 'utf8', flag: 'ax+' }), 37 common.mustNotMutateObjectDeep({ encoding: 'utf8', flag: 'a+' }), 48 common.mustNotMutateObjectDeep({ encoding: 'utf8' }),
|
D | test-fs-stat-bigint.js | 99 const bigintStats = func(arg, common.mustNotMutateObjectDeep({ bigint: true })); 130 fs.statSync('does_not_exist', common.mustNotMutateObjectDeep({ throwIfNoEntry: false })), 139 fs.lstatSync('does_not_exist', common.mustNotMutateObjectDeep({ throwIfNoEntry: false })), 148 () => fs.fstatSync(9999, common.mustNotMutateObjectDeep({ throwIfNoEntry: false })), 154 …func(arg, common.mustNotMutateObjectDeep({ bigint: true }), common.mustCall((err, bigintStats) => { 186 const bigintStats = await func(arg, common.mustNotMutateObjectDeep({ bigint: true })); 209 const bigintStats = await handle.stat(common.mustNotMutateObjectDeep({ bigint: true }));
|
D | test-fs-stream-options.js | 2 const { mustNotMutateObjectDeep } = require('../common'); 12 fs.createReadStream(null, mustNotMutateObjectDeep({ fd })); 21 fs.createWriteStream(null, mustNotMutateObjectDeep({ fd }));
|
D | test-fs-write-sync-optional-params.js | 20 bufferAndOptions[1] = common.mustNotMutateObjectDeep(bufferAndOptions[1]); 63 common.mustNotMutateObjectDeep({}), 75 testInvalid(dest, 'ERR_INVALID_ARG_TYPE', common.mustNotMutateObjectDeep(badBuffer)); 103 testValid(dest, buffer, common.mustNotMutateObjectDeep(options));
|
D | test-fs-promises-write-optional-params.js | 20 params[1] = common.mustNotMutateObjectDeep(params[1]); 70 common.mustNotMutateObjectDeep({}), 81 await testInvalid(dest, 'ERR_INVALID_ARG_TYPE', common.mustNotMutateObjectDeep(badBuffer), {}); 109 await testValid(dest, buffer, common.mustNotMutateObjectDeep(options));
|
D | test-fs-append-file-sync.js | 74 fs.writeFileSync(filename4, currentFileData, common.mustNotMutateObjectDeep({ mode: m })); 80 () => fs.appendFileSync(filename4, value, common.mustNotMutateObjectDeep({ mode: m })), 84 fs.appendFileSync(filename4, `${num}`, common.mustNotMutateObjectDeep({ mode: m }));
|
D | test-fs-promises-file-handle-readFile.js | 63 await assert.rejects(readFile(fileHandle, common.mustNotMutateObjectDeep({ signal })), { 80 await assert.rejects(readFile(fileHandle, common.mustNotMutateObjectDeep({ signal })), { 97 …await assert.rejects(fileHandle.readFile(common.mustNotMutateObjectDeep({ signal, encoding: 'utf8'…
|
D | test-fs-write-optional-params.js | 21 () => fs.write(fd, buffer, common.mustNotMutateObjectDeep(options), common.mustNotCall()), 28 options = common.mustNotMutateObjectDeep(options); 67 common.mustNotMutateObjectDeep({}),
|
D | test-fs-read-promises-optional-params.js | 15 read(fd, common.mustNotMutateObjectDeep({})) 22 read(fd, bufferAsOption, common.mustNotMutateObjectDeep({ position: 0 }))
|
D | test-fs-readSync-optional-params.js | 3 const { mustNotMutateObjectDeep } = require('../common'); 56 runTest(Buffer.allocUnsafe(expected.length), mustNotMutateObjectDeep(options));
|
D | test-fs-read-optional-params.js | 33 testValid('Passing in an empty object', common.mustNotMutateObjectDeep({})); 34 testValid('Passing in an object', common.mustNotMutateObjectDeep({
|
D | test-fs-readSync-position-validation.mjs | 21 fs.readSync(fdSync, buffer, common.mustNotMutateObjectDeep({ offset, length, position })); 40 … () => fs.readSync(fdSync, buffer, common.mustNotMutateObjectDeep({ offset, length, position })),
|
D | test-fs-opendir.js | 199 () => fs.opendirSync(testDir, common.mustNotMutateObjectDeep({ bufferSize })), 206 () => fs.opendirSync(testDir, common.mustNotMutateObjectDeep({ bufferSize })), 214 const dir = fs.opendirSync(testDir, common.mustNotMutateObjectDeep({ bufferSize: 1024 }));
|
D | test-fs-read-position-validation.mjs | 31 fs.read(fd, buffer, common.mustNotMutateObjectDeep({ offset, length, position }), handler); 49 …() => fs.read(fd, buffer, common.mustNotMutateObjectDeep({ offset, length, position }), common.mus…
|
D | test-https-argument-of-creating.js | 15 const opts = common.mustNotMutateObjectDeep({
|
D | test-fs-options-immutable.js | 12 const options = common.mustNotMutateObjectDeep({});
|
D | test-https-agent-create-connection.js | 142 const options = common.mustNotMutateObjectDeep({
|
D | test-fs-access.js | 148 fs.access(__filename, fs.F_OK, common.mustNotMutateObjectDeep({}));
|
/third_party/node/test/common/ |
D | index.mjs | 39 mustNotMutateObjectDeep, 93 mustNotMutateObjectDeep,
|
D | index.js | 540 function mustNotMutateObjectDeep(original) { function 564 return mustNotMutateObjectDeep(Reflect.get(target, prop, receiver)); 923 mustNotMutateObjectDeep, property
|