| 70 | using internal::ToSlashes; |
| 71 | |
| 72 | std::string ToString(FileType ftype) { |
| 73 | switch (ftype) { |
| 74 | case FileType::NotFound: |
| 75 | return "not-found"; |
| 76 | case FileType::Unknown: |
| 77 | return "unknown"; |
| 78 | case FileType::File: |
| 79 | return "file"; |
| 80 | case FileType::Directory: |
| 81 | return "directory"; |
| 82 | default: |
| 83 | ARROW_LOG(FATAL) << "Invalid FileType value: " << static_cast<int>(ftype); |
| 84 | return "???"; |
| 85 | } |
| 86 | } |
| 87 | |
| 88 | // For googletest |
| 89 | ARROW_EXPORT std::ostream& operator<<(std::ostream& os, FileType ftype) { |
nothing calls this directly
no outgoing calls
no test coverage detected