@@ -20,13 +20,10 @@ const List<String> expectedMainErrors = <String>[
2020 'dev/bots/test/analyze-snippet-code-test-input/known_broken_documentation.dart:134:14: (top-level declaration) (undefined_identifier)' ,
2121 'dev/bots/test/analyze-snippet-code-test-input/known_broken_documentation.dart:136:21: (top-level declaration) (read_potentially_unassigned_final)' ,
2222 'dev/bots/test/analyze-snippet-code-test-input/known_broken_documentation.dart:147:12: (self-contained program) (unused_import)' ,
23- 'dev/bots/test/analyze-snippet-code-test-input/known_broken_documentation.dart:148:11: (self-contained program) (undefined_class)' ,
24- 'dev/bots/test/analyze-snippet-code-test-input/known_broken_documentation.dart:148:22: (self-contained program) (avoid_dynamic_calls)' ,
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: "/// ```"' ,
23+ 'dev/bots/test/analyze-snippet-code-test-input/known_broken_documentation.dart:152:10: (stateful widget) (annotate_overrides)' ,
24+ 'dev/bots/test/analyze-snippet-code-test-input/known_broken_documentation.dart:152:10: (stateful widget) (must_call_super)' ,
25+ 'dev/bots/test/analyze-snippet-code-test-input/known_broken_documentation.dart:160:7: (top-level declaration) (undefined_identifier)' ,
26+ '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: "/// ```"' ,
3027 'dev/bots/test/analyze-snippet-code-test-input/short_but_still_broken.dart:9:12: (statement) (invalid_assignment)' ,
3128 'dev/bots/test/analyze-snippet-code-test-input/short_but_still_broken.dart:18:4: Empty ```dart block in snippet code.' ,
3229];
@@ -71,7 +68,7 @@ void main() {
7168 final List <String > stderrNoDescriptions = stderrLines.map (removeLintDescriptions).toList ();
7269 expect (stderrNoDescriptions, < String > [
7370 ...expectedMainErrors,
74- 'Found 18 snippet code errors.' ,
71+ 'Found 15 snippet code errors.' ,
7572 'See the documentation at the top of dev/bots/analyze_snippet_code.dart for details.' ,
7673 '' , // because we end with a newline, split gives us an extra blank line
7774 ]);
@@ -95,7 +92,7 @@ void main() {
9592 expect (stderrNoDescriptions, < String > [
9693 ...expectedUiErrors,
9794 ...expectedMainErrors,
98- 'Found 22 snippet code errors.' ,
95+ 'Found 19 snippet code errors.' ,
9996 'See the documentation at the top of dev/bots/analyze_snippet_code.dart for details.' ,
10097 '' , // because we end with a newline, split gives us an extra blank line
10198 ]);
0 commit comments