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

Function readFileString

packages/effect/test/ConfigProvider.test.ts:962–967  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

960 }
961 const Fs = FileSystem.layerNoop({
962 readFileString(path) {
963 if (path in files) {
964 return Effect.succeed(files[path])
965 }
966 return Effect.fail(notFound("readFileString"))
967 },
968 readDirectory(_path) {
969 return Effect.fail(notFound("readDirectory"))
970 }

Callers

nothing calls this directly

Calls 3

notFoundFunction · 0.70
succeedMethod · 0.45
failMethod · 0.45

Tested by

no test coverage detected