Home
last modified time | relevance | path

Searched refs:mustSucceed (Results 1 – 25 of 189) sorted by relevance

12345678

/third_party/node/test/parallel/
Dtest-fs-write-buffer.js35 fs.open(filename, 'w', 0o644, common.mustSucceed((fd) => {
36 const cb = common.mustSucceed((written) => {
51 fs.open(filename, 'w', 0o644, common.mustSucceed((fd) => {
52 const cb = common.mustSucceed((written) => {
67 fs.open(filename, 'w', 0o644, common.mustSucceed((fd) => {
68 const cb = common.mustSucceed((written) => {
83 fs.open(filename, 'w', 0o644, common.mustSucceed((fd) => {
84 const cb = common.mustSucceed((written) => {
99 fs.open(filename, 'w', 0o644, common.mustSucceed((fd) => {
100 const cb = common.mustSucceed((written) => {
[all …]
Dtest-cli-eval.js43 child.exec(`${nodejs} --eval 42`, common.mustSucceed((stdout, stderr) => {
50 common.mustSucceed((stdout, stderr) => {
59 child.exec(`${cmd}42`, common.mustSucceed((stdout, stderr) => {
64 child.exec(`${cmd} '[]'`, common.mustSucceed((stdout, stderr) => {
148 common.mustSucceed((stdout, stderr) => {
230 common.mustSucceed((stdout) => {
255 common.mustSucceed((stdout) => {
262 common.mustSucceed((stdout) => {
270 common.mustSucceed((stdout) => {
280 common.mustSucceed((stdout) => {
[all …]
Dtest-fs-write-file.js41 fs.writeFile(filename, s, common.mustSucceed(() => {
42 fs.readFile(filename, common.mustSucceed((buffer) => {
51 fs.writeFile(filename2, buf, common.mustSucceed(() => {
52 fs.readFile(filename2, common.mustSucceed((buffer) => {
60 fs.open(filename4, 'w+', common.mustSucceed((fd) => {
61 fs.writeFile(fd, s, common.mustSucceed(() => {
62 fs.close(fd, common.mustSucceed(() => {
63 fs.readFile(filename4, common.mustSucceed((buffer) => {
Dtest-fs-realpath-buffer-encoding.js57 common.mustSucceed((res) => {
61 fs.realpath(string_dir, encoding, common.mustSucceed((res) => {
67 common.mustSucceed((res) => {
71 fs.realpath(buffer_dir, encoding, common.mustSucceed((res) => {
76 fs.realpath(string_dir, { encoding: 'buffer' }, common.mustSucceed((res) => {
80 fs.realpath(string_dir, 'buffer', common.mustSucceed((res) => {
84 fs.realpath(buffer_dir, { encoding: 'buffer' }, common.mustSucceed((res) => {
88 fs.realpath(buffer_dir, 'buffer', common.mustSucceed((res) => {
Dtest-fs-append-file.js48 fs.appendFile(filename, s, common.mustSucceed(() => {
49 fs.readFile(filename, common.mustSucceed((buffer) => {
72 fs.appendFile(filename, s, common.mustSucceed(() => {
73 fs.readFile(filename, common.mustSucceed((buffer) => {
101 fs.appendFile(filename, buf, common.mustSucceed(() => {
102 fs.readFile(filename, common.mustSucceed((buffer) => {
160 fs.open(filename, 'a+', common.mustSucceed((fd) => {
161 fs.appendFile(fd, s, common.mustSucceed(() => {
162 fs.close(fd, common.mustSucceed(() => {
163 fs.readFile(filename, common.mustSucceed((buffer) => {
Dtest-fs-write.js85 fs.open(fn, 'w', 0o644, common.mustSucceed((fd) => {
86 const done = common.mustSucceed((written) => {
94 const written = common.mustSucceed((written) => {
103 fs.open(fn2, args, 0o644, common.mustSucceed((fd) => {
104 const done = common.mustSucceed((written) => {
112 const written = common.mustSucceed((written) => {
120 fs.open(fn3, 'w', 0o644, common.mustSucceed((fd) => {
121 const done = common.mustSucceed((written) => {
135 fs.open(fn4, 'w', 0o644, common.mustSucceed((fd) => {
136 const done = common.mustSucceed((written) => {
[all …]
Dtest-fs-symlink-dir-junction.js37 fs.symlink(linkData, linkPath, 'junction', common.mustSucceed(() => {
38 fs.lstat(linkPath, common.mustSucceed((stats) => {
41 fs.readlink(linkPath, common.mustSucceed((destination) => {
44 fs.unlink(linkPath, common.mustSucceed(() => {
57 fs.symlink(linkData, linkPath, 'junction', common.mustSucceed(() => {
60 fs.unlink(linkPath, common.mustSucceed(() => {
Dtest-fs-options-immutable.js16 fs.readFile(__filename, options, common.mustSucceed());
19 fs.readdir(__dirname, options, common.mustSucceed());
29 fs.readlink(linkFile, options, common.mustSucceed());
36 fs.writeFile(fileName, 'ABCD', options, common.mustSucceed());
42 fs.appendFile(fileName, 'ABCD', options, common.mustSucceed());
57 fs.realpath(__filename, options, common.mustSucceed());
63 fs.mkdtemp(tempFileName, options, common.mustSucceed());
Dtest-http-write-callbacks.js56 res.write('asdf', common.mustSucceed(() => {
57 res.write('foo', 'ascii', common.mustSucceed(() => {
58 res.end(Buffer.from('bar'), 'buffer', common.mustSucceed(() => {
80 req.write('YmF6', 'base64', common.mustSucceed(() => {
81 req.write(Buffer.from('quux'), common.mustSucceed(() => {
82 req.end('626c657267', 'hex', common.mustSucceed(() => {
Dtest-fs-write-optional-params.js32 fs.open(dest, 'w', common.mustSucceed((fd) => {
33 fs.write(fd, buffer, options, common.mustSucceed((bytesWritten, bufferWritten) => {
35 fs.close(fd, common.mustSucceed(() => {
36 fs.open(dest, 'r', common.mustSucceed((fd) => {
37 fs.read(fd, buffer, options, common.mustSucceed((bytesRead, bufferRead) => {
49 fs.close(fd, common.mustSucceed(callback));
113 fs.open(destInvalid, 'w+', common.mustSucceed(async (fd) => {
114 runTests(fd).then(common.mustCall(() => fs.close(fd, common.mustSucceed())));
Dtest-fs-read-offset-null.js22 fs.open(filepath, 'r', common.mustSucceed((fd) => {
24 common.mustSucceed((bytesRead, buffer) => {
26 fs.close(fd, common.mustSucceed(() => {}));
30 fs.open(filepath, 'r', common.mustSucceed((fd) => {
32 common.mustSucceed((bytesRead, buffer) => {
34 fs.close(fd, common.mustSucceed(() => {}));
Dtest-crypto-random.js131 crypto.randomFill(buf, common.mustSucceed((buf) => {
140 crypto.randomFill(buf, common.mustSucceed((buf) => {
155 crypto.randomFill(buf, common.mustSucceed((buf) => {
168 crypto.randomFill(buf, common.mustSucceed((buf) => {
205 crypto.randomFill(buf, 5, 5, common.mustSucceed((buf) => {
215 crypto.randomFill(buf, 5, 5, common.mustSucceed((buf) => {
349 crypto.randomInt(3, common.mustSucceed((n) => {
383 crypto.randomInt(1, 3, common.mustSucceed((n) => {
400 crypto.randomInt(-10, -8, common.mustSucceed((n) => {
458 crypto.randomInt(minInt, minInt + 5, common.mustSucceed());
[all …]
Dtest-webstreams-pipeline.js24 pipeline(rs, ws, common.mustSucceed(() => {
73 pipeline(rs, ts, ws, common.mustSucceed(() => {
128 pipeline(r, ws, common.mustSucceed(() => {
153 pipeline(rs, w, common.mustSucceed(() => {
183 pipeline(rs, t, ws, common.mustSucceed(() => {
201 pipeline(rs, res, common.mustSucceed(() => {}));
230 pipeline(req, ts, res, common.mustSucceed());
247 pipeline(rs, req, common.mustSucceed());
317 }, common.mustSucceed(() => {
357 }, common.mustSucceed(() => {
[all …]
Dtest-fs-buffer.js12 fs.access(Buffer.from(tmpdir.path), common.mustSucceed());
15 fs.open(buf, 'w+', common.mustSucceed((fd) => {
17 fs.close(fd, common.mustSucceed());
33 fs.readdir(dir, 'hex', common.mustSucceed((hexList) => {
34 fs.readdir(dir, common.mustSucceed((stringList) => {
Dtest-crypto-keygen.js181 }, common.mustSucceed((publicKeyDER, privateKey) => {
205 }, common.mustSucceed((publicKeyDER, privateKey) => {
241 }, common.mustSucceed((publicKeyDER, privateKeyDER) => {
282 }, common.mustSucceed((publicKeyDER, privateKeyDER) => {
307 }, common.mustSucceed((publicKey, privateKey) => {
355 }, common.mustSucceed((publicKey, privateKey) => {
381 }, common.mustSucceed((publicKey, privateKey) => {
401 }, common.mustSucceed((publicKey, privateKey) => {
418 }, common.mustSucceed((publicKey, privateKey) => {
450 }, common.mustSucceed((publicKey, privateKeyDER) => {
[all …]
Dtest-crypto-prime.js98 generatePrime(80, common.mustSucceed((prime) => {
100 checkPrime(prime, common.mustSucceed((result) => {
107 generatePrime(80, {}, common.mustSucceed((prime) => {
113 generatePrime(32, { safe: true }, common.mustSucceed((prime) => {
139 common.mustSucceed((prime) => {
170 }, common.mustSucceed((prime) => {
179 }, common.mustSucceed((prime) => {
286 checkPrime(prime, common.mustSucceed(assert));
290 generatePrime(3, { bigint: true }, common.mustSucceed((prime) => {
294 checkPrime(prime, common.mustSucceed(assert));
Dtest-fs-stat.js28 fs.stat('.', common.mustSucceed(function(stats) {
38 fs.lstat('.', common.mustSucceed(function(stats) {
47 fs.open('.', 'r', undefined, common.mustSucceed(function(fd) {
50 fs.fstat(-0, common.mustSucceed());
52 fs.fstat(fd, common.mustSucceed(function(stats) {
71 fs.close(fd, common.mustSucceed());
74 fs.stat(__filename, common.mustSucceed((s) => {
Dtest-fs-open.js41 fs.open(__filename, common.mustSucceed());
43 fs.open(__filename, 'r', common.mustSucceed());
45 fs.open(__filename, 'rs', common.mustSucceed());
47 fs.open(__filename, 'r', 0, common.mustSucceed());
49 fs.open(__filename, 'r', null, common.mustSucceed());
Dtest-fs-symlink.js42 fs.symlink(linkData, linkPath, common.mustSucceed(() => {
43 fs.lstat(linkPath, common.mustSucceed((stats) => {
47 fs.stat(linkPath, common.mustSucceed((stats) => {
51 fs.readlink(linkPath, common.mustSucceed((destination) => {
61 fs.symlink(linkData, linkPath, common.mustSucceed(() => {
Dtest-fs-writefile-with-fd.js52 fs.open(file, 'w', common.mustSucceed((fd) => {
55 fs.write(fd, 'Hello', common.mustSucceed((bytes) => {
60 fs.writeFile(fd, 'World', common.mustSucceed(() => {
73 fs.open(file, 'r', common.mustSucceed((fd) => {
85 fs.open(file, 'w', common.mustSucceed((fd) => {
Dtest-util-callbackify.js35 cbAsyncFn(common.mustSucceed((ret) => {
45 cbPromiseFn(common.mustSucceed((ret) => {
59 cbThenableFn(common.mustSucceed((ret) => {
162 cbAsyncFn(value, common.mustSucceed((ret) => {
180 cbPromiseFn(value, common.mustSucceed((ret) => {
196 iAmThis.cbFn(value, common.mustSucceed(function(ret) {
208 iAmThat.cbFn(value, common.mustSucceed(function(ret) {
238 common.mustSucceed((stdout, stderr) => {
Dtest-stream-pipeline.js50 pipeline(read, write, common.mustSucceed(() => {
260 pipeline(req, res, common.mustSucceed());
381 common.mustSucceed(() => {
602 }(), w, common.mustSucceed(() => {
619 }(), w, common.mustSucceed(() => {
635 }, w, common.mustSucceed(() => {
652 }, w, common.mustSucceed(() => {
671 }, common.mustSucceed(() => {
691 }, common.mustSucceed((val) => {
957 }, common.mustSucceed(() => {
[all …]
/third_party/protobuf/csharp/src/Google.Protobuf/
DSegmentedBufferHelper.cs91 …c bool RefillBuffer(ref ReadOnlySpan<byte> buffer, ref ParserInternalState state, bool mustSucceed) in RefillBuffer()
95 return RefillFromCodedInputStream(ref buffer, ref state, mustSucceed); in RefillBuffer()
99 return RefillFromReadOnlySequence(ref buffer, ref state, mustSucceed); in RefillBuffer()
166 …romReadOnlySequence(ref ReadOnlySpan<byte> buffer, ref ParserInternalState state, bool mustSucceed) in RefillFromReadOnlySequence()
173 if (mustSucceed) in RefillFromReadOnlySequence()
199 if (mustSucceed) in RefillFromReadOnlySequence()
221 …romCodedInputStream(ref ReadOnlySpan<byte> buffer, ref ParserInternalState state, bool mustSucceed) in RefillFromCodedInputStream()
228 if (mustSucceed) in RefillFromCodedInputStream()
250 if (mustSucceed) in RefillFromCodedInputStream()
/third_party/node/test/internet/
Dtest-dns-ipv4.js55 common.mustSucceed((ips) => {
77 common.mustSucceed((domains) => {
95 common.mustSucceed((ip, family) => {
113 common.mustSucceed((ip, family) => {
131 }, common.mustSucceed((ip, family) => {
151 }, common.mustSucceed((ip, family) => {
168 common.mustSucceed((ip, family) => {
185 common.mustSucceed((ip, family) => {
212 common.mustSucceed((ips) => {
232 common.mustSucceed((hostname, service) => {
/third_party/node/test/sequential/
Dtest-fs-opendir-recursive.js161 fs.opendir(testDir, { recursive: true }, common.mustSucceed((dir) => {
163 dir.close(common.mustSucceed());
192 processDirCb(dir, common.mustSucceed((dirents) => {
194 dir.close(common.mustSucceed());
199 fs.opendir(testDir, { recursive: true }, common.mustSucceed((dir) => {
200 processDirCb(dir, common.mustSucceed((dirents) => {
202 dir.close(common.mustSucceed());

12345678