Lines Matching refs:shard_index
3425 const int32_t shard_index = Int32FromEnvOrDie(kTestShardIndex, -1); in OnTestIterationStart() local
3427 static_cast<int>(shard_index) + 1, in OnTestIterationStart()
6038 const int32_t shard_index = Int32FromEnvOrDie(shard_index_env, -1); in ShouldShard() local
6040 if (total_shards == -1 && shard_index == -1) { in ShouldShard()
6042 } else if (total_shards == -1 && shard_index != -1) { in ShouldShard()
6044 << kTestShardIndex << " = " << shard_index in ShouldShard()
6050 } else if (total_shards != -1 && shard_index == -1) { in ShouldShard()
6058 } else if (shard_index < 0 || shard_index >= total_shards) { in ShouldShard()
6062 << ", but you have " << kTestShardIndex << "=" << shard_index in ShouldShard()
6093 bool ShouldRunTestOnShard(int total_shards, int shard_index, int test_id) { in ShouldRunTestOnShard() argument
6094 return (test_id % total_shards) == shard_index; in ShouldRunTestOnShard()
6108 const int32_t shard_index = shard_tests == HONOR_SHARDING_PROTOCOL in FilterTests() local
6145 !ShouldRunTestOnShard(total_shards, shard_index, num_runnable_tests); in FilterTests()