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

Function resolveInput

javascript/selenium-webdriver/project_bidi_schema.mjs:1042–1047  ·  view source on GitHub ↗
(p)

Source from the content-addressed store, hash-verified

1040 // inputs are execroot-relative and already carry that prefix — strip it so the
1041 // path is not doubled. Mirrors resolveInputPath() in generate_bidi.mjs.
1042 const resolveInput = (p) => {
1043 if (!process.env.BAZEL_BINDIR) return resolve(p)
1044 const prefix = process.env.BAZEL_BINDIR.replaceAll('\\', '/') + '/'
1045 const norm = p.replaceAll('\\', '/')
1046 return resolve(norm.startsWith(prefix) ? norm.slice(prefix.length) : norm)
1047 }
1048
1049 const { values: args } = parseArgs({
1050 options: {

Callers 1

mainFunction · 0.70

Calls 1

resolveFunction · 0.50

Tested by

no test coverage detected