| 1092 | } |
| 1093 | |
| 1094 | void TestRandomLookup(TestGrouper g) { |
| 1095 | // Exercise Populate then Lookup |
| 1096 | auto fields = AnnotateForRandomGeneration(g.key_schema_->fields()); |
| 1097 | ExecBatch key_batch{*random::GenerateBatch(fields, 1 << 12, /*seed=*/1)}; |
| 1098 | ASSERT_OK(g.grouper_->Populate(ExecSpan{key_batch})); |
| 1099 | for (int i = 0; i < 4; ++i) { |
| 1100 | SCOPED_TRACE(ToChars(i) + "th key batch"); |
| 1101 | |
| 1102 | ExecBatch key_batch{*random::GenerateBatch(fields, 1 << 12, /*seed=*/i + 1)}; |
| 1103 | g.LookupAndValidate(key_batch); |
| 1104 | } |
| 1105 | } |
| 1106 | |
| 1107 | TEST(Grouper, RandomInt64Keys) { |
| 1108 | TestRandomConsume(TestGrouper({int64()})); |
no test coverage detected