| 68 | } |
| 69 | |
| 70 | void CheckOrderByInvalid(OrderByNodeOptions options, const std::string& message) { |
| 71 | std::shared_ptr<Table> input = TestTable(); |
| 72 | Declaration plan = Declaration::Sequence( |
| 73 | {{"table_source", TableSourceNodeOptions(input)}, {"order_by", options}}); |
| 74 | EXPECT_RAISES_WITH_MESSAGE_THAT(Invalid, testing::HasSubstr(message), |
| 75 | DeclarationToStatus(std::move(plan))); |
| 76 | } |
| 77 | |
| 78 | TEST(OrderByNode, Basic) { |
| 79 | CheckOrderBy(OrderByNodeOptions(Ordering{{SortKey("up")}})); |
no test coverage detected