stopJSCoverage method

Future<List<CoverageEntry>> stopJSCoverage()

Returns a Future that resolves to the array of coverage reports for all scripts

  • url: Script URL
  • text: Script content
  • ranges: Script ranges that were executed. Ranges are sorted and non-overlapping.
    • start: A start offset in text, inclusive
    • end: An end offset in text, exclusive

NOTE JavaScript Coverage doesn't include anonymous scripts by default. However, scripts with sourceURLs are reported.

Implementation

Future<List<CoverageEntry>> stopJSCoverage() {
  return _jsCoverage.stop();
}