MCPcopy Index your code
hub / github.com/pmxt-dev/pmxt / collectPythonAll

Function collectPythonAll

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

Source from the content-addressed store, hash-verified

47}
48
49function collectPythonAll(source) {
50 const allBlock = source.match(/__all__ = \[([\s\S]*?)\]/);
51 if (!allBlock) return new Set();
52 return new Set([...allBlock[1].matchAll(/"([^"]+)"/g)].map((match) => match[1]));
53}
54
55function getOperation(spec, operationId) {
56 for (const pathItem of Object.values(spec.paths || {})) {

Callers 1

Calls 1

matchMethod · 0.45

Tested by

no test coverage detected