Created
March 6, 2019 16:06
-
-
Save Malinskiy/2834fe577a8d658fd4c2163b34028413 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
class CountShardingStrategy(val count: Int) : ShardingStrategy { | |
override fun createShard(tests: Collection<Test>): TestShard { | |
return TestShard(tests.flatMap { test -> | |
(0 until count).map { test } | |
}) | |
} | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment