MCPcopy Index your code
hub / github.com/anomalyco/opencode / provided

Function provided

packages/core/test/models.test.ts:112–113  ·  view source on GitHub ↗
(state: Ref.Ref<MockState>, eff: Effect.Effect<A, E, ModelsDev.Service>)

Source from the content-addressed store, hash-verified

110const writeCache = (data: object, mtimeMs?: number) => writeCacheText(JSON.stringify(data), mtimeMs)
111
112const provided = <A, E>(state: Ref.Ref<MockState>, eff: Effect.Effect<A, E, ModelsDev.Service>) =>
113 eff.pipe(Effect.provide(buildLayer(state)))
114
115beforeEach(async () => {
116 await rm(cacheFile, { force: true })

Callers 1

models.test.tsFile · 0.85

Calls 1

buildLayerFunction · 0.85

Tested by

no test coverage detected