Lines Matching refs:shard_index
683 int total_shards, int shard_index, int test_id);
4523 const Int32 shard_index = Int32FromEnvOrDie(kTestShardIndex, -1); in OnTestIterationStart() local
4526 static_cast<int>(shard_index) + 1, in OnTestIterationStart()
6175 const Int32 shard_index = Int32FromEnvOrDie(shard_index_env, -1); in ShouldShard() local
6177 if (total_shards == -1 && shard_index == -1) { in ShouldShard()
6179 } else if (total_shards == -1 && shard_index != -1) { in ShouldShard()
6182 << kTestShardIndex << " = " << shard_index in ShouldShard()
6187 } else if (total_shards != -1 && shard_index == -1) { in ShouldShard()
6195 } else if (shard_index < 0 || shard_index >= total_shards) { in ShouldShard()
6199 << ", but you have " << kTestShardIndex << "=" << shard_index in ShouldShard()
6230 bool ShouldRunTestOnShard(int total_shards, int shard_index, int test_id) { in ShouldRunTestOnShard() argument
6231 return (test_id % total_shards) == shard_index; in ShouldRunTestOnShard()
6244 const Int32 shard_index = shard_tests == HONOR_SHARDING_PROTOCOL ? in FilterTests() local
6281 ShouldRunTestOnShard(total_shards, shard_index, in FilterTests()