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

Function register

lib/internal/test_runner/assert.js:43–48  ·  view source on GitHub ↗
(name, fn)

Source from the content-addressed store, hash-verified

41}
42
43function register(name, fn) {
44 validateString(name, 'name');
45 validateFunction(fn, 'fn');
46 const map = getAssertionMap();
47 map.set(name, fn);
48}
49
50module.exports = { getAssertionMap, register };

Callers

nothing calls this directly

Calls 2

getAssertionMapFunction · 0.85
setMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…