Lines Matching refs:shard_index
2702 const Int32 shard_index = Int32FromEnvOrDie(kTestShardIndex, -1); in OnTestIterationStart() local
2705 static_cast<int>(shard_index) + 1, in OnTestIterationStart()
4281 const Int32 shard_index = Int32FromEnvOrDie(shard_index_env, -1); in ShouldShard() local
4283 if (total_shards == -1 && shard_index == -1) { in ShouldShard()
4285 } else if (total_shards == -1 && shard_index != -1) { in ShouldShard()
4288 << kTestShardIndex << " = " << shard_index in ShouldShard()
4293 } else if (total_shards != -1 && shard_index == -1) { in ShouldShard()
4301 } else if (shard_index < 0 || shard_index >= total_shards) { in ShouldShard()
4305 << ", but you have " << kTestShardIndex << "=" << shard_index in ShouldShard()
4336 bool ShouldRunTestOnShard(int total_shards, int shard_index, int test_id) { in ShouldRunTestOnShard() argument
4337 return (test_id % total_shards) == shard_index; in ShouldRunTestOnShard()
4350 const Int32 shard_index = shard_tests == HONOR_SHARDING_PROTOCOL ? in FilterTests() local
4387 ShouldRunTestOnShard(total_shards, shard_index, in FilterTests()