Home
last modified time | relevance | path

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

/freebsd/contrib/googletest/googletest/test/
H A Dgoogletest-filter-unittest.py241 def RunWithSharding(total_shards, shard_index, command): argument
246 TOTAL_SHARDS_ENV_VAR: str(total_shards),
319 total_shards, argument
351 for i in range(0, total_shards):
352 (tests_run, exit_code) = RunWithSharding(total_shards, i, args)
/freebsd/contrib/googletest/googletest/src/
H A Dgtest.cc6076 const int32_t total_shards = Int32FromEnvOrDie(total_shards_env, -1); in ShouldShard() local
6079 if (total_shards == -1 && shard_index == -1) { in ShouldShard()
6081 } else if (total_shards == -1 && shard_index != -1) { in ShouldShard()
6089 } else if (total_shards != -1 && shard_index == -1) { in ShouldShard()
6092 << kTestTotalShards << " = " << total_shards in ShouldShard()
6097 } else if (shard_index < 0 || shard_index >= total_shards) { in ShouldShard()
6102 << ", " << kTestTotalShards << "=" << total_shards << ".\n"; in ShouldShard()
6108 return total_shards > 1; in ShouldShard()
6132 bool ShouldRunTestOnShard(int total_shards, int shard_index, int test_id) { in ShouldRunTestOnShard() argument
6133 return (test_id % total_shards) == shard_index; in ShouldRunTestOnShard()
[all …]
H A Dgtest-internal-inl.h268 GTEST_API_ bool ShouldRunTestOnShard(int total_shards, int shard_index,