Skip to content

Conversation

MarkusJais
Copy link

This adds a unit test for filter_map of streams.

Right now in the adapters function.

After this I propose to split the adapters test function into many smaller functions, each covering on single function to test. That makes it somewhat easier to read and one could easily add more than one test case for each function without making the adapters function huge.

What do you think? I am happy to do it.

@MarkusJais
Copy link
Author

MarkusJais commented Aug 18, 2016

I am confused by the coverage check failure. I added a test but it still says that coverage decreased.
Could this be because I split the assert over several lines to make it more readable?

@alexcrichton
Copy link
Member

Thanks! Yeah I'd be totally fine splitting up the tests, feel free to do so!

@alexcrichton alexcrichton merged commit 65e65e3 into rust-lang:master Aug 18, 2016
@MarkusJais
Copy link
Author

Ok, will do. Expect a PR in a few days.

withoutboats pushed a commit that referenced this pull request Mar 25, 2018
As of rust-lang/rust#49194 it's now unsafe to
resume a generator, but safe to create an immovable generator.

Fixes #74
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants