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

Function group

javascript/selenium-webdriver/project_bidi_schema_test.mjs:28–28  ·  view source on GitHub ↗
(name, props)

Source from the content-addressed store, hash-verified

26const ref = (v) => ({ Type: 'group', Value: v, Unwrapped: false })
27const field = (name, type, occ = { n: 1, m: 1 }) => ({ Name: name, Occurrence: occ, Type: type, Comments: [] })
28const group = (name, props) => ({ Type: 'group', Name: name, Properties: props, IsChoiceAddition: false, Comments: [] })
29const leaf = (cddlName, method, paramsRef) =>
30 group(cddlName, [field('method', [lit(method)]), field('params', [ref(paramsRef)])])
31

Callers 3

leafFunction · 0.85
envelopeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected