Home
last modified time | relevance | path

Searched refs:mustNotMutateObjectDeep (Results 1 – 25 of 27) sorted by relevance

12

/third_party/node/test/parallel/
Dtest-fs-rm.js25 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 …]
Dtest-fs-cp.mjs1 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 …]
Dtest-fs-mkdir.js60 …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 …]
Dtest-fs-read-stream.js101 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 …]
Dtest-common-must-not-mutate-object-deep.mjs1 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)));
Dtest-fs-readfile-flags.js19 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' }),
Dtest-fs-stat-bigint.js99 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 }));
Dtest-fs-stream-options.js2 const { mustNotMutateObjectDeep } = require('../common');
12 fs.createReadStream(null, mustNotMutateObjectDeep({ fd }));
21 fs.createWriteStream(null, mustNotMutateObjectDeep({ fd }));
Dtest-fs-write-sync-optional-params.js20 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));
Dtest-fs-promises-write-optional-params.js20 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));
Dtest-fs-append-file-sync.js74 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 }));
Dtest-fs-promises-file-handle-readFile.js63 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'…
Dtest-fs-write-optional-params.js21 () => fs.write(fd, buffer, common.mustNotMutateObjectDeep(options), common.mustNotCall()),
28 options = common.mustNotMutateObjectDeep(options);
67 common.mustNotMutateObjectDeep({}),
Dtest-fs-read-promises-optional-params.js15 read(fd, common.mustNotMutateObjectDeep({}))
22 read(fd, bufferAsOption, common.mustNotMutateObjectDeep({ position: 0 }))
Dtest-fs-readSync-optional-params.js3 const { mustNotMutateObjectDeep } = require('../common');
56 runTest(Buffer.allocUnsafe(expected.length), mustNotMutateObjectDeep(options));
Dtest-fs-read-optional-params.js33 testValid('Passing in an empty object', common.mustNotMutateObjectDeep({}));
34 testValid('Passing in an object', common.mustNotMutateObjectDeep({
Dtest-fs-readSync-position-validation.mjs21 fs.readSync(fdSync, buffer, common.mustNotMutateObjectDeep({ offset, length, position }));
40 … () => fs.readSync(fdSync, buffer, common.mustNotMutateObjectDeep({ offset, length, position })),
Dtest-fs-opendir.js199 () => fs.opendirSync(testDir, common.mustNotMutateObjectDeep({ bufferSize })),
206 () => fs.opendirSync(testDir, common.mustNotMutateObjectDeep({ bufferSize })),
214 const dir = fs.opendirSync(testDir, common.mustNotMutateObjectDeep({ bufferSize: 1024 }));
Dtest-fs-read-position-validation.mjs31 fs.read(fd, buffer, common.mustNotMutateObjectDeep({ offset, length, position }), handler);
49 …() => fs.read(fd, buffer, common.mustNotMutateObjectDeep({ offset, length, position }), common.mus…
Dtest-https-argument-of-creating.js15 const opts = common.mustNotMutateObjectDeep({
Dtest-fs-options-immutable.js12 const options = common.mustNotMutateObjectDeep({});
Dtest-https-agent-create-connection.js142 const options = common.mustNotMutateObjectDeep({
Dtest-fs-access.js148 fs.access(__filename, fs.F_OK, common.mustNotMutateObjectDeep({}));
/third_party/node/test/common/
Dindex.mjs39 mustNotMutateObjectDeep,
93 mustNotMutateObjectDeep,
Dindex.js540 function mustNotMutateObjectDeep(original) { function
564 return mustNotMutateObjectDeep(Reflect.get(target, prop, receiver));
923 mustNotMutateObjectDeep, property

12