Home | History | Annotate | Download | only in src

Lines Matching refs:total_shards

4269 // but inconsistent (i.e., shard_index >= total_shards), prints
4280 const Int32 total_shards = Int32FromEnvOrDie(total_shards_env, -1);
4283 if (total_shards == -1 && shard_index == -1) {
4285 } else if (total_shards == -1 && shard_index != -1) {
4293 } else if (total_shards != -1 && shard_index == -1) {
4296 << kTestTotalShards << " = " << total_shards
4301 } else if (shard_index < 0 || shard_index >= total_shards) {
4306 << ", " << kTestTotalShards << "=" << total_shards << ".\n";
4312 return total_shards > 1;
4335 // method. Assumes that 0 <= shard_index < total_shards.
4336 bool ShouldRunTestOnShard(int total_shards, int shard_index, int test_id) {
4337 return (test_id % total_shards) == shard_index;
4348 const Int32 total_shards = shard_tests == HONOR_SHARDING_PROTOCOL ?
4387 ShouldRunTestOnShard(total_shards, shard_index,