function generateCoverage(url, ranges) {
  const functions = ranges.map(range => {
    return {
      ranges: [
        {
          startOffset: range[0],
          endOffset: range[1],
          count: range[2] ? 1 : 0,
        },
      ],
    };
  });

  return {scriptId: getScriptId(url), url, functions};
}
@param {string} url
@param {Array<[number, number, number]>} ranges
@return {Crdp.Profiler.ScriptCoverage}