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

Function parseOne

packages/sql/pg/test/PgProtocol.test.ts:13–17  ·  view source on GitHub ↗
(golden: string)

Source from the content-addressed store, hash-verified

11}
12
13const parseOne = (golden: string): PgProtocol.BackendMessage => {
14 const messages = PgProtocol.makeParser().push(bytes(golden))
15 assert.strictEqual(messages.length, 1)
16 return messages[0]
17}
18
19const assertThrowsTagged = (tag: string, run: () => unknown, message?: string): void => {
20 try {

Callers 1

PgProtocol.test.tsFile · 0.85

Calls 2

bytesFunction · 0.90
pushMethod · 0.65

Tested by

no test coverage detected