MCPcopy
hub / github.com/superagent-ai/grok-cli / FakeStatement

Class FakeStatement

src/storage/migrations.test.ts:63–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63class FakeStatement implements SQLiteStatement {
64 constructor(private readonly allFn: () => unknown[]) {}
65
66 run(): unknown {
67 throw new Error("Unexpected run");
68 }
69
70 get(): unknown {
71 throw new Error("Unexpected get");
72 }
73
74 all(): unknown[] {
75 return this.allFn();
76 }
77}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected