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

Function checkA

test/internet/test-dns-any.js:24–28  ·  view source on GitHub ↗
(r)

Source from the content-addressed store, hash-verified

22/* eslint-disable node-core/must-call-assert */
23const checkers = {
24 checkA(r) {
25 assert.ok(isIPv4(r.address));
26 assert.strictEqual(typeof r.ttl, 'number');
27 assert.strictEqual(r.type, 'A');
28 },
29 checkAAAA(r) {
30 assert.ok(isIPv6(r.address));
31 assert.strictEqual(typeof r.ttl, 'number');

Callers

nothing calls this directly

Calls 2

isIPv4Function · 0.85
okMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…