Last active
November 21, 2018 17:50
-
-
Save EricDw/51b547b86e1e709c1481236d3eb89ec9 to your computer and use it in GitHub Desktop.
The setup code for making a pipeline and a demonstration of how it should work inside.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private lateinit var intToStringPipeline: Pipeline<Int, String> | |
@Before | |
fun setUp() { | |
intToStringPipeline = CoroutineTestingScope.pipeline() { | |
for (number in channel) { | |
send { number.toString() } | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment