New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Request: matchers specifically for streams #8899
Comments
This comment was originally written by @sethladd File under Area=UnitTest |
Removed Type-Defect label. |
This comment was originally written by @seaneagan For starters could make most Iterable Matchers also work for Streams, since the API is so similar: isEmpty |
This comment was originally written by @seaneagan I think to help with implementing these sorts of Matchers, it would probably be useful if Matcher.matches were allowed to return a Future<bool> instead of just a bool. |
This comment was originally written by @seaneagan And actually it would probably work better as a rich MatchResult object instead of a plain bool, so it can store data about why it didn't match, to be used in "describe": class Matcher { class MatchResult { |
Regarding the mismatch state, we already have a mechanism for that (MatchState). |
This comment was originally written by @seaneagan returning Future<bool> from Matcher.matches is filed as issue #10188 |
Added Pkg-Unittest label. |
Removed Area-UnitTest label. |
Removed Pkg-Unittest label. |
This is still planned, although it'll be in |
This issue was moved to dart-lang/test#134 |
This issue has been moved to dart-lang/matcher#13. |
This issue was originally filed by @sethladd
I'd love to see some matchers specifically for testing streams. The matchers package has a few matchers for handling Future (like completes).
The text was updated successfully, but these errors were encountered: