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

Function CheckErrorTestCases

cpp/src/arrow/engine/substrait/function_test.cc:157–167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155}
156
157void CheckErrorTestCases(const std::vector<FunctionTestCase>& error_cases) {
158 for (const FunctionTestCase& test_case : error_cases) {
159 ARROW_SCOPED_TRACE("func=", test_case.function_id.uri, "#",
160 test_case.function_id.name);
161 std::shared_ptr<Table> output_table;
162 ASSERT_OK_AND_ASSIGN(std::shared_ptr<acero::ExecPlan> plan,
163 PlanFromTestCase(test_case, &output_table));
164 plan->StartProducing();
165 ASSERT_FINISHES_AND_RAISES(Invalid, plan->finished());
166 }
167}
168
169template <typename ErrorMatcher>
170void CheckNotYetImplementedTestCase(const FunctionTestCase& test_case,

Callers 1

TESTFunction · 0.85

Calls 4

PlanFromTestCaseFunction · 0.85
finishedMethod · 0.80
ASSERT_OK_AND_ASSIGNFunction · 0.70
StartProducingMethod · 0.45

Tested by

no test coverage detected