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

Function shouldAssert

test/fixtures/snapshot/typescript.js:2683–2685  ·  view source on GitHub ↗
(level)

Source from the content-addressed store, hash-verified

2681 }
2682 Debug.setAssertionLevel = setAssertionLevel;
2683 function shouldAssert(level) {
2684 return currentAssertionLevel >= level;
2685 }
2686 Debug.shouldAssert = shouldAssert;
2687 /**
2688 * Tests whether an assertion function should be executed. If it shouldn't, it is cached and replaced with `ts.noop`.

Callers 1

shouldAssertFunctionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected