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

Function hex

packages/sql/pg/test/PgProtocol.test.ts:6–6  ·  view source on GitHub ↗
(value: Uint8Array)

Source from the content-addressed store, hash-verified

4import { backend, bytes, frontend } from "./fixtures/goldens.ts"
5
6const hex = (value: Uint8Array): string => Array.from(value, (byte) => byte.toString(16).padStart(2, "0")).join("")
7
8const success = <A, E>(result: Result.Result<A, E>): A => {
9 assert.isTrue(Result.isSuccess(result))

Callers 1

PgProtocol.test.tsFile · 0.70

Calls 3

fromMethod · 0.80
toStringMethod · 0.65
joinMethod · 0.45

Tested by

no test coverage detected