MCPcopy Create free account
hub / github.com/pmxt-dev/pmxt / snapshotGeneratedFiles

Function snapshotGeneratedFiles

core/test/unit/openapi-code-samples.test.js:14–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12const generatedPaths = [openApiPath, sidecarOpenApiPath, methodVerbsPath];
13
14function snapshotGeneratedFiles() {
15 return new Map(
16 generatedPaths.map((filePath) => [filePath, fs.readFileSync(filePath, 'utf8')]),
17 );
18}
19
20function restoreGeneratedFiles(snapshot) {
21 for (const [filePath, contents] of snapshot) {

Callers 1

withGeneratedSpecFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected