Home | History | Annotate | Download | only in googletest

Lines Matching full:total_shards

4267 // but inconsistent (i.e., shard_index >= total_shards), prints
4278 const Int32 total_shards = Int32FromEnvOrDie(total_shards_env, -1);
4281 if (total_shards == -1 && shard_index == -1) {
4283 } else if (total_shards == -1 && shard_index != -1) {
4291 } else if (total_shards != -1 && shard_index == -1) {
4294 << kTestTotalShards << " = " << total_shards
4299 } else if (shard_index < 0 || shard_index >= total_shards) {
4304 << ", " << kTestTotalShards << "=" << total_shards << ".\n";
4310 return total_shards > 1;
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;
4346 const Int32 total_shards = shard_tests == HONOR_SHARDING_PROTOCOL ?
4385 ShouldRunTestOnShard(total_shards, shard_index,