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

Function report

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

Source from the content-addressed store, hash-verified

912 const hasMisplacedBound = (node) =>
913 !!node && ((BOUND_KEYS.some((k) => k in node) && !isNumeric(node)) || nestedTypes(node).some(hasMisplacedBound))
914 const report = (where, node) => {
915 for (const r of refsInType(node)) if (!has(r)) errors.push(`${where}: unresolved type ${r}`)
916 if (hasUnknown(node)) errors.push(`${where}: projected to an unknown primitive (unhandled CDDL type)`)
917 if (hasEmptyInlineRecord(node)) errors.push(`${where}: projected an empty inline record (dropped type reference)`)
918 if (hasMisplacedBound(node)) errors.push(`${where}: carries a numeric bound on a non-numeric type`)
919 }
920
921 for (const c of [...schema.commands, ...schema.events]) {
922 report(c.method, c.params)

Callers 1

checkSchemaFunction · 0.85

Calls 5

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

Tested by

no test coverage detected