Searched refs:total_shards (Results 1 – 3 of 3) sorted by relevance
| /freebsd-12-stable/contrib/googletest/googletest/test/ |
| D | googletest-filter-unittest.py | 217 def RunWithSharding(total_shards, shard_index, command): argument 221 TOTAL_SHARDS_ENV_VAR: str(total_shards)} 289 def RunAndVerifyWithSharding(self, gtest_filter, total_shards, tests_to_run, argument 318 for i in range(0, total_shards): 319 (tests_run, exit_code) = RunWithSharding(total_shards, i, args)
|
| /freebsd-12-stable/contrib/googletest/googletest/src/ |
| D | gtest.cc | 5352 const Int32 total_shards = Int32FromEnvOrDie(total_shards_env, -1); in ShouldShard() local 5355 if (total_shards == -1 && shard_index == -1) { in ShouldShard() 5357 } else if (total_shards == -1 && shard_index != -1) { in ShouldShard() 5365 } else if (total_shards != -1 && shard_index == -1) { in ShouldShard() 5368 << kTestTotalShards << " = " << total_shards in ShouldShard() 5373 } else if (shard_index < 0 || shard_index >= total_shards) { in ShouldShard() 5378 << ", " << kTestTotalShards << "=" << total_shards << ".\n"; in ShouldShard() 5384 return total_shards > 1; in ShouldShard() 5408 bool ShouldRunTestOnShard(int total_shards, int shard_index, int test_id) { in ShouldRunTestOnShard() argument 5409 return (test_id % total_shards) == shard_index; in ShouldRunTestOnShard() [all …]
|
| D | gtest-internal-inl.h | 272 int total_shards, int shard_index, int test_id);
|