@@ -21,16 +21,19 @@ const List<String> expectedMainErrors = <String>[
2121 'dev/bots/test/analyze-snippet-code-test-input/known_broken_documentation.dart:134:14: (top-level declaration) (undefined_identifier)' ,
2222 'dev/bots/test/analyze-snippet-code-test-input/known_broken_documentation.dart:136:21: (top-level declaration) (read_potentially_unassigned_final)' ,
2323 'dev/bots/test/analyze-snippet-code-test-input/known_broken_documentation.dart:147:12: (self-contained program) (unused_import)' ,
24- 'dev/bots/test/analyze-snippet-code-test-input/known_broken_documentation.dart:152:10: (stateful widget) (annotate_overrides)' ,
25- 'dev/bots/test/analyze-snippet-code-test-input/known_broken_documentation.dart:152:10: (stateful widget) (must_call_super)' ,
26- 'dev/bots/test/analyze-snippet-code-test-input/known_broken_documentation.dart:160:7: (top-level declaration) (undefined_identifier)' ,
27- 'dev/bots/test/analyze-snippet-code-test-input/known_broken_documentation.dart:164: Found "```" in code but it did not match RegExp: pattern=^ */// *```dart\$ flags= so something is wrong. Line was: "/// ```"' ,
24+ 'dev/bots/test/analyze-snippet-code-test-input/known_broken_documentation.dart:148:11: (self-contained program) (undefined_class)' ,
25+ 'dev/bots/test/analyze-snippet-code-test-input/known_broken_documentation.dart:148:22: (self-contained program) (undefined_function)' ,
26+ 'dev/bots/test/analyze-snippet-code-test-input/known_broken_documentation.dart:153:10: (stateful widget) (annotate_overrides)' ,
27+ 'dev/bots/test/analyze-snippet-code-test-input/known_broken_documentation.dart:153:10: (stateful widget) (must_call_super)' ,
28+ 'dev/bots/test/analyze-snippet-code-test-input/known_broken_documentation.dart:161:7: (top-level declaration) (undefined_identifier)' ,
29+ 'dev/bots/test/analyze-snippet-code-test-input/known_broken_documentation.dart:165: Found "```" in code but it did not match RegExp: pattern=^ */// *```dart\$ flags= so something is wrong. Line was: "/// ```"' ,
2830 'dev/bots/test/analyze-snippet-code-test-input/short_but_still_broken.dart:9:12: (statement) (invalid_assignment)' ,
2931 'dev/bots/test/analyze-snippet-code-test-input/short_but_still_broken.dart:18:4: Empty ```dart block in snippet code.' ,
3032];
3133
3234const List <String > expectedUiErrors = < String > [
3335 'dev/bots/test/analyze-snippet-code-test-dart-ui/ui.dart:14:7: (top-level declaration) (prefer_typing_uninitialized_variables)' ,
36+ 'dev/bots/test/analyze-snippet-code-test-dart-ui/ui.dart:14:7: (top-level declaration) (inference_failure_on_uninitialized_variable)' ,
3437 'dev/bots/test/analyze-snippet-code-test-dart-ui/ui.dart:14:7: (top-level declaration) (missing_const_final_var_or_type)' ,
3538 'dev/bots/test/analyze-snippet-code-test-dart-ui/ui.dart:16:20: (top-level declaration) (prefer_final_fields)' ,
3639 'dev/bots/test/analyze-snippet-code-test-dart-ui/ui.dart:16:20: (top-level declaration) (unused_field)' ,
@@ -69,7 +72,7 @@ void main() {
6972 final List <String > stderrNoDescriptions = stderrLines.map (removeLintDescriptions).toList ();
7073 expect (stderrNoDescriptions, < String > [
7174 ...expectedMainErrors,
72- 'Found 16 snippet code errors.' ,
75+ 'Found 18 snippet code errors.' ,
7376 'See the documentation at the top of dev/bots/analyze_snippet_code.dart for details.' ,
7477 '' , // because we end with a newline, split gives us an extra blank line
7578 ]);
@@ -93,7 +96,7 @@ void main() {
9396 expect (stderrNoDescriptions, < String > [
9497 ...expectedUiErrors,
9598 ...expectedMainErrors,
96- 'Found 20 snippet code errors.' ,
99+ 'Found 23 snippet code errors.' ,
97100 'See the documentation at the top of dev/bots/analyze_snippet_code.dart for details.' ,
98101 '' , // because we end with a newline, split gives us an extra blank line
99102 ]);
0 commit comments