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

Unified Diff: pkg/analyzer_cli/test/options_test.dart

Issue 2796953002: Add --build-summary-only-unlinked flag, which makes the output summary be an unlinked summary inste… (Closed)
Patch Set: Created 3 years, 8 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
Index: pkg/analyzer_cli/test/options_test.dart
diff --git a/pkg/analyzer_cli/test/options_test.dart b/pkg/analyzer_cli/test/options_test.dart
index d90609541a8a266ef35c89bed2f976719936b81a..fe340330091e38f1c07e4693923f07d7cff56c92 100644
--- a/pkg/analyzer_cli/test/options_test.dart
+++ b/pkg/analyzer_cli/test/options_test.dart
@@ -22,6 +22,8 @@ main() {
expect(options.buildAnalysisOutput, isNull);
expect(options.buildSummaryInputs, isEmpty);
expect(options.buildSummaryOnly, isFalse);
+ expect(options.buildSummaryOnlyDiet, isFalse);
+ expect(options.buildSummaryOnlyUnlinked, isFalse);
expect(options.buildSummaryOutput, isNull);
expect(options.buildSummaryOutputSemantic, isNull);
expect(options.buildSuppressExitCode, isFalse);
@@ -306,6 +308,32 @@ class CommandLineOptionsTest extends AbstractStatusTest {
expect(options.buildSummaryOnly, isTrue);
}
+ test_buildSummaryOnlyDiet() {
+ _parse([
+ '--build-mode',
+ '--build-summary-output=/path/to/aaa.sum',
+ '--build-summary-only',
+ '--build-summary-only-diet',
+ 'package:p/foo.dart|/path/to/p/lib/foo.dart'
+ ]);
+ expect(options.buildMode, isTrue);
+ expect(options.buildSummaryOnly, isTrue);
+ expect(options.buildSummaryOnlyDiet, isTrue);
+ }
+
+ test_buildSummaryOnlyUnlinked() {
+ _parse([
+ '--build-mode',
+ '--build-summary-output=/path/to/aaa.sum',
+ '--build-summary-only',
+ '--build-summary-only-unlinked',
+ 'package:p/foo.dart|/path/to/p/lib/foo.dart'
+ ]);
+ expect(options.buildMode, isTrue);
+ expect(options.buildSummaryOnly, isTrue);
+ expect(options.buildSummaryOnlyUnlinked, isTrue);
+ }
+
test_buildSummaryOutput() {
_parse([
'--build-mode',
« pkg/analyzer_cli/lib/src/build_mode.dart ('K') | « pkg/analyzer_cli/test/driver_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698