MCPcopy Create free account
hub / github.com/Snowflyt/tinyeffect / processFile1

Function processFile1

test/README.example.proof.ts:1015–1022  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

1013 });
1014
1015 const processFile1 = (path: string) =>
1016 effected(function* () {
1017 const content = yield* readFile(path);
1018 return yield* parseContent(content);
1019 }).catchAll(function* (error, message) {
1020 yield* logger.error(`[${error}Error] Error processing ${path}:`, message);
1021 return null;
1022 });
1023
1024 expect(processFile1).to(
1025 equal<

Callers

nothing calls this directly

Calls 3

effectedFunction · 0.90
parseContentFunction · 0.85
catchAllMethod · 0.65

Tested by

no test coverage detected