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

Function assertFailureTagged

packages/sql/pg/test/PgAuth.test.ts:14–18  ·  view source on GitHub ↗
(tag: string, run: () => Result.Result<unknown, { readonly _tag: string }>)

Source from the content-addressed store, hash-verified

12}
13
14const assertFailureTagged = (tag: string, run: () => Result.Result<unknown, { readonly _tag: string }>) => {
15 const result = run()
16 assert.isTrue(Result.isFailure(result))
17 if (Result.isFailure(result)) assert.strictEqual(result.failure._tag, tag)
18}
19
20describe("PgAuth", () => {
21 describe("md5Password", () => {

Callers 1

PgAuth.test.tsFile · 0.85

Calls 1

runFunction · 0.50

Tested by

no test coverage detected