MCPcopy Create free account
hub / github.com/scriptscat/scriptcat / createTestContext

Function createTestContext

src/app/service/content/create_context.test.ts:25–33  ·  view source on GitHub ↗
(grants: string[], metadata: Record<string, string[]> = {})

Source from the content-addressed store, hash-verified

23 }) as unknown as TScriptInfo;
24
25const createTestContext = (grants: string[], metadata: Record<string, string[]> = {}) =>
26 createContext(
27 createScriptInfo(metadata),
28 { script: { name: "create-context-test" }, scriptMetaStr: "" },
29 "vitest",
30 undefined as any,
31 undefined as any,
32 new Set(grants)
33 );
34
35describe.concurrent("shouldFnBind", () => {
36 it.concurrent("不处理非原生函数", () => {

Callers 1

Calls 2

createContextFunction · 0.90
createScriptInfoFunction · 0.70

Tested by

no test coverage detected