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

Function check

packages/effect/src/chat/ChatTest.ts:1126–1127  ·  view source on GitHub ↗
(rule: string, condition: boolean, expected: string, actual: () => string)

Source from the content-addressed store, hash-verified

1124 new ConformanceFailure({ rule, expected, actual, ...(cause === undefined ? {} : { cause }) })
1125
1126const check = (rule: string, condition: boolean, expected: string, actual: () => string) =>
1127 condition ? Effect.void : Effect.fail(failure(rule, expected, actual()))
1128
1129const MessageJson = Schema.toCodecJson(ChatMessage.ChatMessage)
1130const EventJson = Schema.toCodecJson(ChatEvent.ChatEvent)

Callers 6

roundTripFunction · 0.70
ChatTest.tsFile · 0.70
checkEventFunction · 0.70
checkInteractionFunction · 0.70
checkMethod · 0.70
fromBytesFunction · 0.50

Calls 2

failureFunction · 0.70
failMethod · 0.65

Tested by

no test coverage detected