MCPcopy Create free account
hub / github.com/RtlZeroMemory/Rezi / assert

Function assert

packages/native/scripts/smoke.mjs:23–25  ·  view source on GitHub ↗
(cond, msg)

Source from the content-addressed store, hash-verified

21const INVALID_ARG_ERROR_RE = /INVALID_ARGUMENT|InvalidArg|ZR_ERR_INVALID_ARGUMENT/i;
22
23function assert(cond, msg) {
24 if (!cond) throw new Error(msg);
25}
26
27function assertThrows(fn, pattern, msg) {
28 let threw = false;

Callers 5

assertThrowsFunction · 0.85
assertMetricsShapeFunction · 0.85
assertDebugStatsShapeFunction · 0.85
smoke.mjsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected