Home | History | Annotate | Download | only in googletest

Lines Matching refs:shard_index

2702     const Int32 shard_index = Int32FromEnvOrDie(kTestShardIndex, -1);
2705 static_cast<int>(shard_index) + 1,
4267 // but inconsistent (i.e., shard_index >= total_shards), prints
4279 const Int32 shard_index = Int32FromEnvOrDie(shard_index_env, -1);
4281 if (total_shards == -1 && shard_index == -1) {
4283 } else if (total_shards == -1 && shard_index != -1) {
4286 << kTestShardIndex << " = " << shard_index
4291 } else if (total_shards != -1 && shard_index == -1) {
4299 } else if (shard_index < 0 || shard_index >= total_shards) {
4303 << ", but you have " << kTestShardIndex << "=" << shard_index
4333 // method. Assumes that 0 <= shard_index < total_shards.
4334 bool ShouldRunTestOnShard(int total_shards, int shard_index, int test_id) {
4335 return (test_id % total_shards) == shard_index;
4348 const Int32 shard_index = shard_tests == HONOR_SHARDING_PROTOCOL ?
4385 ShouldRunTestOnShard(total_shards, shard_index,