| 1081 | } |
| 1082 | |
| 1083 | void TestRandomConsume(TestGrouper g) { |
| 1084 | // Exercise Consume |
| 1085 | auto fields = AnnotateForRandomGeneration(g.key_schema_->fields()); |
| 1086 | for (int i = 0; i < 4; ++i) { |
| 1087 | SCOPED_TRACE(ToChars(i) + "th key batch"); |
| 1088 | |
| 1089 | ExecBatch key_batch{*random::GenerateBatch(fields, 1 << 12, /*seed=*/i + 1)}; |
| 1090 | g.ConsumeAndValidate(key_batch); |
| 1091 | } |
| 1092 | } |
| 1093 | |
| 1094 | void TestRandomLookup(TestGrouper g) { |
| 1095 | // Exercise Populate then Lookup |
no test coverage detected