Home | History | Annotate | Download | only in src

Lines Matching defs:shard_index

2730     const Int32 shard_index = Int32FromEnvOrDie(kTestShardIndex, -1);
2733 static_cast<int>(shard_index) + 1,
4299 // but inconsistent (i.e., shard_index >= total_shards), prints
4311 const Int32 shard_index = Int32FromEnvOrDie(shard_index_env, -1);
4313 if (total_shards == -1 && shard_index == -1) {
4315 } else if (total_shards == -1 && shard_index != -1) {
4318 << kTestShardIndex << " = " << shard_index
4323 } else if (total_shards != -1 && shard_index == -1) {
4331 } else if (shard_index < 0 || shard_index >= total_shards) {
4335 << ", but you have " << kTestShardIndex << "=" << shard_index
4365 // method. Assumes that 0 <= shard_index < total_shards.
4366 bool ShouldRunTestOnShard(int total_shards, int shard_index, int test_id) {
4367 return (test_id % total_shards) == shard_index;
4380 const Int32 shard_index = shard_tests == HONOR_SHARDING_PROTOCOL ?
4417 ShouldRunTestOnShard(total_shards, shard_index,