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

Function group

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

Source from the content-addressed store, hash-verified

33const ref = (v) => ({ Type: 'group', Value: v, Unwrapped: false })
34const field = (name, type, occ = { n: 1, m: 1 }) => ({ Name: name, Occurrence: occ, Type: type, Comments: [] })
35const group = (name, props) => ({ Type: 'group', Name: name, Properties: props, IsChoiceAddition: false, Comments: [] })
36const leaf = (cddlName, method, paramsRef) =>
37 group(cddlName, [field('method', [lit(method)]), field('params', [ref(paramsRef)])])
38

Callers 4

leafFunction · 0.85
envelopeFunction · 0.85
recFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected