'#3 main \\([^)]+flutter${dividerRegExp}test${dividerRegExp}foundation${dividerRegExp}error_reporting_test\\.dart:[0-9]+:[0-9]+\\)\n'
'#3 main \\([^)]+flutter/test/foundation/error_reporting_test\\.dart:[0-9]+:[0-9]+\\)\n'
'(.+\n)+'// TODO(ianh): when fixing #4021, also filter out frames from the test infrastructure below the first call to our main()
'(.+\n)+'// TODO(ianh): when fixing #4021, also filter out frames from the test infrastructure below the first call to our main()
'\\(elided [0-9]+ frames from package dart:async\\)\n'
'\\(elided [0-9]+ frames from package dart:async\\)\n'
'\n'
'\n'
...
@@ -111,7 +107,7 @@ Future<Null> main() async {
...
@@ -111,7 +107,7 @@ Future<Null> main() async {
'word word word word word word word word word word word word word word word word word word word word '
'word word word word word word word word word word word word word word word word word word word word '
'word word word word word word word word word word word word word word word word word word word word '
'word word word word word word word word word word word word word word word word word word word word '
'word word word word word word word word word word word word word word word word word word word word\n'
'word word word word word word word word word word word word word word word word word word word word\n'
'\'[^\']+flutter${dividerRegExp}test${dividerRegExp}foundation${dividerRegExp}error_reporting_test\\.dart\': Failed assertion: line [0-9]+ pos [0-9]+: \'false\'\n'
'\'[^\']+flutter/test/foundation/error_reporting_test\\.dart\': Failed assertion: line [0-9]+ pos [0-9]+: \'false\'\n'
'\n'
'\n'
'Either the assertion indicates an error in the framework itself, or we should provide substantially '
'Either the assertion indicates an error in the framework itself, or we should provide substantially '
'more information in this error message to help you determine and fix the underlying cause\\.\n'
'more information in this error message to help you determine and fix the underlying cause\\.\n'
...
@@ -151,7 +147,7 @@ Future<Null> main() async {
...
@@ -151,7 +147,7 @@ Future<Null> main() async {
expect(console.join('\n'),matches(
expect(console.join('\n'),matches(
'^══╡ EXCEPTION CAUGHT BY ERROR HANDLING TEST ╞═══════════════════════════════════════════════════════\n'
'^══╡ EXCEPTION CAUGHT BY ERROR HANDLING TEST ╞═══════════════════════════════════════════════════════\n'
'The following assertion was thrown testing the error handling logic:\n'
'The following assertion was thrown testing the error handling logic:\n'
'\'[^\']+flutter${dividerRegExp}test${dividerRegExp}foundation${dividerRegExp}error_reporting_test\\.dart\': Failed assertion: line [0-9]+ pos [0-9]+: \'false\': is not true\\.\n'
'\'[^\']+flutter/test/foundation/error_reporting_test\\.dart\': Failed assertion: line [0-9]+ pos [0-9]+: \'false\': is not true\\.\n'
'\n'
'\n'
'Either the assertion indicates an error in the framework itself, or we should provide substantially '
'Either the assertion indicates an error in the framework itself, or we should provide substantially '
'more information in this error message to help you determine and fix the underlying cause\\.\n'
'more information in this error message to help you determine and fix the underlying cause\\.\n'
expect(console.join('\n'),matches('Another exception was thrown: \'[^\']+flutter${dividerRegExp}test${dividerRegExp}foundation${dividerRegExp}error_reporting_test\\.dart\': Failed assertion: line [0-9]+ pos [0-9]+: \'false\': is not true\\.'));
expect(console.join('\n'),matches('Another exception was thrown: \'[^\']+flutter/test/foundation/error_reporting_test\\.dart\': Failed assertion: line [0-9]+ pos [0-9]+: \'false\': is not true\\.'));
@@ -19,7 +19,7 @@ class AnalyzeCommand extends FlutterCommand {
...
@@ -19,7 +19,7 @@ class AnalyzeCommand extends FlutterCommand {
argParser.addFlag('current-package',help:'Include the lib/main.dart file from the current directory, if any.',defaultsTo:true);
argParser.addFlag('current-package',help:'Include the lib/main.dart file from the current directory, if any.',defaultsTo:true);
argParser.addFlag('dartdocs',help:'List every public member that is lacking documentation (only works with --flutter-repo and without --watch).',defaultsTo:false,hide:!verboseHelp);
argParser.addFlag('dartdocs',help:'List every public member that is lacking documentation (only works with --flutter-repo and without --watch).',defaultsTo:false,hide:!verboseHelp);
argParser.addFlag('watch',help:'Run analysis continuously, watching the filesystem for changes.',negatable:false);
argParser.addFlag('watch',help:'Run analysis continuously, watching the filesystem for changes.',negatable:false);
argParser.addOption('write',valueHelp:'file',help:'Also output the results to a file. This is useful with --watch if you want a file to always contain the latest results.');
argParser.addOption('write',valueHelp:'file',help:'Also output the results to a file. This is useful with --watch if you want a file to always contain the latest results.');
argParser.addOption('dart-sdk',valueHelp:'path-to-sdk',help:'The path to the Dart SDK.',hide:!verboseHelp);
argParser.addOption('dart-sdk',valueHelp:'path-to-sdk',help:'The path to the Dart SDK.',hide:!verboseHelp);
argParser.addFlag('report-licensed-packages',help:'Whether to report the names of all the packages that are included in the application\'s LICENSE file.',defaultsTo:false);