| 188 | namespace { |
| 189 | |
| 190 | Status ValidateInputFileInfo(const FileInfo& info) { |
| 191 | if (info.type() == FileType::NotFound) { |
| 192 | return internal::PathNotFound(info.path()); |
| 193 | } |
| 194 | if (info.type() != FileType::File && info.type() != FileType::Unknown) { |
| 195 | return internal::NotAFile(info.path()); |
| 196 | } |
| 197 | return Status::OK(); |
| 198 | } |
| 199 | |
| 200 | } // namespace |
| 201 |
no test coverage detected