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

Function main

scripts/check_experiments.js:269–305  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

267}
268
269function main() {
270 const mainImplPath = path.resolve(
271 import.meta.dirname,
272 '..',
273 'front_end',
274 'entrypoints',
275 'main',
276 'MainImpl.ts',
277 );
278 const mainImplFile = fs.readFileSync(mainImplPath, 'utf-8');
279
280 const userMetricsPath = path.resolve(
281 import.meta.dirname,
282 '..',
283 'front_end',
284 'core',
285 'host',
286 'UserMetrics.ts',
287 );
288 const userMetricsFile = fs.readFileSync(userMetricsPath, 'utf-8');
289
290 const experimentNamesPath = path.resolve(
291 import.meta.dirname,
292 '..',
293 'front_end',
294 'core',
295 'root',
296 'ExperimentNames.ts',
297 );
298 const experimentNamesFile = fs.readFileSync(experimentNamesPath, 'utf-8');
299 const experimentNames = getExperimentNameEnum(experimentNamesFile);
300
301 compareExperimentLists(
302 getMainImplExperimentList(mainImplFile, experimentNames),
303 getUserMetricExperimentList(userMetricsFile),
304 );
305}
306
307main();

Callers 1

Calls 5

getExperimentNameEnumFunction · 0.85
compareExperimentListsFunction · 0.85
resolveMethod · 0.65

Tested by

no test coverage detected