Lines Matching defs:shard_index
2734 const Int32 shard_index = Int32FromEnvOrDie(kTestShardIndex, -1);
2737 static_cast<int>(shard_index) + 1,
4377 // but inconsistent (i.e., shard_index >= total_shards), prints
4389 const Int32 shard_index = Int32FromEnvOrDie(shard_index_env, -1);
4391 if (total_shards == -1 && shard_index == -1) {
4393 } else if (total_shards == -1 && shard_index != -1) {
4396 << kTestShardIndex << " = " << shard_index
4401 } else if (total_shards != -1 && shard_index == -1) {
4409 } else if (shard_index < 0 || shard_index >= total_shards) {
4413 << ", but you have " << kTestShardIndex << "=" << shard_index
4443 // method. Assumes that 0 <= shard_index < total_shards.
4444 bool ShouldRunTestOnShard(int total_shards, int shard_index, int test_id) {
4445 return (test_id % total_shards) == shard_index;
4458 const Int32 shard_index = shard_tests == HONOR_SHARDING_PROTOCOL ?
4495 ShouldRunTestOnShard(total_shards, shard_index,