Home | History | Annotate | Download | only in gtest

Lines Matching refs:total_shards

658 // but inconsistent (e.g., shard_index >= total_shards), prints
674 // method. Assumes that 0 <= shard_index < total_shards.
676 int total_shards, int shard_index, int test_id);
5861 // but inconsistent (i.e., shard_index >= total_shards), prints
5872 const Int32 total_shards = Int32FromEnvOrDie(total_shards_env, -1);
5875 if (total_shards == -1 && shard_index == -1) {
5877 } else if (total_shards == -1 && shard_index != -1) {
5885 } else if (total_shards != -1 && shard_index == -1) {
5888 << kTestTotalShards << " = " << total_shards
5893 } else if (shard_index < 0 || shard_index >= total_shards) {
5898 << ", " << kTestTotalShards << "=" << total_shards << ".\n";
5904 return total_shards > 1;
5927 // method. Assumes that 0 <= shard_index < total_shards.
5928 bool ShouldRunTestOnShard(int total_shards, int shard_index, int test_id) {
5929 return (test_id % total_shards) == shard_index;
5940 const Int32 total_shards = shard_tests == HONOR_SHARDING_PROTOCOL ?
5979 ShouldRunTestOnShard(total_shards, shard_index,