MCPcopy Create free account
hub / github.com/denoland/std / assertFalse

Function assertFalse

assert/false.ts:23–27  ·  view source on GitHub ↗
(expr: unknown, msg = "")

Source from the content-addressed store, hash-verified

21 * @throws {AssertionError} If `expr` is truthy.
22 */
23export function assertFalse(expr: unknown, msg = ""): asserts expr is Falsy {
24 if (expr) {
25 throw new AssertionError(msg);
26 }
27}

Callers 12

assertBlocksFunction · 0.90
all_keyed_test.tsFile · 0.90
channel_test.tsFile · 0.90
_equal_test.tsFile · 0.90
equal_test.tsFile · 0.90
false_test.tsFile · 0.90
assertNotInstanceOfFunction · 0.90
test_test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected