MCPcopy Create free account
hub / github.com/alibaba/open-code-review / fakeProbe

Function fakeProbe

scripts/github-actions/check-plugin-contract.test.js:193–195  ·  view source on GitHub ↗
(map)

Source from the content-addressed store, hash-verified

191// --- link validation -------------------------------------------------------
192
193function fakeProbe(map) {
194 return (p) => (Object.prototype.hasOwnProperty.call(map, p) ? map[p] : null);
195}
196
197function testMissingPathIsBlockingError() {
198 const { errors, warnings } = validateRepoLinks(

Callers 3

testExistingPathsPassFunction · 0.85

Calls 1

callMethod · 0.80

Tested by

no test coverage detected