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

Function validateResult

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

Source from the content-addressed store, hash-verified

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

Callers 1

test-dns-ipv4.jsFile · 0.70

Calls 5

isIPv4Function · 0.85
includesMethod · 0.80
forEachMethod · 0.65
assertFunction · 0.50
okMethod · 0.45

Tested by

no test coverage detected