File tree 5 files changed +6
-18
lines changed
pkgs/test_core/lib/src/runner
5 files changed +6
-18
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,4 @@ abstract class Reporter {
19
19
/// Subclasses should ensure that this does nothing if the reporter isn't
20
20
/// paused.
21
21
void resume ();
22
-
23
- /// Cancels the reporter's output.
24
- void cancel ();
25
22
}
Original file line number Diff line number Diff line change @@ -145,8 +145,7 @@ class CompactReporter implements Reporter {
145
145
}
146
146
}
147
147
148
- @override
149
- void cancel () {
148
+ void _cancel () {
150
149
for (var subscription in _subscriptions) {
151
150
subscription.cancel ();
152
151
}
@@ -239,7 +238,7 @@ class CompactReporter implements Reporter {
239
238
/// [success] will be `true` if all tests passed, `false` if some tests
240
239
/// failed, and `null` if the engine was closed prematurely.
241
240
void _onDone (bool ? success) {
242
- cancel ();
241
+ _cancel ();
243
242
_stopwatch.stop ();
244
243
245
244
// A null success value indicates that the engine was closed before the
Original file line number Diff line number Diff line change @@ -141,8 +141,7 @@ class ExpandedReporter implements Reporter {
141
141
}
142
142
}
143
143
144
- @override
145
- void cancel () {
144
+ void _cancel () {
146
145
for (var subscription in _subscriptions) {
147
146
subscription.cancel ();
148
147
}
@@ -220,6 +219,7 @@ class ExpandedReporter implements Reporter {
220
219
/// [success] will be `true` if all tests passed, `false` if some tests
221
220
/// failed, and `null` if the engine was closed prematurely.
222
221
void _onDone (bool ? success) {
222
+ _cancel ();
223
223
// A null success value indicates that the engine was closed before the
224
224
// tests finished running, probably because of a signal from the user, in
225
225
// which case we shouldn't print summary information.
Original file line number Diff line number Diff line change @@ -106,8 +106,7 @@ class JsonReporter implements Reporter {
106
106
}
107
107
}
108
108
109
- @override
110
- void cancel () {
109
+ void _cancel () {
111
110
for (var subscription in _subscriptions) {
112
111
subscription.cancel ();
113
112
}
@@ -276,7 +275,7 @@ class JsonReporter implements Reporter {
276
275
/// [success] will be `true` if all tests passed, `false` if some tests
277
276
/// failed, and `null` if the engine was closed prematurely.
278
277
void _onDone (bool ? success) {
279
- cancel ();
278
+ _cancel ();
280
279
_stopwatch.stop ();
281
280
282
281
_emit ('done' , {'success' : success});
Original file line number Diff line number Diff line change @@ -9,13 +9,6 @@ class MultiplexReporter implements Reporter {
9
9
10
10
MultiplexReporter (this .delegates);
11
11
12
- @override
13
- void cancel () {
14
- for (var d in delegates) {
15
- d.cancel ();
16
- }
17
- }
18
-
19
12
@override
20
13
void pause () {
21
14
for (var d in delegates) {
You can’t perform that action at this time.
0 commit comments