Index: pkg/matcher/lib/src/future_matchers.dart |
diff --git a/pkg/matcher/lib/src/future_matchers.dart b/pkg/matcher/lib/src/future_matchers.dart |
index 4c5a391f7b78a4dae7ff989c46b170a7c0040934..c9e2742ec5ba737e58dff5f6360dd4238cb5bbcf 100644 |
--- a/pkg/matcher/lib/src/future_matchers.dart |
+++ b/pkg/matcher/lib/src/future_matchers.dart |
@@ -2,33 +2,31 @@ |
// 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 matcher.future_matchers; |
+part of matcher; |
-import 'dart:async'; |
- |
-import 'core_matchers.dart'; |
-import 'expect.dart'; |
-import 'interfaces.dart'; |
- |
-/// Matches a [Future] that completes successfully with a value. Note that this |
-/// creates an asynchronous expectation. The call to `expect()` that includes |
-/// this will return immediately and execution will continue. Later, when the |
-/// future completes, the actual expectation will run. |
-/// |
-/// To test that a Future completes with an exception, you can use [throws] and |
-/// [throwsA]. |
+/** |
+ * Matches a [Future] that completes successfully with a value. Note that this |
+ * creates an asynchronous expectation. The call to `expect()` that includes |
+ * this will return immediately and execution will continue. Later, when the |
+ * future completes, the actual expectation will run. |
+ * |
+ * To test that a Future completes with an exception, you can use [throws] and |
+ * [throwsA]. |
+ */ |
final Matcher completes = const _Completes(null, ''); |
-/// Matches a [Future] that completes succesfully with a value that matches |
-/// [matcher]. Note that this creates an asynchronous expectation. The call to |
-/// `expect()` that includes this will return immediately and execution will |
-/// continue. Later, when the future completes, the actual expectation will run. |
-/// |
-/// To test that a Future completes with an exception, you can use [throws] and |
-/// [throwsA]. |
-/// |
-/// [id] is an optional tag that can be used to identify the completion matcher |
-/// in error messages. |
+/** |
+ * Matches a [Future] that completes succesfully with a value that matches |
+ * [matcher]. Note that this creates an asynchronous expectation. The call to |
+ * `expect()` that includes this will return immediately and execution will |
+ * continue. Later, when the future completes, the actual expectation will run. |
+ * |
+ * To test that a Future completes with an exception, you can use [throws] and |
+ * [throwsA]. |
+ * |
+ * [id] is an optional tag that can be used to identify the completion matcher |
+ * in error messages. |
+ */ |
Matcher completion(matcher, [String id = '']) => |
new _Completes(wrapMatcher(matcher), id); |