MCPcopy
hub / github.com/modstart-lib/aigcpanel / TestRegistry

Interface TestRegistry

src/utils/test.ts:20–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18export type TestAction = (arg?: any) => Promise<any> | any;
19
20export interface TestRegistry {
21 setAction(name: string, fn: TestAction): void;
22 unsetAction(name: string | string[]): void;
23 callAction(name: string, arg?: any): Promise<any>;
24 listActions(): string[];
25 navigateTo(path: string): Promise<void>;
26 getTask(taskId: string): Promise<any>;
27 getErrors(): string[];
28 clearErrors(): void;
29}
30
31// ===== 内部可变引用(默认 no-op,PRO 模式下会被覆写) =====
32let _setAction: (name: string, fn: TestAction) => void = () => {};

Callers 2

testActionSetFunction · 0.80
testActionUnsetFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected