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

Method userPosts

packages/effect/src/chat/ChatTest.ts:1541–1549  ·  view source on GitHub ↗
(thread = this.thread)

Source from the content-addressed store, hash-verified

1539 }
1540
1541 userPosts(thread = this.thread) {
1542 return Effect.flatMap(
1543 this.options.userPosts(thread, conformanceText(this.rule)),
1544 (event) =>
1545 event._tag === "MessageCreated"
1546 ? Effect.succeed(event)
1547 : Effect.fail(failure(this.rule, "a MessageCreated event from userPosts", event._tag))
1548 )
1549 }
1550
1551 expectReason<A>(
1552 tag: ChatErrorReason["_tag"],

Callers 5

probeMethod · 0.95
conformanceFunction · 0.95
rulesForFunction · 0.80
ChatTest.test.tsFile · 0.80

Calls 4

conformanceTextFunction · 0.85
failureFunction · 0.70
failMethod · 0.65
succeedMethod · 0.45

Tested by 1

rulesForFunction · 0.64