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

Function makeThrower

packages/agent-core/test/di/lifecycle.test.ts:36–42  ·  view source on GitHub ↗
(message: string)

Source from the content-addressed store, hash-verified

34}
35
36function makeThrower(message: string): IDisposable {
37 return {
38 dispose() {
39 throw new Error(message);
40 },
41 };
42}
43
44function captureThrown(fn: () => void): unknown {
45 try {

Callers 1

lifecycle.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected