Lines Matching refs:total_shards
6023 const int32_t total_shards = Int32FromEnvOrDie(total_shards_env, -1); in ShouldShard() local
6026 if (total_shards == -1 && shard_index == -1) { in ShouldShard()
6028 } else if (total_shards == -1 && shard_index != -1) { in ShouldShard()
6036 } else if (total_shards != -1 && shard_index == -1) { in ShouldShard()
6039 << kTestTotalShards << " = " << total_shards in ShouldShard()
6044 } else if (shard_index < 0 || shard_index >= total_shards) { in ShouldShard()
6049 << ", " << kTestTotalShards << "=" << total_shards << ".\n"; in ShouldShard()
6055 return total_shards > 1; in ShouldShard()
6079 bool ShouldRunTestOnShard(int total_shards, int shard_index, int test_id) { in ShouldRunTestOnShard() argument
6080 return (test_id % total_shards) == shard_index; in ShouldRunTestOnShard()
6091 const int32_t total_shards = shard_tests == HONOR_SHARDING_PROTOCOL in FilterTests() local
6131 !ShouldRunTestOnShard(total_shards, shard_index, num_runnable_tests); in FilterTests()