MCPcopy Create free account
hub / github.com/apache/arrow / TestRandomConsume

Function TestRandomConsume

cpp/src/arrow/compute/row/grouper_test.cc:1083–1092  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1081}
1082
1083void 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
1094void TestRandomLookup(TestGrouper g) {
1095 // Exercise Populate then Lookup

Callers 1

TESTFunction · 0.85

Calls 5

ToCharsFunction · 0.85
GenerateBatchFunction · 0.85
ConsumeAndValidateMethod · 0.80
fieldsMethod · 0.45

Tested by

no test coverage detected