Home | History | Annotate | Download | only in src

Lines Matching refs:total_shards

4373 // but inconsistent (i.e., shard_index >= total_shards), prints
4384 const Int32 total_shards = Int32FromEnvOrDie(total_shards_env, -1);
4387 if (total_shards == -1 && shard_index == -1) {
4389 } else if (total_shards == -1 && shard_index != -1) {
4397 } else if (total_shards != -1 && shard_index == -1) {
4400 << kTestTotalShards << " = " << total_shards
4405 } else if (shard_index < 0 || shard_index >= total_shards) {
4410 << ", " << kTestTotalShards << "=" << total_shards << ".\n";
4416 return total_shards > 1;
4439 // method. Assumes that 0 <= shard_index < total_shards.
4440 bool ShouldRunTestOnShard(int total_shards, int shard_index, int test_id) {
4441 return (test_id % total_shards) == shard_index;
4452 const Int32 total_shards = shard_tests == HONOR_SHARDING_PROTOCOL ?
4491 ShouldRunTestOnShard(total_shards, shard_index,