MCPcopy Create free account
hub / github.com/Effect-TS/effect / assert

Function assert

packages/effect/src/Console.ts:146–151  ·  view source on GitHub ↗
(condition: boolean, ...args: ReadonlyArray<any>)

Source from the content-addressed store, hash-verified

144 * @since 2.0.0
145 */
146export const assert = (condition: boolean, ...args: ReadonlyArray<any>): Effect.Effect<void> =>
147 consoleWith((console) =>
148 effect.sync(() => {
149 console.assert(condition, ...args)
150 })
151 )
152
153/**
154 * Runs the current console service's clear operation.

Callers 15

Cli.test.tsFile · 0.50
Snapshot.test.tsFile · 0.50
Diff.test.tsFile · 0.50
Report.test.tsFile · 0.50
failureFunction · 0.50
githubFunction · 0.50

Calls 3

consoleWithFunction · 0.85
assertMethod · 0.80
syncMethod · 0.45

Tested by 15

failureFunction · 0.40
githubFunction · 0.40
dumpConnectionFunction · 0.40
normalizeFunction · 0.40
createdFunction · 0.40
kindFunction · 0.40
createdFunction · 0.40
createdFunction · 0.40
spanFunction · 0.40
spanFunction · 0.40
tcpPortFunction · 0.40
assertDieFunction · 0.40