Searched refs:total_shards (Results 1 – 3 of 3) sorted by relevance
| /freebsd/contrib/googletest/googletest/test/ |
| H A D | googletest-filter-unittest.py | 244 def RunWithSharding(total_shards, shard_index, command): argument 249 TOTAL_SHARDS_ENV_VAR: str(total_shards), 322 total_shards, argument 354 for i in range(0, total_shards): 355 (tests_run, exit_code) = RunWithSharding(total_shards, i, args)
|
| /freebsd/contrib/googletest/googletest/src/ |
| H A D | gtest.cc | 6175 const int32_t total_shards = Int32FromEnvOrDie(total_shards_env, -1); in ShouldShard() local 6178 if (total_shards == -1 && shard_index == -1) { in ShouldShard() 6180 } else if (total_shards == -1 && shard_index != -1) { in ShouldShard() 6188 } else if (total_shards != -1 && shard_index == -1) { in ShouldShard() 6191 << kTestTotalShards << " = " << total_shards in ShouldShard() 6196 } else if (shard_index < 0 || shard_index >= total_shards) { in ShouldShard() 6201 << ", " << kTestTotalShards << "=" << total_shards << ".\n"; in ShouldShard() 6207 return total_shards > 1; in ShouldShard() 6231 bool ShouldRunTestOnShard(int total_shards, int shard_index, int test_id) { in ShouldRunTestOnShard() argument 6232 return (test_id % total_shards) == shard_index; in ShouldRunTestOnShard() [all …]
|
| H A D | gtest-internal-inl.h | 268 GTEST_API_ bool ShouldRunTestOnShard(int total_shards, int shard_index,
|