Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Commit 504e669

Browse files
Update an analyzer test to support changes to error message text in the latest Dart SDK (#99281)
See flutter/flutter#99248
1 parent e27f714 commit 504e669

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dev/bots/test/analyze_sample_code_test.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ void main() {
2222
final List<String> stdoutLines = process.stdout.toString().split('\n');
2323
final List<String> stderrLines = process.stderr.toString().split('\n');
2424
expect(process.exitCode, isNot(equals(0)));
25-
expect(stderrLines, containsAll(<String>[
25+
expect(stderrLines, containsAll(<Object>[
2626
'In sample starting at dev/bots/test/analyze-sample-code-test-input/known_broken_documentation.dart:125: child: Text(title),',
27-
">>> error: The final variable 'title' can't be read because it is potentially unassigned at this point (read_potentially_unassigned_final)",
27+
matches(RegExp(r">>> error: The final variable 'title' can't be read because (it is|it's) potentially unassigned at this point \(read_potentially_unassigned_final\)")),
2828
'dev/bots/test/analyze-sample-code-test-input/known_broken_documentation.dart:30:9: new Opacity(',
2929
'>>> info: Unnecessary new keyword (unnecessary_new)',
3030
'dev/bots/test/analyze-sample-code-test-input/known_broken_documentation.dart:62:9: new Opacity(',

0 commit comments

Comments
 (0)