MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / check

Function check

apps/api/e2e/lib.ts:73–76  ·  view source on GitHub ↗
(name: string, ok: boolean, detail?: string)

Source from the content-addressed store, hash-verified

71 console.log(`\n▶ ${name}`);
72}
73export function check(name: string, ok: boolean, detail?: string) {
74 results.push({ scenario: currentScenario, name, ok, detail });
75 console.log(` ${ok ? '✓' : '✗'} ${name}${detail && !ok ? ` — ${detail}` : ''}`);
76}
77/** Print the summary and return the number of failed checks. */
78export function summarize(): number {
79 const failed = results.filter((r) => !r.ok);

Callers 11

emitFunction · 0.90
settleFunction · 0.90
drainFunction · 0.90
reconcileFunction · 0.90
scenarioSingleSessionFunction · 0.90
scenarioBoundaryFunction · 0.90
scenarioReplayFunction · 0.90
scenarioIdentifyFunction · 0.90
ensureFixturesFunction · 0.70
preflightFunction · 0.70

Calls 2

pushMethod · 0.45
logMethod · 0.45

Tested by

no test coverage detected