MCPcopy Create free account
hub / github.com/Effect-TS/effect / testClient

Function testClient

packages/platform/node/test/RpcServer.test.ts:185–193  ·  view source on GitHub ↗
(entityId: string)

Source from the content-addressed store, hash-verified

183 const TestEntityRpcs = EntityProxy.toRpcGroup(TestEntity)
184 const called = yield* Deferred.make<void>()
185 const testClient = (entityId: string) => ({
186 NoPayload: (payload: void, options?: { readonly discard?: boolean }) =>
187 Effect.gen(function*() {
188 assert.strictEqual(entityId, "id")
189 assert.strictEqual(payload, undefined)
190 assert.strictEqual(options?.discard, true)
191 yield* Deferred.succeed(called, undefined)
192 })
193 })
194 const sharding = Sharding.Sharding.of({
195 ...({} as Sharding.Sharding["Service"]),
196 isShutdown: Effect.succeed(false),

Callers

nothing calls this directly

Calls 1

succeedMethod · 0.45

Tested by

no test coverage detected