| 765 | using ArrayFactory = std::function<Result<std::shared_ptr<Array>>()>; |
| 766 | |
| 767 | static ArrayFactory JSONArrayFactory(std::shared_ptr<DataType> type, const char* json) { |
| 768 | return [=]() { return ArrayFromJSON(type, json); }; |
| 769 | } |
| 770 | |
| 771 | template <typename ArrayFactory> |
| 772 | void TestWithArrayFactory(ArrayFactory&& factory) { |
nothing calls this directly
no test coverage detected