MCPcopy
hub / github.com/eggjs/egg / getFilepath

Function getFilepath

test/utils.ts:130–132  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

128}
129
130export function getFilepath(name: string) {
131 return path.join(fixtures, name);
132}
133
134export function getJSON(name: string) {
135 return JSON.parse(readFileSync(getFilepath(name), 'utf-8'));

Callers 15

egg.test.tsFile · 0.85
getJSONFunction · 0.85
agent.test.tsFile · 0.85
master.test.tsFile · 0.85
cookies.test.tsFile · 0.85
view.test.tsFile · 0.85
logger.test.tsFile · 0.85

Calls

no outgoing calls

Tested by 1

getLogContentFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…