Lines Matching refs:shard_index
670 int total_shards, int shard_index, int test_id);
4894 const int32_t shard_index = Int32FromEnvOrDie(kTestShardIndex, -1); in OnTestIterationStart() local
4896 static_cast<int>(shard_index) + 1, in OnTestIterationStart()
7449 const int32_t shard_index = Int32FromEnvOrDie(shard_index_env, -1); in ShouldShard() local
7451 if (total_shards == -1 && shard_index == -1) { in ShouldShard()
7453 } else if (total_shards == -1 && shard_index != -1) { in ShouldShard()
7456 << kTestShardIndex << " = " << shard_index in ShouldShard()
7461 } else if (total_shards != -1 && shard_index == -1) { in ShouldShard()
7469 } else if (shard_index < 0 || shard_index >= total_shards) { in ShouldShard()
7473 << ", but you have " << kTestShardIndex << "=" << shard_index in ShouldShard()
7504 bool ShouldRunTestOnShard(int total_shards, int shard_index, int test_id) { in ShouldRunTestOnShard() argument
7505 return (test_id % total_shards) == shard_index; in ShouldRunTestOnShard()
7518 const int32_t shard_index = shard_tests == HONOR_SHARDING_PROTOCOL ? in FilterTests() local
7552 !ShouldRunTestOnShard(total_shards, shard_index, num_runnable_tests); in FilterTests()