Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(140)

Unified Diff: pkg/analyzer_experimental/bin/coverage.dart

Issue 45573002: Rename analyzer_experimental to analyzer. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Tweaks before publishing. Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/analyzer_experimental/bin/analyzer.dart ('k') | pkg/analyzer_experimental/bin/formatter.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer_experimental/bin/coverage.dart
diff --git a/pkg/analyzer_experimental/bin/coverage.dart b/pkg/analyzer_experimental/bin/coverage.dart
deleted file mode 100644
index a4bb48293209ba44978986ef8dbd49c2c2bd5275..0000000000000000000000000000000000000000
--- a/pkg/analyzer_experimental/bin/coverage.dart
+++ /dev/null
@@ -1,89 +0,0 @@
-// Copyright (c) 2013, 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 file.
-
-library runtime.coverage;
-
-import 'dart:io';
-
-import 'package:args/args.dart';
-
-import 'package:analyzer_experimental/src/services/runtime/log.dart' as log;
-import 'package:analyzer_experimental/src/services/runtime/coverage/coverage_impl.dart';
-
-
-main(args) {
- ArgResults options;
- try {
- options = _argParser.parse(args);
- } on FormatException catch (e) {
- print(e.message);
- print('Run "coverage --help" to see available options.');
- exit(ERROR);
- }
-
- if (options['help']) {
- printUsage();
- return;
- }
-
- // No script to run.
- if (options.rest.isEmpty) {
- printUsage('<No script to run specified>');
- exit(ERROR);
- }
-
- // More than one script specified.
- if (options.rest.length != 1) {
- print('<Only one script should be specified>');
- exit(ERROR);
- }
-
- var scriptPath = options.rest[0];
-
- // Validate that script file exists.
- if (!new File(scriptPath).existsSync()) {
- print('<File "$scriptPath" does not exist>');
- exit(ERROR);
- }
-
- // Prepare output file path.
- var outPath = options['out'];
- if (outPath == null) {
- printUsage('No --out specified.');
- exit(ERROR);
- }
-
- // Configure logigng.
- log.everything();
- log.toConsole();
-
- // Run script.
- runServerApplication(scriptPath, outPath);
-}
-
-
-final ArgParser _argParser = new ArgParser()
- ..addFlag('help', negatable: false, help: 'Print this usage information.')
- ..addOption(
- 'level',
- help: 'The level of the coverage.',
- allowed: ['method', 'block', 'statement'],
- defaultsTo: 'statement')
- ..addOption('out', help: 'The output file with statistics.')
- ..addOption(
- 'port',
- help: 'The port to run server on, if 0 select any.',
- defaultsTo: '0');
-
-
-printUsage([var description = 'Code coverage tool for Dart.']) {
- var usage = _argParser.getUsage();
- print('$description\n');
- print('Usage: coverage [options] <script>\n');
- print('$usage\n');
-}
-
-
-/// General error code.
-const ERROR = 1;
« no previous file with comments | « pkg/analyzer_experimental/bin/analyzer.dart ('k') | pkg/analyzer_experimental/bin/formatter.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698