| 1491 | } |
| 1492 | |
| 1493 | static void test_with_registries( |
| 1494 | std::function<void(ExtensionIdRegistry*, compute::FunctionRegistry*)> test) { |
| 1495 | auto default_func_reg = compute::GetFunctionRegistry(); |
| 1496 | auto nested_ext_id_reg = MakeExtensionIdRegistry(); |
| 1497 | auto nested_func_reg = compute::FunctionRegistry::Make(default_func_reg); |
| 1498 | test(nullptr, default_func_reg); |
| 1499 | test(nullptr, nested_func_reg.get()); |
| 1500 | test(nested_ext_id_reg.get(), default_func_reg); |
| 1501 | test(nested_ext_id_reg.get(), nested_func_reg.get()); |
| 1502 | } |
| 1503 | |
| 1504 | TEST(Substrait, GetRecordBatchReader) { |
| 1505 | ASSERT_OK_AND_ASSIGN(std::string substrait_json, GetSubstraitJSON()); |
no test coverage detected