MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / getStatusAndJson

Function getStatusAndJson

__tests__/ui-server-api.test.ts:86–90  ·  view source on GitHub ↗
(requestPath: string)

Source from the content-addressed store, hash-verified

84}
85
86async function getStatusAndJson(requestPath: string): Promise<{ status: number; body: any }> {
87 const res = await request(requestPath);
88 expect(res.headers['content-type']).toBe('application/json; charset=utf-8');
89 return { status: res.status, body: JSON.parse(res.body) };
90}
91
92/** Find a symbol in the fixture by name, through the API itself. */
93async function idOf(name: string, kind?: string): Promise<string> {

Callers 1

Calls 2

parseMethod · 0.80
requestFunction · 0.70

Tested by

no test coverage detected