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

Function fakeProbe

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

Source from the content-addressed store, hash-verified

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

Callers 3

testExistingPathsPassFunction · 0.85

Calls 1

callMethod · 0.80

Tested by

no test coverage detected