blob: 5ea2bd06b31f9cce38e075d9b58609f81be869f8 [file] [log] [blame]
// Copyright (c) 2020, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE.md file.
// @dart = 2.9
import 'vm_service_coverage.dart' as helper;
main(List<String> args) async {
CoverageHelper coverageHelper = new CoverageHelper();
List<String> allArgs = <String>[];
allArgs.addAll([
"--disable-dart-dev",
"--enable-asserts",
"--pause_isolates_on_exit",
]);
allArgs.addAll(args);
coverageHelper.start(allArgs);
}
class CoverageHelper extends helper.CoverageHelper {
CoverageHelper() : super(printHits: false);
bool includeCoverageFor(Uri uri) {
if (uri.scheme != "package") return false;
if (uri.path.startsWith("front_end/src/fasta/kernel/constant_")) {
return true;
}
return false;
}
}