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()
4279 const Int32 shard_index = Int32FromEnvOrDie(shard_index_env, -1); in ShouldShard() local
4281 if (total_shards == -1 && shard_index == -1) { in ShouldShard()
4283 } else if (total_shards == -1 && shard_index != -1) { in ShouldShard()
4286 << kTestShardIndex << " = " << shard_index in ShouldShard()
4291 } else if (total_shards != -1 && shard_index == -1) { in ShouldShard()
4299 } else if (shard_index < 0 || shard_index >= total_shards) { in ShouldShard()
4303 << ", but you have " << kTestShardIndex << "=" << shard_index in ShouldShard()
4334 bool ShouldRunTestOnShard(int total_shards, int shard_index, int test_id) { in ShouldRunTestOnShard() argument
4335 return (test_id % total_shards) == shard_index; in ShouldRunTestOnShard()
4348 const Int32 shard_index = shard_tests == HONOR_SHARDING_PROTOCOL ? in FilterTests() local
4385 ShouldRunTestOnShard(total_shards, shard_index, in FilterTests()