Home
last modified time | relevance | path

Searched refs:total_shards (Results 1 – 2 of 2) sorted by relevance

/netbsd-src/external/apache2/llvm/dist/llvm/utils/unittest/googletest/src/
H A Dgtest.cc5425 const Int32 total_shards = Int32FromEnvOrDie(total_shards_env, -1); in ShouldShard() local
5428 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() argument
5482 return (test_id % total_shards) == shard_index; in ShouldRunTestOnShard()
[all …]
H A Dgtest-internal-inl.h273 int total_shards, int shard_index, int test_id);