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

Function report

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

Source from the content-addressed store, hash-verified

763 ? node.union.some(hasEmptyInlineRecord)
764 : false
765 const report = (where, node) => {
766 for (const r of refsInType(node)) if (!has(r)) errors.push(`${where}: unresolved type ${r}`)
767 if (hasUnknown(node)) errors.push(`${where}: projected to an unknown primitive (unhandled CDDL type)`)
768 if (hasEmptyInlineRecord(node)) errors.push(`${where}: projected an empty inline record (dropped type reference)`)
769 }
770
771 for (const c of [...schema.commands, ...schema.events]) {
772 report(c.method, c.params)

Callers 1

checkSchemaFunction · 0.85

Calls 4

refsInTypeFunction · 0.85
hasFunction · 0.85
hasUnknownFunction · 0.85
hasEmptyInlineRecordFunction · 0.85

Tested by

no test coverage detected