| 1099 | }; |
| 1100 | |
| 1101 | static std::unique_ptr<printer> create_printer(output_formats format) { |
| 1102 | switch (format) { |
| 1103 | case CONSOLE: |
| 1104 | return std::make_unique<console_printer>(); |
| 1105 | case SQL: |
| 1106 | return std::make_unique<sql_printer>(); |
| 1107 | case CSV: |
| 1108 | return std::make_unique<csv_printer>(); |
| 1109 | } |
| 1110 | GGML_ABORT("invalid output format"); |
| 1111 | } |
| 1112 | |
| 1113 | struct test_case { |
| 1114 | virtual ~test_case() {} |