| 64 | } |
| 65 | |
| 66 | void CheckFetchInvalid(FetchNodeOptions options, const std::string& message) { |
| 67 | std::shared_ptr<Table> input = TestTable(); |
| 68 | Declaration plan = Declaration::Sequence( |
| 69 | {{"table_source", TableSourceNodeOptions(input)}, {"fetch", options}}); |
| 70 | EXPECT_RAISES_WITH_MESSAGE_THAT(Invalid, testing::HasSubstr(message), |
| 71 | DeclarationToStatus(std::move(plan))); |
| 72 | } |
| 73 | |
| 74 | TEST(FetchNode, Basic) { |
| 75 | CheckFetch({0, 20}); |
no test coverage detected