/third_party/node/test/parallel/ |
D | test-http2-compat-serverresponse-end.js | 4 mustCall, 26 const server = createServer(mustCall((request, response) => { 27 response.end('end', 'utf8', mustCall(() => { 28 response.end(mustCall()); 30 response.end(mustCall()); 34 response.on('finish', mustCall(() => { 35 response.end(mustCall()); 37 response.end(mustCall()); 39 server.listen(0, mustCall(() => { 43 const client = connect(url, mustCall(() => { [all …]
|
D | test-webstreams-compose.js | 24 transform: common.mustCall((chunk, controller) => { 29 transform: common.mustCall((chunk, controller) => { 35 d.on('data', common.mustCall((chunk) => { 39 d.on('end', common.mustCall(() => { 51 transform: common.mustCall((chunk, encoding, callback) => { 56 transform: common.mustCall((chunk, controller) => { 62 .on('data', common.mustCall((buf) => { 65 .on('end', common.mustCall(() => { 80 transform: common.mustCall((chunk, controller) => { 86 .on('data', common.mustCall((buf) => { [all …]
|
D | test-stream-construct.js | 10 construct: common.mustCall((callback) => { 23 construct: common.mustCall((callback) => { 37 construct: common.mustCall((callback) => { 50 construct: common.mustCall((callback) => { 63 construct: common.mustCall((callback) => { 76 construct: common.mustCall((callback) => { 89 construct: common.mustCall((cb) => { 94 s.on('close', common.mustCall(() => { 103 construct: common.mustCall((cb) => { 108 s.on('close', common.mustCall(() => { [all …]
|
D | test-domain-promise.js | 13 d.run(common.mustCall(() => { 14 Promise.resolve().then(common.mustCall(() => { 23 d.run(common.mustCall(() => { 24 Promise.resolve().then(() => {}).then(() => {}).then(common.mustCall(() => { 33 d.run(common.mustCall(() => { 48 d1.run(common.mustCall(() => { 52 d2.run(common.mustCall(() => { 53 p.then(common.mustCall((v) => { 63 d1.run(common.mustCall(() => { 67 d2.run(common.mustCall(() => { [all …]
|
D | test-http-generic-streams.js | 10 const server = http.createServer(common.mustCall((req, res) => { 20 createConnection: common.mustCall(() => clientSide) 21 }, common.mustCall((res) => { 23 res.on('data', common.mustCall((data) => { 26 res.on('end', common.mustCall()); 34 const server = http.createServer(common.mustCall((req, res) => { 45 createConnection: common.mustCall(() => clientSide), 47 }, common.mustCall((res) => { 49 res.on('data', common.mustCall((data) => { 52 res.on('end', common.mustCall(cb)); [all …]
|
D | test-whatwg-webstreams-adapters-to-readablewritablepair.js | 39 duplex.on('close', common.mustCall()); 53 duplex.on('close', common.mustCall()); 54 duplex.on('error', common.mustCall((reason) => { 75 duplex.on('close', common.mustCall()); 76 duplex.on('error', common.mustCall((reason) => { 83 reader.closed.then(common.mustCall()); 86 reader.cancel(error).then(common.mustCall()); 96 duplex.on('close', common.mustCall()); 102 reader.closed.then(common.mustCall()); 103 writer.closed.then(common.mustCall()); [all …]
|
D | test-stream-finished.js | 73 finished(rs, common.mustCall()); 81 const done = common.mustCall(); 102 finished(rs, { signal }, common.mustCall((err) => { 113 finished(rs, { signal }, common.mustCall((err) => { 127 finished(rs, { signal }, common.mustCall((err) => { 156 assert.rejects(run, { name: 'AbortError' }).then(common.mustCall()); 169 assert.rejects(run, { name: 'AbortError' }).then(common.mustCall()); 194 finished(rs, common.mustCall((err) => { 231 finished(rs, null, common.mustCall()); 276 finished(writable, common.mustCall((err) => { [all …]
|
D | test-http2-compat-serverresponse-write.js | 4 mustCall, 15 server.listen(0, mustCall(() => { 18 const client = connect(url, mustCall(() => { 21 request.on('end', mustCall()); 22 request.on('close', mustCall(() => { 27 server.once('request', mustCall((request, response) => { 29 assert(response.write('muahaha', 'utf8', mustCall())); 31 response.stream.close(0, mustCall(() => { 35 response.write('muahaha', mustCall((err) => { 39 assert(!response.write('muahaha', mustCall())); [all …]
|
D | test-webstreams-abort-controller.js | 36 finished(rs, common.mustCall((err) => { 38 assert.rejects(reader.read(), /AbortError/).then(common.mustCall()); 39 assert.rejects(reader.closed, /AbortError/).then(common.mustCall()); 42 reader.read().then(common.mustCall((result) => { 61 })(), /AbortError/).then(common.mustCall()); 77 finished(rs1, common.mustCall((err) => { 79 assert.rejects(reader1.read(), /AbortError/).then(common.mustCall()); 80 assert.rejects(reader1.closed, /AbortError/).then(common.mustCall()); 83 finished(rs2, common.mustCall((err) => { 85 assert.rejects(reader2.read(), /AbortError/).then(common.mustCall()); [all …]
|
D | test-event-capture-rejections.js | 32 ee.on('something', common.mustCall(async (value) => { 36 ee.on('error', common.mustCall((err) => { 48 ee.on('something', common.mustCall(async (value) => { 53 ee.on('something', common.mustCall(async (value) => { 59 ee.on('error', common.mustCall((err) => { 72 ee.on('something', common.mustCall(async (value) => { 78 process.once('unhandledRejection', common.mustCall((err) => { 94 ee.on('something', common.mustCall(async (value) => { 98 ee.on('error', common.mustCall((err) => { 114 ee.on('something', common.mustCall(async (...args) => { [all …]
|
D | test-http2-client-destroy.js | 15 server.listen(0, common.mustCall(() => { 27 client.on('connect', common.mustCall(() => { 42 client.on('close', common.mustCall(() => { 55 server.listen(0, common.mustCall(() => { 58 socket.on('close', common.mustCall(() => { 101 req.on('close', common.mustCall(() => server.close())); 108 server.on('stream', common.mustCall((stream) => { 112 server.listen(0, common.mustCall(() => { 130 server.listen(0, common.mustCall(() => { 133 server.on('connection', common.mustCall(() => { [all …]
|
D | test-http-early-hints.js | 12 const server = http.createServer(common.mustCall((req, res) => { 22 server.listen(0, common.mustCall(() => { 29 req.on('information', common.mustCall((res) => { 33 req.on('response', common.mustCall((res) => { 42 res.on('end', common.mustCall(() => { 56 const server = http.createServer(common.mustCall((req, res) => { 70 server.listen(0, common.mustCall(() => { 76 req.on('information', common.mustCall((res) => { 84 req.on('response', common.mustCall((res) => { 93 res.on('end', common.mustCall(() => { [all …]
|
D | test-stream-writable-destroy.js | 13 write.on('close', common.mustCall()); 27 write.on('error', common.mustCall()); 41 write.on('close', common.mustCall()); 42 write.on('error', common.mustCall((err) => { 63 write.on('close', common.mustCall()); 64 write.on('error', common.mustCall((err) => { 75 destroy: common.mustCall(function(err, cb) { 84 write.on('close', common.mustCall()); 98 write._destroy = common.mustCall(function(err, cb) { 112 write._destroy = common.mustCall(function(err, cb) { [all …]
|
D | test-repl-tab-complete.js | 73 testMe.complete('console.lo', common.mustCall(function(error, data) { 77 testMe.complete('console?.lo', common.mustCall((error, data) => { 81 testMe.complete('console?.zzz', common.mustCall((error, data) => { 85 testMe.complete('console?.', common.mustCall((error, data) => { 92 testMe.complete('inner.o', common.mustCall(function(error, data) { 202 testMe.complete('str.len', common.mustCall(function(error, data) { 214 common.mustCall(function(error, data) { 230 common.mustCall(function(error, data) { 253 testMe.complete('toSt', common.mustCall(function(error, data) { 267 testMe.complete('y.', common.mustCall(function(error, data) { [all …]
|
D | test-http-set-timeout-server.js | 34 tests.push(common.mustCall(fn)); 46 server.listen(common.mustCall(() => { 47 const s = server.setTimeout(50, common.mustCall((socket) => { 55 }).on('error', common.mustCall()); 60 const server = http.createServer(common.mustCall((req, res) => { 62 const s = req.setTimeout(50, common.mustCall((socket) => { 69 server.listen(common.mustCall(() => { 74 req.on('error', common.mustCall()); 81 const server = http.createServer(common.mustCall((req, res) => { 83 const s = res.setTimeout(50, common.mustCall((socket) => { [all …]
|
D | test-stream-compose.js | 20 transform: common.mustCall((chunk, encoding, callback) => { 25 transform: common.mustCall((chunk, encoding, callback) => { 31 .on('data', common.mustCall((buf) => { 34 .on('end', common.mustCall(() => { 54 .on('data', common.mustCall((buf) => { 57 .on('end', common.mustCall(() => { 72 .on('data', common.mustCall((buf) => { 75 .on('end', common.mustCall(() => { 85 transform: common.mustCall((chunk, encoding, callback) => { 90 .on('data', common.mustCall((buf) => { [all …]
|
D | test-readable-from-iterator-closing.js | 3 const { mustCall, mustNotCall } = require('../common'); 8 const finallyMustCall = mustCall(); 9 const bodyMustCall = mustCall(); 29 const finallyMustCall = mustCall(); 30 const bodyMustCall = mustCall(); 50 const returnMustBeAwaited = mustCall(); 51 const bodyMustCall = mustCall(); 75 const returnMustBeAwaited = mustCall(); 77 const catchMustCall = mustCall(); 107 const catchMustCall = mustCall(); [all …]
|
D | test-http-req-res-close.js | 10 const server = http.Server(common.mustCall((req, res) => { 16 res.on('finish', common.mustCall(() => { 23 res.on('close', common.mustCall(() => { 30 req.on('end', common.mustCall(() => { 33 req.on('close', common.mustCall(() => { 42 server.listen(0, common.mustCall(() => { 43 http.get({ port: server.address().port }, common.mustCall()); 50 const server = http.Server(common.mustCall((req, res) => { 57 res.on('finish', common.mustCall(() => { 64 res.on('close', common.mustCall(() => { [all …]
|
D | test-https-set-timeout-server.js | 44 tests.push(common.mustCall(fn)); 56 server.listen(common.mustCall(() => { 57 const s = server.setTimeout(50, common.mustCall((socket) => { 66 }).on('error', common.mustCall()); 73 common.mustCall((req, res) => { 75 const s = req.setTimeout(50, common.mustCall((socket) => { 82 server.listen(common.mustCall(() => { 88 req.on('error', common.mustCall()); 97 common.mustCall((req, res) => { 99 const s = res.setTimeout(50, common.mustCall((socket) => { [all …]
|
D | test-http2-compat-serverresponse-writehead-array.js | 13 server.listen(0, common.mustCall(() => { 16 server.once('request', common.mustCall((request, response) => { 22 response.end(common.mustCall(() => { server.close(); })); 25 const client = http2.connect(`http://localhost:${port}`, common.mustCall(() => { 28 request.on('response', common.mustCall((headers) => { 33 request.on('end', common.mustCall(() => { 44 server.listen(0, common.mustCall(() => { 47 server.once('request', common.mustCall((request, response) => { 50 response.end(common.mustCall(() => { server.close(); })); 53 const client = http2.connect(`http://localhost:${port}`, common.mustCall(() => { [all …]
|
D | test-http2-capture-rejection.js | 18 server.on('stream', common.mustCall(async (stream) => { 24 stream.on('error', common.mustCall((err) => { 30 server.listen(0, common.mustCall(() => { 36 req.on('error', common.mustCall((err) => { 40 req.on('close', common.mustCall(() => { 51 server.on('stream', common.mustCall(async (stream) => { 59 server.listen(0, common.mustCall(() => { 65 req.on('response', common.mustCall((headers) => { 69 req.on('close', common.mustCall(() => { 78 const server = createServer(common.mustCall(async (req, res) => { [all …]
|
/third_party/node/test/node-api/test_make_callback_recurse/ |
D | test.js | 10 const mustCallCheckDomains = common.mustCall(checkDomains); 31 Promise.resolve(1).then(common.mustCall(function() { 36 process.nextTick(common.mustCall(function() { 42 process.nextTick(common.mustCall(function() { 46 makeCallback({}, common.mustCall(function() { 58 makeCallback({}, common.mustCall(function() { 67 setImmediate(common.mustCall(function() { 76 makeCallback({}, common.mustCall(function() { 83 setTimeout(common.mustCall(function() { 98 setImmediate(common.mustCall(function() { [all …]
|
/third_party/node/test/addons/make-callback-recurse/ |
D | test.js | 10 const mustCallCheckDomains = common.mustCall(checkDomains); 30 Promise.resolve(1).then(common.mustCall(() => { 35 process.nextTick(common.mustCall(() => { 41 process.nextTick(common.mustCall(() => { 45 makeCallback({}, common.mustCall(() => { 57 makeCallback({}, common.mustCall(() => { 66 setImmediate(common.mustCall(() => { 75 makeCallback({}, common.mustCall(() => { 82 setTimeout(common.mustCall(() => { 97 setImmediate(common.mustCall(() => { [all …]
|
/third_party/node/test/fixtures/test-runner/output/ |
D | name_pattern.js | 17 it('top level it enabled', common.mustCall()); 21 describe('top level describe never disabled', common.mustCall()); 24 test('top level runs because name includes PaTtErN', common.mustCall()); 26 test('top level test enabled', common.mustCall(async (t) => { 27 t.beforeEach(common.mustCall()); 28 t.afterEach(common.mustCall()); 31 common.mustCall(), 36 before(common.mustCall()); 37 beforeEach(common.mustCall(3)); 38 afterEach(common.mustCall(3)); [all …]
|
/third_party/node/test/es-module/ |
D | test-esm-loader-stringify-text.mjs | 2 import { mustCall, mustNotCall } from '../common/index.mjs'; 7 mustCall((e) => { 12 mustCall(), 16 mustCall(), 20 mustCall(), 24 mustCall(), 28 mustCall(), 32 mustCall(), 36 mustCall(), 40 mustCall(), [all …]
|