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

Function CheckError

cpp/src/arrow/acero/pivot_longer_node_test.cc:73–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71}
72
73void CheckError(const PivotLongerNodeOptions& options, const std::string& message) {
74 std::shared_ptr<Table> input = gen::Gen({gen::Step(), gen::Random(boolean())})
75 ->FailOnError()
76 ->Table(/*rows_per_chunk=*/1, /*num_chunks=*/1);
77
78 Declaration plan = Declaration::Sequence({
79 {"table_source", TableSourceNodeOptions(std::move(input))},
80 {"pivot_longer", options},
81 });
82
83 ASSERT_THAT(DeclarationToStatus(std::move(plan)),
84 Raises(StatusCode::Invalid, testing::HasSubstr(message)));
85}
86
87TEST(PivotLongerNode, Error) {
88 PivotLongerNodeOptions options;

Callers 1

TESTFunction · 0.85

Calls 8

StepFunction · 0.85
TableSourceNodeOptionsFunction · 0.85
DeclarationToStatusFunction · 0.85
RaisesFunction · 0.85
FailOnErrorMethod · 0.80
GenFunction · 0.50
RandomFunction · 0.50
TableMethod · 0.45

Tested by

no test coverage detected