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

Function getValidateFactory

benchmark/validators/validate-encoding.js:27–33  ·  view source on GitHub ↗
(encoding)

Source from the content-addressed store, hash-verified

25});
26
27function getValidateFactory(encoding) {
28 const {
29 validateEncoding,
30 } = require('internal/validators');
31
32 return (n) => validateEncoding(n, encoding);
33}
34
35function main({ n, encoding, value }) {
36 const validate = getValidateFactory(encoding);

Callers 1

mainFunction · 0.70

Calls 1

requireFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…