MCPcopy
hub / github.com/xpf0000/FlyEnv / createSendResult

Function createSendResult

scripts/mcp-regression-test.ts:29–38  ·  view source on GitHub ↗
(result: { code: number; data?: any; msg?: string })

Source from the content-addressed store, hash-verified

27}
28
29function createSendResult(result: { code: number; data?: any; msg?: string }) {
30 const promise = Promise.resolve(result)
31 return {
32 on() {
33 return this
34 },
35 then: promise.then.bind(promise),
36 catch: promise.catch.bind(promise)
37 }
38}
39
40class FakeForkManager {
41 calls: ForkCall[] = []

Callers 3

sendMethod · 0.70

Calls 1

resolveMethod · 0.80

Tested by

no test coverage detected