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

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

Issue 1960263003: Allow zero analyzer args in build mode. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 7 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_cli/lib/src/options.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 620c047042f65e7f982aec22264bd9e70eed7d93..29bde19673e48370cb1ff987034fca81caf8baa4 100644
--- a/pkg/analyzer_cli/test/options_test.dart
+++ b/pkg/analyzer_cli/test/options_test.dart
@@ -257,6 +257,12 @@ class CommandLineOptionsTest extends AbstractStatusTest {
expect(options.buildMode, isTrue);
}
+ test_buildMode_allowsEmptyFileList() {
+ _parse(['--build-mode']);
+ expect(options.buildMode, isTrue);
+ expect(options.sourceFiles, isEmpty);
+ }
+
test_buildSummaryFallback() {
_parse([
'--build-mode',
« no previous file with comments | « pkg/analyzer_cli/lib/src/options.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698