Lines Matching refs:total_shards
685 GTEST_API_ bool ShouldRunTestOnShard(int total_shards, int shard_index,
5721 const Int32 total_shards = Int32FromEnvOrDie(total_shards_env, -1); in ShouldShard() local
5724 if (total_shards == -1 && shard_index == -1) { in ShouldShard()
5726 } else if (total_shards == -1 && shard_index != -1) { in ShouldShard()
5734 } else if (total_shards != -1 && shard_index == -1) { in ShouldShard()
5737 << kTestTotalShards << " = " << total_shards in ShouldShard()
5742 } else if (shard_index < 0 || shard_index >= total_shards) { in ShouldShard()
5747 << ", " << kTestTotalShards << "=" << total_shards << ".\n"; in ShouldShard()
5753 return total_shards > 1; in ShouldShard()
5777 bool ShouldRunTestOnShard(int total_shards, int shard_index, int test_id) { in ShouldRunTestOnShard() argument
5778 return (test_id % total_shards) == shard_index; in ShouldRunTestOnShard()
5789 const Int32 total_shards = shard_tests == HONOR_SHARDING_PROTOCOL in FilterTests() local
5829 ShouldRunTestOnShard(total_shards, shard_index, num_runnable_tests)); in FilterTests()