Searched refs:total_shards (Results 1 – 2 of 2) sorted by relevance
5425 const Int32 total_shards = Int32FromEnvOrDie(total_shards_env, -1); in ShouldShard() local5428 if (total_shards == -1 && shard_index == -1) { in ShouldShard()5430 } else if (total_shards == -1 && shard_index != -1) { in ShouldShard()5438 } else if (total_shards != -1 && shard_index == -1) { in ShouldShard()5441 << kTestTotalShards << " = " << total_shards in ShouldShard()5446 } else if (shard_index < 0 || shard_index >= total_shards) { in ShouldShard()5451 << ", " << kTestTotalShards << "=" << total_shards << ".\n"; in ShouldShard()5457 return total_shards > 1; in ShouldShard()5481 bool ShouldRunTestOnShard(int total_shards, int shard_index, int test_id) { in ShouldRunTestOnShard() argument5482 return (test_id % total_shards) == shard_index; in ShouldRunTestOnShard()[all …]
273 int total_shards, int shard_index, int test_id);