| Index: packages/stack_trace/test/utils.dart
|
| diff --git a/packages/stack_trace/test/utils.dart b/packages/stack_trace/test/utils.dart
|
| index 912f8f4ed007a5aace161296fdbe72ca58ab1083..0241b3737c1eff584e25efd164521d80c18c6fbc 100644
|
| --- a/packages/stack_trace/test/utils.dart
|
| +++ b/packages/stack_trace/test/utils.dart
|
| @@ -2,17 +2,15 @@
|
| // for details. All rights reserved. Use of this source code is governed by a
|
| // BSD-style license that can be found in the LICENSE file.
|
|
|
| -library stack_trace.test.utils;
|
| -
|
| import 'package:test/test.dart';
|
|
|
| /// Returns a matcher that runs [matcher] against a [Frame]'s `member` field.
|
| Matcher frameMember(matcher) =>
|
| - transform((frame) => frame.member, matcher, 'member');
|
| + transform((frame) => frame.member, matcher, 'member');
|
|
|
| /// Returns a matcher that runs [matcher] against a [Frame]'s `library` field.
|
| Matcher frameLibrary(matcher) =>
|
| - transform((frame) => frame.library, matcher, 'library');
|
| + transform((frame) => frame.library, matcher, 'library');
|
|
|
| /// Returns a matcher that runs [transformation] on its input, then matches
|
| /// the output against [matcher].
|
| @@ -20,7 +18,7 @@ Matcher frameLibrary(matcher) =>
|
| /// [description] should be a noun phrase that describes the relation of the
|
| /// output of [transformation] to its input.
|
| Matcher transform(transformation(value), matcher, String description) =>
|
| - new _TransformMatcher(transformation, wrapMatcher(matcher), description);
|
| + new _TransformMatcher(transformation, wrapMatcher(matcher), description);
|
|
|
| class _TransformMatcher extends Matcher {
|
| final Function _transformation;
|
| @@ -30,8 +28,8 @@ class _TransformMatcher extends Matcher {
|
| _TransformMatcher(this._transformation, this._matcher, this._description);
|
|
|
| bool matches(item, Map matchState) =>
|
| - _matcher.matches(_transformation(item), matchState);
|
| + _matcher.matches(_transformation(item), matchState);
|
|
|
| Description describe(Description description) =>
|
| - description.add(_description).add(' ').addDescriptionOf(_matcher);
|
| + description.add(_description).add(' ').addDescriptionOf(_matcher);
|
| }
|
|
|