File tree Expand file tree Collapse file tree 1 file changed +0
-46
lines changed
packages/stream_feeds/test/test_utils/testers Expand file tree Collapse file tree 1 file changed +0
-46
lines changed Original file line number Diff line number Diff line change @@ -61,52 +61,6 @@ abstract base class BaseTester<S> with ApiMockerMixin {
6161 Future <void > pump ([Duration duration = Duration .zero]) {
6262 return Future <Object ?>.delayed (duration);
6363 }
64-
65- /// Asserts that [actual] matches [matcher] .
66- ///
67- /// The [actual] parameter is a function that receives the subject
68- /// and returns a value to assert.
69- ///
70- /// Example:
71- /// ```dart
72- /// tester.expect((subject) => subject.state.someField, expectedValue);
73- /// ```
74- @Deprecated ('Use regular expect instead' )
75- void expect (
76- Object ? Function (S subject) actual,
77- Object ? matcher, {
78- String ? reason,
79- }) {
80- return test.expect (
81- actual (subject),
82- test.wrapMatcher (matcher),
83- reason: reason,
84- );
85- }
86-
87- /// Asserts that [actual] matches [matcher] asynchronously.
88- ///
89- /// The [actual] parameter is a function that receives the subject
90- /// and returns a value to assert.
91- ///
92- /// Example:
93- /// ```dart
94- /// await tester.expectLater(
95- /// (subject) => subject.stream,
96- /// emits(expectedValue),
97- /// );
98- /// ```
99- Future <void > expectLater (
100- Object ? Function (S subject) actual,
101- Object ? matcher, {
102- String ? reason,
103- }) {
104- return test.expectLater (
105- actual (subject),
106- test.wrapMatcher (matcher),
107- reason: reason,
108- );
109- }
11064}
11165
11266/// Creates a tester instance with WebSocket support.
You can’t perform that action at this time.
0 commit comments