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

Function resolveInput

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

Source from the content-addressed store, hash-verified

874 // inputs are execroot-relative and already carry that prefix — strip it so the
875 // path is not doubled. Mirrors resolveInputPath() in generate_bidi.mjs.
876 const resolveInput = (p) => {
877 if (!process.env.BAZEL_BINDIR) return resolve(p)
878 const prefix = process.env.BAZEL_BINDIR.replaceAll('\\', '/') + '/'
879 const norm = p.replaceAll('\\', '/')
880 return resolve(norm.startsWith(prefix) ? norm.slice(prefix.length) : norm)
881 }
882
883 const { values: args } = parseArgs({
884 options: {

Callers 1

mainFunction · 0.70

Calls 1

resolveFunction · 0.85

Tested by

no test coverage detected