@@ -21,16 +21,19 @@ const List<String> expectedMainErrors = <String>[
21
21
'dev/bots/test/analyze-snippet-code-test-input/known_broken_documentation.dart:134:14: (top-level declaration) (undefined_identifier)' ,
22
22
'dev/bots/test/analyze-snippet-code-test-input/known_broken_documentation.dart:136:21: (top-level declaration) (read_potentially_unassigned_final)' ,
23
23
'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: "/// ```"' ,
28
30
'dev/bots/test/analyze-snippet-code-test-input/short_but_still_broken.dart:9:12: (statement) (invalid_assignment)' ,
29
31
'dev/bots/test/analyze-snippet-code-test-input/short_but_still_broken.dart:18:4: Empty ```dart block in snippet code.' ,
30
32
];
31
33
32
34
const List <String > expectedUiErrors = < String > [
33
35
'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)' ,
34
37
'dev/bots/test/analyze-snippet-code-test-dart-ui/ui.dart:14:7: (top-level declaration) (missing_const_final_var_or_type)' ,
35
38
'dev/bots/test/analyze-snippet-code-test-dart-ui/ui.dart:16:20: (top-level declaration) (prefer_final_fields)' ,
36
39
'dev/bots/test/analyze-snippet-code-test-dart-ui/ui.dart:16:20: (top-level declaration) (unused_field)' ,
@@ -69,7 +72,7 @@ void main() {
69
72
final List <String > stderrNoDescriptions = stderrLines.map (removeLintDescriptions).toList ();
70
73
expect (stderrNoDescriptions, < String > [
71
74
...expectedMainErrors,
72
- 'Found 16 snippet code errors.' ,
75
+ 'Found 18 snippet code errors.' ,
73
76
'See the documentation at the top of dev/bots/analyze_snippet_code.dart for details.' ,
74
77
'' , // because we end with a newline, split gives us an extra blank line
75
78
]);
@@ -93,7 +96,7 @@ void main() {
93
96
expect (stderrNoDescriptions, < String > [
94
97
...expectedUiErrors,
95
98
...expectedMainErrors,
96
- 'Found 20 snippet code errors.' ,
99
+ 'Found 23 snippet code errors.' ,
97
100
'See the documentation at the top of dev/bots/analyze_snippet_code.dart for details.' ,
98
101
'' , // because we end with a newline, split gives us an extra blank line
99
102
]);
0 commit comments