| 62 | } |
| 63 | |
| 64 | TEST(Shard, Basic) { |
| 65 | thread::ThreadPool threads(Env::Default(), "test", 16); |
| 66 | for (auto workers : {0, 1, 2, 3, 5, 7, 10, 11, 15, 100, 1000}) { |
| 67 | for (auto total : {0, 1, 7, 10, 64, 100, 256, 1000, 9999}) { |
| 68 | for (auto cost_per_unit : {0, 1, 11, 102, 1003, 10005, 1000007}) { |
| 69 | for (auto maxp : {1, 2, 4, 8, 100}) { |
| 70 | ScopedPerThreadMaxParallelism s(maxp); |
| 71 | RunSharding(workers, total, cost_per_unit, maxp, &threads); |
| 72 | } |
| 73 | } |
| 74 | } |
| 75 | } |
| 76 | } |
| 77 | |
| 78 | TEST(Shard, OverflowTest) { |
| 79 | thread::ThreadPool threads(Env::Default(), "test", 3); |
nothing calls this directly
no test coverage detected