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

Commit 76eba24

Browse files
committed
Fix comments
1 parent 0578084 commit 76eba24

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

dart_test.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
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`'
44
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

test/crash_test.dart

+8-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44

@@ -79,15 +79,18 @@ void main() async {
7979
try {
8080
await TarReader.forEach(Stream.value(archive), (entry) async {
8181
if (entry.name.endsWith('.md')) {
82-
late String str;
82+
late String contents;
8383
try {
8484
final bytes = await http.ByteStream(entry.contents).toBytes();
85-
str = utf8.decode(bytes);
85+
contents = utf8.decode(bytes);
8686
} on FormatException {
8787
return; // ignore invalid utf8
8888
}
8989
try {
90-
markdownToHtml(str, extensionSet: ExtensionSet.gitHubWeb);
90+
markdownToHtml(
91+
contents,
92+
extensionSet: ExtensionSet.gitHubWeb,
93+
);
9194
} catch (err, st) {
9295
errors
9396
.add('package:$package/${entry.name}, throws: $err\n$st');
@@ -117,6 +120,6 @@ void main() async {
117120
}
118121
},
119122
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
121124
);
122125
}

0 commit comments

Comments
 (0)