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

Function getAssertionMap

lib/internal/test_runner/assert.js:31–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29let assertMap;
30
31function getAssertionMap() {
32 if (assertMap === undefined) {
33 assertMap = new SafeMap();
34
35 for (let i = 0; i < methodsToCopy.length; i++) {
36 assertMap.set(methodsToCopy[i], assert[methodsToCopy[i]]);
37 }
38 }
39
40 return assertMap;
41}
42
43function register(name, fn) {
44 validateString(name, 'name');

Callers 2

lazyAssertObjectFunction · 0.85
registerFunction · 0.85

Calls 1

setMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…