Lines Matching refs:total_shards
683 int total_shards, int shard_index, int test_id);
6174 const Int32 total_shards = Int32FromEnvOrDie(total_shards_env, -1); in ShouldShard() local
6177 if (total_shards == -1 && shard_index == -1) { in ShouldShard()
6179 } else if (total_shards == -1 && shard_index != -1) { in ShouldShard()
6187 } else if (total_shards != -1 && shard_index == -1) { in ShouldShard()
6190 << kTestTotalShards << " = " << total_shards in ShouldShard()
6195 } else if (shard_index < 0 || shard_index >= total_shards) { in ShouldShard()
6200 << ", " << kTestTotalShards << "=" << total_shards << ".\n"; in ShouldShard()
6206 return total_shards > 1; in ShouldShard()
6230 bool ShouldRunTestOnShard(int total_shards, int shard_index, int test_id) { in ShouldRunTestOnShard() argument
6231 return (test_id % total_shards) == shard_index; in ShouldRunTestOnShard()
6242 const Int32 total_shards = shard_tests == HONOR_SHARDING_PROTOCOL ? in FilterTests() local
6281 ShouldRunTestOnShard(total_shards, shard_index, in FilterTests()