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

Function validateResult

test/internet/test-dns-ipv6.js:43–49  ·  view source on GitHub ↗
(res)

Source from the content-addressed store, hash-verified

41
42test(async function test_resolve6(done) {
43 function validateResult(res) {
44 assert.ok(res.length > 0);
45
46 for (let i = 0; i < res.length; i++) {
47 assert.ok(isIPv6(res[i]));
48 }
49 }
50
51 validateResult(await dnsPromises.resolve6(addresses.INET6_HOST));
52

Callers 1

test-dns-ipv6.jsFile · 0.70

Calls 4

isIPv6Function · 0.85
forEachMethod · 0.65
okMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…