MCPcopy Index your code
hub / github.com/nodejs/node / validateResults

Function validateResults

test/parallel/test-dns.js:472–478  ·  view source on GitHub ↗
(res)

Source from the content-addressed store, hash-verified

470 dns.setServers([`127.0.0.1:${address.port}`]);
471
472 function validateResults(res) {
473 if (!Array.isArray(res))
474 res = [res];
475
476 assert.deepStrictEqual(res.map(tweakEntry),
477 cases[0].answers.map(tweakEntry));
478 }
479
480 function tweakEntry(r) {
481 const ret = { ...r };

Callers 1

test-dns.jsFile · 0.70

Calls 1

mapMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…