MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / assert

Function assert

packages/node-sdk/examples/kimi-harness-logging-smoke.ts:13–15  ·  view source on GitHub ↗
(value: unknown, message: string)

Source from the content-addressed store, hash-verified

11const MAX_LOG_BYTES = 4096;
12
13function assert(value: unknown, message: string): asserts value {
14 if (!value) throw new Error(message);
15}
16
17function expectEntry(entries: readonly string[], name: string): void {
18 assert(entries.includes(name), `missing ${name} from export`);

Callers 4

expectEntryFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected