Home | History | Annotate | Download | only in src

Lines Matching refs:shard_index

4057 // but inconsistent (i.e., shard_index >= total_shards), prints
4069 const Int32 shard_index = Int32FromEnvOrDie(shard_index_env, -1);
4071 if (total_shards == -1 && shard_index == -1) {
4073 } else if (total_shards == -1 && shard_index != -1) {
4076 << kTestShardIndex << " = " << shard_index
4081 } else if (total_shards != -1 && shard_index == -1) {
4089 } else if (shard_index < 0 || shard_index >= total_shards) {
4093 << ", but you have " << kTestShardIndex << "=" << shard_index
4123 // method. Assumes that 0 <= shard_index < total_shards.
4124 bool ShouldRunTestOnShard(int total_shards, int shard_index, int test_id) {
4125 return (test_id % total_shards) == shard_index;
4138 const Int32 shard_index = shard_tests == HONOR_SHARDING_PROTOCOL ?
4175 ShouldRunTestOnShard(total_shards, shard_index,