D16490: [KFileMetaData] Add unittest for XML extractor

Stefan BrĂ¼ns noreply at phabricator.kde.org
Wed Oct 31 23:31:57 GMT 2018


bruns marked an inline comment as done.
bruns added a comment.


  In D16490#351662 <https://phabricator.kde.org/D16490#351662>, @astippich wrote:
  
  > Only one minor thing: please also check that the mimetype is in the list of supported mimetypes
  
  
  This can actually happen and is completely valid, due to mimetype inheritance.
  
  So the check would be `for supported in supportedMimetypes { if QMimeType(input->mimeType()).inherits(supported) return true; }; return false`. But this is already done from the calling code ...

REPOSITORY
  R286 KFileMetaData

REVISION DETAIL
  https://phabricator.kde.org/D16490

To: bruns, #frameworks, astippich
Cc: lbeltrame, kde-frameworks-devel, #baloo, ashaposhnikov, michaelh, astippich, spoorun, ngraham, bruns, abrahams
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20181031/26ea3004/attachment-0001.html>


More information about the Kde-frameworks-devel mailing list