Home | History | Annotate | Download | only in src

Lines Matching refs:total_shards

4087 // but inconsistent (i.e., shard_index >= total_shards), prints
4098 const Int32 total_shards = Int32FromEnvOrDie(total_shards_env, -1);
4101 if (total_shards == -1 && shard_index == -1) {
4103 } else if (total_shards == -1 && shard_index != -1) {
4111 } else if (total_shards != -1 && shard_index == -1) {
4114 << kTestTotalShards << " = " << total_shards
4119 } else if (shard_index < 0 || shard_index >= total_shards) {
4124 << ", " << kTestTotalShards << "=" << total_shards << ".\n";
4130 return total_shards > 1;
4153 // method. Assumes that 0 <= shard_index < total_shards.
4154 bool ShouldRunTestOnShard(int total_shards, int shard_index, int test_id) {
4155 return (test_id % total_shards) == shard_index;
4166 const Int32 total_shards = shard_tests == HONOR_SHARDING_PROTOCOL ?
4205 ShouldRunTestOnShard(total_shards, shard_index,