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

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

Issue 2347133004: Allow input summaries to be specified when running analyzer_cli in non-build mode. (Closed)
Patch Set: Created 4 years, 3 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 50ee98c3103b2f75f6be4e1ecda4fed0e7413165..d34d7afdd8cfff71b10c7d6a5acd46213d0efe59 100644
--- a/pkg/analyzer_cli/test/options_test.dart
+++ b/pkg/analyzer_cli/test/options_test.dart
@@ -286,6 +286,16 @@ class CommandLineOptionsTest extends AbstractStatusTest {
options.buildSummaryInputs, ['/path/to/aaa.sum', '/path/to/bbb.sum']);
}
+ test_buildSummaryInputs_commaSeparated_normalMode() {
+ _parse([
+ '--build-summary-input=/path/to/aaa.sum,/path/to/bbb.sum',
+ '/path/to/p/lib/foo.dart'
+ ]);
+ expect(options.buildMode, isFalse);
+ expect(
+ options.buildSummaryInputs, ['/path/to/aaa.sum', '/path/to/bbb.sum']);
+ }
+
test_buildSummaryInputs_separateFlags() {
_parse([
'--build-mode',
@@ -298,6 +308,17 @@ class CommandLineOptionsTest extends AbstractStatusTest {
options.buildSummaryInputs, ['/path/to/aaa.sum', '/path/to/bbb.sum']);
}
+ test_buildSummaryInputs_separateFlags_normalMode() {
+ _parse([
+ '--build-summary-input=/path/to/aaa.sum',
+ '--build-summary-input=/path/to/bbb.sum',
+ 'package:p/foo.dart|/path/to/p/lib/foo.dart'
+ ]);
+ expect(options.buildMode, isFalse);
+ expect(
+ options.buildSummaryInputs, ['/path/to/aaa.sum', '/path/to/bbb.sum']);
+ }
+
test_buildSummaryOnly() {
_parse([
'--build-mode',
« pkg/analyzer_cli/lib/src/driver.dart ('K') | « pkg/analyzer_cli/lib/src/driver.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698