Home
last modified time | relevance | path

Searched refs:validateCIDRList (Results 1 – 2 of 2) sorted by relevance

/third_party/node/deps/npm/test/tap/
Dunit-token-validate-cidr.js3 const validateCIDRList = require('../../lib/token.js')._validateCIDRList constant
11 t.doesNotThrow(() => t.isDeeply(validateCIDRList(single.join(',')), single), 'single string ipv4')
12 t.doesNotThrow(() => t.isDeeply(validateCIDRList(single), single), 'single array ipv4')
13 t.doesNotThrow(() => t.isDeeply(validateCIDRList(double.join(',')), double), 'double string ipv4')
14 t.doesNotThrow(() => t.isDeeply(validateCIDRList(double), double), 'double array ipv4')
15 t.throws(() => validateCIDRList(ipv6))
16 t.throws(() => validateCIDRList(ipv6Mixed))
/third_party/node/deps/npm/lib/
Dtoken.js20 token._validateCIDRList = validateCIDRList
209 const validCIDR = validateCIDRList(cidr)
239 function validateCIDRList (cidrs) { function