MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / report

Function report

javascript/selenium-webdriver/project_bidi_schema.mjs:475–479  ·  view source on GitHub ↗
(where, node)

Source from the content-addressed store, hash-verified

473 ? node.union.some(hasEmptyInlineRecord)
474 : false
475 const report = (where, node) => {
476 for (const r of refsIn(node)) if (!has(r)) errors.push(`${where}: unresolved type ${r}`)
477 if (hasUnknown(node)) errors.push(`${where}: projected to an unknown primitive (unhandled CDDL type)`)
478 if (hasEmptyInlineRecord(node)) errors.push(`${where}: projected an empty inline record (dropped type reference)`)
479 }
480
481 for (const c of [...schema.commands, ...schema.events]) {
482 report(c.method, c.params)

Callers 1

checkSchemaFunction · 0.85

Calls 4

refsInFunction · 0.85
hasFunction · 0.85
hasUnknownFunction · 0.85
hasEmptyInlineRecordFunction · 0.85

Tested by

no test coverage detected