Lines Matching refs:total_shards
4299 // but inconsistent (i.e., shard_index >= total_shards), prints
4310 const Int32 total_shards = Int32FromEnvOrDie(total_shards_env, -1);
4313 if (total_shards == -1 && shard_index == -1) {
4315 } else if (total_shards == -1 && shard_index != -1) {
4323 } else if (total_shards != -1 && shard_index == -1) {
4326 << kTestTotalShards << " = " << total_shards
4331 } else if (shard_index < 0 || shard_index >= total_shards) {
4336 << ", " << kTestTotalShards << "=" << total_shards << ".\n";
4342 return total_shards > 1;
4365 // method. Assumes that 0 <= shard_index < total_shards.
4366 bool ShouldRunTestOnShard(int total_shards, int shard_index, int test_id) {
4367 return (test_id % total_shards) == shard_index;
4378 const Int32 total_shards = shard_tests == HONOR_SHARDING_PROTOCOL ?
4417 ShouldRunTestOnShard(total_shards, shard_index,