/external/googletest/googletest/test/ |
D | googletest-filter-unittest.py | 220 def RunWithSharding(total_shards, shard_index, command): argument 224 TOTAL_SHARDS_ENV_VAR: str(total_shards)} 292 def RunAndVerifyWithSharding(self, gtest_filter, total_shards, tests_to_run, argument 321 for i in range(0, total_shards): 322 (tests_run, exit_code) = RunWithSharding(total_shards, i, args)
|
/external/tensorflow/tensorflow/core/kernels/ |
D | population_count_op.cc | 107 int64 total_shards = input.size(); in operator ()() local 118 Shard(worker_threads.num_threads, worker_threads.workers, total_shards, in operator ()()
|
D | compare_and_bitpack_op.cc | 151 int64 total_shards = output.size(); // Approximate cmp as an add and in operator ()() local 160 Shard(worker_threads.num_threads, worker_threads.workers, total_shards, in operator ()()
|
D | depthwise_conv_op.cc | 233 const int64 total_shards = args.batch * args.out_rows; in operator ()() local 244 Shard(worker_threads.num_threads, worker_threads.workers, total_shards, in operator ()()
|
/external/llvm/utils/unittest/googletest/src/ |
D | gtest.cc | 4280 const Int32 total_shards = Int32FromEnvOrDie(total_shards_env, -1); in ShouldShard() local 4283 if (total_shards == -1 && shard_index == -1) { in ShouldShard() 4285 } else if (total_shards == -1 && shard_index != -1) { in ShouldShard() 4293 } else if (total_shards != -1 && shard_index == -1) { in ShouldShard() 4296 << kTestTotalShards << " = " << total_shards in ShouldShard() 4301 } else if (shard_index < 0 || shard_index >= total_shards) { in ShouldShard() 4306 << ", " << kTestTotalShards << "=" << total_shards << ".\n"; in ShouldShard() 4312 return total_shards > 1; in ShouldShard() 4336 bool ShouldRunTestOnShard(int total_shards, int shard_index, int test_id) { in ShouldRunTestOnShard() argument 4337 return (test_id % total_shards) == shard_index; in ShouldRunTestOnShard() [all …]
|
D | gtest-internal-inl.h | 269 int total_shards, int shard_index, int test_id);
|
/external/llvm-project/llvm/utils/unittest/googletest/src/ |
D | gtest.cc | 4722 const Int32 total_shards = Int32FromEnvOrDie(total_shards_env, -1); in ShouldShard() local 4725 if (total_shards == -1 && shard_index == -1) { in ShouldShard() 4727 } else if (total_shards == -1 && shard_index != -1) { in ShouldShard() 4735 } else if (total_shards != -1 && shard_index == -1) { in ShouldShard() 4738 << kTestTotalShards << " = " << total_shards in ShouldShard() 4743 } else if (shard_index < 0 || shard_index >= total_shards) { in ShouldShard() 4748 << ", " << kTestTotalShards << "=" << total_shards << ".\n"; in ShouldShard() 4754 return total_shards > 1; in ShouldShard() 4778 bool ShouldRunTestOnShard(int total_shards, int shard_index, int test_id) { in ShouldRunTestOnShard() argument 4779 return (test_id % total_shards) == shard_index; in ShouldRunTestOnShard() [all …]
|
D | gtest-internal-inl.h | 276 int total_shards, int shard_index, int test_id);
|
/external/libvpx/libvpx/third_party/googletest/src/src/ |
D | gtest.cc | 5264 const Int32 total_shards = Int32FromEnvOrDie(total_shards_env, -1); in ShouldShard() local 5267 if (total_shards == -1 && shard_index == -1) { in ShouldShard() 5269 } else if (total_shards == -1 && shard_index != -1) { in ShouldShard() 5277 } else if (total_shards != -1 && shard_index == -1) { in ShouldShard() 5280 << kTestTotalShards << " = " << total_shards in ShouldShard() 5285 } else if (shard_index < 0 || shard_index >= total_shards) { in ShouldShard() 5290 << ", " << kTestTotalShards << "=" << total_shards << ".\n"; in ShouldShard() 5296 return total_shards > 1; in ShouldShard() 5320 bool ShouldRunTestOnShard(int total_shards, int shard_index, int test_id) { in ShouldRunTestOnShard() argument 5321 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);
|
/external/rust/crates/quiche/deps/boringssl/src/third_party/googletest/src/ |
D | gtest.cc | 5363 const Int32 total_shards = Int32FromEnvOrDie(total_shards_env, -1); in ShouldShard() local 5366 if (total_shards == -1 && shard_index == -1) { in ShouldShard() 5368 } else if (total_shards == -1 && shard_index != -1) { in ShouldShard() 5376 } else if (total_shards != -1 && shard_index == -1) { in ShouldShard() 5379 << kTestTotalShards << " = " << total_shards in ShouldShard() 5384 } else if (shard_index < 0 || shard_index >= total_shards) { in ShouldShard() 5389 << ", " << kTestTotalShards << "=" << total_shards << ".\n"; in ShouldShard() 5395 return total_shards > 1; in ShouldShard() 5419 bool ShouldRunTestOnShard(int total_shards, int shard_index, int test_id) { in ShouldRunTestOnShard() argument 5420 return (test_id % total_shards) == shard_index; in ShouldRunTestOnShard() [all …]
|
D | gtest-internal-inl.h | 273 int total_shards, int shard_index, int test_id);
|
/external/mesa3d/src/gtest/src/ |
D | gtest.cc | 5425 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 …]
|
D | gtest-internal-inl.h | 273 int total_shards, int shard_index, int test_id);
|
/external/googletest/googletest/src/ |
D | gtest.cc | 5957 const int32_t total_shards = Int32FromEnvOrDie(total_shards_env, -1); in ShouldShard() local 5960 if (total_shards == -1 && shard_index == -1) { in ShouldShard() 5962 } else if (total_shards == -1 && shard_index != -1) { in ShouldShard() 5970 } else if (total_shards != -1 && shard_index == -1) { in ShouldShard() 5973 << kTestTotalShards << " = " << total_shards in ShouldShard() 5978 } else if (shard_index < 0 || shard_index >= total_shards) { in ShouldShard() 5983 << ", " << kTestTotalShards << "=" << total_shards << ".\n"; in ShouldShard() 5989 return total_shards > 1; in ShouldShard() 6013 bool ShouldRunTestOnShard(int total_shards, int shard_index, int test_id) { in ShouldRunTestOnShard() argument 6014 return (test_id % total_shards) == shard_index; in ShouldRunTestOnShard() [all …]
|
D | gtest-internal-inl.h | 282 int total_shards, int shard_index, int test_id);
|
/external/libaom/libaom/third_party/googletest/src/googletest/src/ |
D | gtest.cc | 5466 const int32_t total_shards = Int32FromEnvOrDie(total_shards_env, -1); in ShouldShard() local 5469 if (total_shards == -1 && shard_index == -1) { in ShouldShard() 5471 } else if (total_shards == -1 && shard_index != -1) { in ShouldShard() 5479 } else if (total_shards != -1 && shard_index == -1) { in ShouldShard() 5482 << kTestTotalShards << " = " << total_shards in ShouldShard() 5487 } else if (shard_index < 0 || shard_index >= total_shards) { in ShouldShard() 5492 << ", " << kTestTotalShards << "=" << total_shards << ".\n"; in ShouldShard() 5498 return total_shards > 1; in ShouldShard() 5522 bool ShouldRunTestOnShard(int total_shards, int shard_index, int test_id) { in ShouldRunTestOnShard() argument 5523 return (test_id % total_shards) == shard_index; in ShouldRunTestOnShard() [all …]
|
D | gtest-internal-inl.h | 274 GTEST_API_ bool ShouldRunTestOnShard(int total_shards, int shard_index,
|
/external/fmtlib/test/ |
D | gmock-gtest-all.cc | 685 GTEST_API_ bool ShouldRunTestOnShard(int total_shards, int shard_index, 5721 const Int32 total_shards = Int32FromEnvOrDie(total_shards_env, -1); in ShouldShard() local 5724 if (total_shards == -1 && shard_index == -1) { in ShouldShard() 5726 } else if (total_shards == -1 && shard_index != -1) { in ShouldShard() 5734 } else if (total_shards != -1 && shard_index == -1) { in ShouldShard() 5737 << kTestTotalShards << " = " << total_shards in ShouldShard() 5742 } else if (shard_index < 0 || shard_index >= total_shards) { in ShouldShard() 5747 << ", " << kTestTotalShards << "=" << total_shards << ".\n"; in ShouldShard() 5753 return total_shards > 1; in ShouldShard() 5777 bool ShouldRunTestOnShard(int total_shards, int shard_index, int test_id) { in ShouldRunTestOnShard() argument [all …]
|
/external/rust/crates/grpcio-sys/grpc/third_party/cares/cares/test/gmock-1.8.0/ |
D | gmock-gtest-all.cc | 683 int total_shards, int shard_index, int test_id); 6170 const Int32 total_shards = Int32FromEnvOrDie(total_shards_env, -1); in ShouldShard() local 6173 if (total_shards == -1 && shard_index == -1) { in ShouldShard() 6175 } else if (total_shards == -1 && shard_index != -1) { in ShouldShard() 6183 } else if (total_shards != -1 && shard_index == -1) { in ShouldShard() 6186 << kTestTotalShards << " = " << total_shards in ShouldShard() 6191 } else if (shard_index < 0 || shard_index >= total_shards) { in ShouldShard() 6196 << ", " << kTestTotalShards << "=" << total_shards << ".\n"; in ShouldShard() 6202 return total_shards > 1; in ShouldShard() 6226 bool ShouldRunTestOnShard(int total_shards, int shard_index, int test_id) { in ShouldRunTestOnShard() argument [all …]
|