Home | History | Annotate | Download | only in src

Lines Matching refs:total_shards

667 // but inconsistent (e.g., shard_index >= total_shards), prints
683 // method. Assumes that 0 <= shard_index < total_shards.
685 int total_shards, int shard_index, int test_id);
5885 // but inconsistent (i.e., shard_index >= total_shards), prints
5896 const Int32 total_shards = Int32FromEnvOrDie(total_shards_env, -1);
5899 if (total_shards == -1 && shard_index == -1) {
5901 } else if (total_shards == -1 && shard_index != -1) {
5909 } else if (total_shards != -1 && shard_index == -1) {
5912 << kTestTotalShards << " = " << total_shards
5917 } else if (shard_index < 0 || shard_index >= total_shards) {
5922 << ", " << kTestTotalShards << "=" << total_shards << ".\n";
5928 return total_shards > 1;
5951 // method. Assumes that 0 <= shard_index < total_shards.
5952 bool ShouldRunTestOnShard(int total_shards, int shard_index, int test_id) {
5953 return (test_id % total_shards) == shard_index;
5964 const Int32 total_shards = shard_tests == HONOR_SHARDING_PROTOCOL ?
6009 ShouldRunTestOnShard(total_shards, shard_index,