MCPcopy Create free account
hub / github.com/ChromeDevTools/devtools-frontend / getTestFlags

Function getTestFlags

scripts/npm_test.js:151–157  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

149}
150
151function getTestFlags() {
152 const flagValues = Object.keys(Flags).map(key => Flags[key]);
153 return process.argv.slice(2).filter(arg => {
154 const flagName = includes(arg, '=') ? arg.slice(0, arg.indexOf('=')) : arg;
155 return (!includes(flagValues, flagName) && !includes(arg, 'inspector') && !includes(arg, 'http/tests/devtools'));
156 });
157}
158
159function getInspectorTests() {
160 const specificTests = process.argv.filter(

Callers 1

runTestsFunction · 0.85

Calls 6

includesFunction · 0.90
indexOfMethod · 0.80
sliceMethod · 0.65
mapMethod · 0.45
keysMethod · 0.45
filterMethod · 0.45

Tested by

no test coverage detected