Lines Matching refs:total_shards
4280 const Int32 total_shards = Int32FromEnvOrDie(total_shards_env, -1); in ShouldShard() local
4283 if (total_shards == -1 && shard_index == -1) { in ShouldShard()
4285 } else if (total_shards == -1 && shard_index != -1) { in ShouldShard()
4293 } else if (total_shards != -1 && shard_index == -1) { in ShouldShard()
4296 << kTestTotalShards << " = " << total_shards in ShouldShard()
4301 } else if (shard_index < 0 || shard_index >= total_shards) { in ShouldShard()
4306 << ", " << kTestTotalShards << "=" << total_shards << ".\n"; in ShouldShard()
4312 return total_shards > 1; in ShouldShard()
4336 bool ShouldRunTestOnShard(int total_shards, int shard_index, int test_id) { in ShouldRunTestOnShard() argument
4337 return (test_id % total_shards) == shard_index; in ShouldRunTestOnShard()
4348 const Int32 total_shards = shard_tests == HONOR_SHARDING_PROTOCOL ? in FilterTests() local
4387 ShouldRunTestOnShard(total_shards, shard_index, in FilterTests()