MCPcopy
hub / github.com/Kilo-Org/kilocode / instance

Function instance

packages/opencode/test/lib/effect.ts:79–91  ·  view source on GitHub ↗
(
    name: string,
    value: Body<A, E2, R | TestInstance | Scope.Scope>,
    options?: InstanceOptions | number | TestOptions,
    opts?: number | TestOptions,
  )

Source from the content-addressed store, hash-verified

77 test.skip(name, () => run(value, liveLayer), opts)
78
79 const instance = <A, E2>(
80 name: string,
81 value: Body<A, E2, R | TestInstance | Scope.Scope>,
82 options?: InstanceOptions | number | TestOptions,
83 opts?: number | TestOptions,
84 ) => {
85 const args = instanceArgs(options, opts)
86 return test(
87 name,
88 () => run(body(value).pipe(withTmpdirInstance(args.instanceOptions)), liveLayer),
89 args.testOptions,
90 )
91 }
92
93 instance.only = <A, E2>(
94 name: string,

Callers

nothing calls this directly

Calls 4

withTmpdirInstanceFunction · 0.90
instanceArgsFunction · 0.85
runFunction · 0.70
bodyFunction · 0.70

Tested by

no test coverage detected