This repository was archived by the owner on Feb 24, 2025. It is now read-only.
File tree 2 files changed +12
-9
lines changed
2 files changed +12
-9
lines changed Original file line number Diff line number Diff line change 1
1
tags :
2
- crashtest :
3
- skip : ' Only run crashtest tests manually with `dart test -P crashtest `'
2
+ crash_test :
3
+ skip : ' Only run crash_test tests manually with `dart test -P crash_test `'
4
4
presets :
5
- crashtest :
6
- skip : false # Don't skip when running in -P crashtest
5
+ crash_test :
6
+ skip : false # Don't skip when running in -P crash_test
Original file line number Diff line number Diff line change 1
- // Copyright (c) 2017 , the Dart project authors. Please see the AUTHORS file
1
+ // Copyright (c) 2022 , the Dart project authors. Please see the AUTHORS file
2
2
// for details. All rights reserved. Use of this source code is governed by a
3
3
// BSD-style license that can be found in the LICENSE file.
4
4
@@ -79,15 +79,18 @@ void main() async {
79
79
try {
80
80
await TarReader .forEach (Stream .value (archive), (entry) async {
81
81
if (entry.name.endsWith ('.md' )) {
82
- late String str ;
82
+ late String contents ;
83
83
try {
84
84
final bytes = await http.ByteStream (entry.contents).toBytes ();
85
- str = utf8.decode (bytes);
85
+ contents = utf8.decode (bytes);
86
86
} on FormatException {
87
87
return ; // ignore invalid utf8
88
88
}
89
89
try {
90
- markdownToHtml (str, extensionSet: ExtensionSet .gitHubWeb);
90
+ markdownToHtml (
91
+ contents,
92
+ extensionSet: ExtensionSet .gitHubWeb,
93
+ );
91
94
} catch (err, st) {
92
95
errors
93
96
.add ('package:$package /${entry .name }, throws: $err \n $st ' );
@@ -117,6 +120,6 @@ void main() async {
117
120
}
118
121
},
119
122
timeout: Timeout (Duration (hours: 1 )),
120
- tags: 'crashtest ' , // skipped by default, see: dart_test.yaml
123
+ tags: 'crash_test ' , // skipped by default, see: dart_test.yaml
121
124
);
122
125
}
You can’t perform that action at this time.
0 commit comments