| 157 | } |
| 158 | |
| 159 | Maybe<GraphDumpFormat> GraphLoader::identify_graph_dump_format(InputFile& file) { |
| 160 | #if MGB_ENABLE_FBS_SERIALIZATION |
| 161 | if (is_fbs_file(file)) { |
| 162 | return GraphDumpFormat::FLATBUFFERS; |
| 163 | } |
| 164 | if (is_fbs_v2_file(file)) { |
| 165 | return GraphDumpFormat::FLATBUFFERS_V2; |
| 166 | } |
| 167 | #endif |
| 168 | return {}; |
| 169 | } |
| 170 | |
| 171 | } // namespace serialization |
| 172 | } // namespace mgb |
nothing calls this directly
no test coverage detected