MCPcopy
hub / github.com/anomalyco/opencode / configuredLayer

Function configuredLayer

packages/opencode/test/tool/truncation.test.ts:21–24  ·  view source on GitHub ↗
(cfg: ConfigV1.Info)

Source from the content-addressed store, hash-verified

19const it = testEffect(LayerNode.compile(LayerNode.group([Truncate.node, FSUtil.node, filesystem])))
20
21const configuredLayer = (cfg: ConfigV1.Info) =>
22 LayerNode.compile(LayerNode.group([Truncate.node, FSUtil.node, filesystem, Config.node]), [
23 [Config.node, TestConfig.layer({ get: () => Effect.succeed(cfg) })],
24 ])
25const configuredIt = (cfg: ConfigV1.Info) => testEffect(configuredLayer(cfg))
26
27describe("Truncate", () => {

Callers 1

configuredItFunction · 0.85

Calls 1

layerMethod · 0.45

Tested by

no test coverage detected