Home | History | Annotate | Download | only in src

Lines Matching refs:total_shards

4377 // but inconsistent (i.e., shard_index >= total_shards), prints
4388 const Int32 total_shards = Int32FromEnvOrDie(total_shards_env, -1);
4391 if (total_shards == -1 && shard_index == -1) {
4393 } else if (total_shards == -1 && shard_index != -1) {
4401 } else if (total_shards != -1 && shard_index == -1) {
4404 << kTestTotalShards << " = " << total_shards
4409 } else if (shard_index < 0 || shard_index >= total_shards) {
4414 << ", " << kTestTotalShards << "=" << total_shards << ".\n";
4420 return total_shards > 1;
4443 // method. Assumes that 0 <= shard_index < total_shards.
4444 bool ShouldRunTestOnShard(int total_shards, int shard_index, int test_id) {
4445 return (test_id % total_shards) == shard_index;
4456 const Int32 total_shards = shard_tests == HONOR_SHARDING_PROTOCOL ?
4495 ShouldRunTestOnShard(total_shards, shard_index,