-
Notifications
You must be signed in to change notification settings - Fork 112
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
Provide a fake WebSocketChannel implementation useful for tests #361
base: master
Are you sure you want to change the base?
Conversation
|
My understanding of the definitions for different types of test doubles (and the one we use on the Dart team) is:
In usage many authors will feed it stubbed data, and will use the other side of the channel to verify interactions, but I don't think this class is a "Stub" or a "Mock" the way we would normally think of them. It's only used with the same API as the production class, so I think "Fake" is the right term to use. It's definitely the case that historically on the Dart team, and in the Dart ecosystem in general, the work "Mock" has been used more frequently, and has been applied to instances that cannot verify interactions. |
Are we planning on landing this one in addition to a fake for I think we could skip to landing the latter if we wanted. |
Understood, thanks for the thorough explanation! |
That was my thought.
I think that getting people to move off of And |
This comment was marked as resolved.
This comment was marked as resolved.
Didn't I fix that in dart-lang/build@43bd3f5 ? |
Huh. Looks like it. Given that dart-lang/build#3678 was still open, I assumed it was blocked on this. |
Contribution guidelines:
dart format
.Note that many Dart repos have a weekly cadence for reviewing PRs - please allow for some latency before initial review feedback.