function generateScriptWithCoverage(url, ranges) {
  const length = Math.max(...ranges.map(r => r[1]));
  const script = createScript({url, scriptId: getScriptId(url), length});
  const coverage = generateCoverage(url, ranges);
  return {script, coverage};
}
@param {string} url
@param {Array<[number, number, number]>} ranges
@return {{script: LH.Artifacts.Script, coverage: Crdp.Profiler.ScriptCoverage}}